Re: [android-developers] to get time of each key press

2012-11-26 Thread mohd shafnaz
how to get each key press??



On Mon, Nov 26, 2012 at 1:29 PM, shibin francis shibi...@gmail.com wrote:

 Use counter and flag.  set the flag,when the number of press exceeds the
 limit.
  Good day

 On 11/26/12, mohd shafnaz mohdshaf...@gmail.com wrote:
  Hai,
  I want to get the each key press time of android. i want to implement a
  security module in my app... plz help me
 
  --
  Mohammed Shafnaz Hamza
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Mohammed Shafnaz Hamza

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to get activity stack?

2012-11-26 Thread Himanshu Sharma
Hello,
is it possible to get stack of running activity in apps.
like A-B-C-D if i destroy B then A-C-D(These activity should 
be shown in stack)..
i tried with RunningTaskInfo .it is always show current task (Top 
activity).
i want to see list of activity.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android Maps Navigation Tethering..

2012-11-26 Thread Karunakaran Vikash
Hi ,
   i need to use  a Network Data usage of Android mobile device by 
another android Tablet. think of this scenario , I am having a two Android 
devices, one is a mobile and another is Tablet. I am having an application 
in tablet such as Navigation  MusicPlayer. Navigation(Maps) is Done by 
using the datausage of the android Mobile.I dont have option to put SIM in 
my Tablet. 
  Whether TCP communication is established between a Android Mobile and 
Tablet for streaming the songs ??  Android Mobile will be in thethering 
Mode.Till I studied, there is socket   address itself not generating for 
me in thethering mode mobile..



any refrences, plz help.
Thanks in advance.. 
Thanks  Regards,
v.Karunakaran

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] how to close custom dialog class in android

2012-11-26 Thread Mr cool
I have a problem with closing a custom dialog. I have two classes

 class 1-  AndroidHTMLActivity
 class 2-  CustomizeDialog

In my `AndroidHTMLActivity` I use java interface which is call from 
javascript, in this class i call `CustomizeDialog`
  

 public class AndroidHTMLActivity extends Activity {
 WebView myBrowser;
 setContentView(R.layout.main);
 myBrowser = (WebView)findViewById(R.id.mybrowser);
 myBrowser.addJavascriptInterface(new MyJavaScriptInterface(this), 
AndroidFunction);
  
 myBrowser.getSettings().setJavaScriptEnabled(true);
 myBrowser.loadUrl(file:///android_asset/mypage.html);


}
  public class MyJavaScriptInterface {
 Context mContext;

  MyJavaScriptInterface(Context c) {
   mContext = c;
   }
  public void openAndroidDialog(){

CustomizeDialog customizeDialog = new 
CustomizeDialog(mContext);
customizeDialog.show();
   }

CustomizeDialog .java




 public class CustomizeDialog extends Dialog   {
Context ctx ;
public CustomizeDialog(Context context) {
super(context);
 ctx = context;
}

protected void onCreate(Bundle savedInstanceState) {
  
super.onCreate(savedInstanceState); 
setContentView(R.layout.test);
MyThread downloadThread = new MyThread();
downloadThread.start();
}
   public class MyThread extends Thread {
@Override
public void run() {
try {
   handler.post(new MyRunnable());
}
}
 }
static public class MyRunnable implements Runnable {
public void run() {

  // here i want to close this customized dialog
 
}
  }

Here i can't use `finish()` method, I want to close the customized dialog 
box via the thread. Anyone has any idea about this?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] how to close custom dialog class in android

2012-11-26 Thread Mr cool
I have a problem with closing a custom dialog. I have two classes

 class 1-  AndroidHTMLActivity
 class 2-  CustomizeDialog

In my `AndroidHTMLActivity` I use java interface which is call from 
javascript, in this class i call `CustomizeDialog`
  

 public class AndroidHTMLActivity extends Activity {
 WebView myBrowser;
 setContentView(R.layout.main);
 myBrowser = (WebView)findViewById(R.id.mybrowser);
 myBrowser.addJavascriptInterface(new MyJavaScriptInterface(this), 
AndroidFunction);
  
 myBrowser.getSettings().setJavaScriptEnabled(true);
 myBrowser.loadUrl(file:///android_asset/mypage.html);


}
  public class MyJavaScriptInterface {
 Context mContext;

  MyJavaScriptInterface(Context c) {
   mContext = c;
   }
  public void openAndroidDialog(){

CustomizeDialog customizeDialog = new 
CustomizeDialog(mContext);
customizeDialog.show();
   }

CustomizeDialog .java




 public class CustomizeDialog extends Dialog   {
Context ctx ;
public CustomizeDialog(Context context) {
super(context);
 ctx = context;
}

protected void onCreate(Bundle savedInstanceState) {
  
super.onCreate(savedInstanceState); 
setContentView(R.layout.test);
MyThread downloadThread = new MyThread();
downloadThread.start();
}
   public class MyThread extends Thread {
@Override
public void run() {
try {
   handler.post(new MyRunnable());
}
}
 }
static public class MyRunnable implements Runnable {
public void run() {

  // here i want to close this customized dialog
 
}
  }

Here i can't use `finish()` method, I want to close the customized dialog 
box via the thread. Anyone has any idea about this?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Google Map

2012-11-26 Thread Narendra Singh Rathore
On Mon, Nov 26, 2012 at 12:11 AM, Ehsan Ghasisin ehsan@gmail.comwrote:

 Hi Every one .  I created  Google map in android   and  test with
  emulator and it worked currently , but when install  in my phone
 (Samsung galaxy ) my program didn't show anything  just  show a simple page
 .

 Tnx


Hi Ehsan, is internet working on your phone?
May be thats the problem.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Google Map

2012-11-26 Thread Ehsan Ghasisin
Hi .yes my internet connection working .

On Mon, Nov 26, 2012 at 7:54 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:



 On Mon, Nov 26, 2012 at 12:11 AM, Ehsan Ghasisin ehsan@gmail.comwrote:

 Hi Every one .  I created  Google map in android   and  test with
  emulator and it worked currently , but when install  in my phone
 (Samsung galaxy ) my program didn't show anything  just  show a simple page
 .

 Tnx


 Hi Ehsan, is internet working on your phone?
 May be thats the problem.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Blocked my UI thread by background service

2012-11-26 Thread Rajan Thakrar
Hello Jonathan,

As you suggest me that i have to use IntentService, but after implementing
the IntentService and again test my app at the time realize that
IntentService's onHandleIntent() method is never ever hold for the time
when gps find the current location(lat  long).

so that i get null location at every time, so plz guide me what can i do to
find lat  long with in IntentService.


On Sat, Nov 10, 2012 at 3:05 AM, Jonathan S xfsuno...@gmail.com wrote:

 Why you are not using IntentService? that class stop the service when it
 finished.


 On Friday, November 9, 2012 3:21:25 PM UTC-5, Rajan wrote:

 What i need to do
 =
 1. I need to get Latitude  longitude every 1 min.
 2. after getting this lat  long, i need to call one web service through
 which i have to send latitude, longitude, TAG

 TAG is kind of ON or OFF text :  that can be set on button press
 event.

 What i have done
 =
 1. i created one simple service that can be use to get lat  long
 and also use AsynTask inside the service for calling a webservice

 2. i have use Time class for ping after every 1 min.

 3. now i need to add TAG value inside the background service using on
 button pressed event : that i have already done

 [ like :

 Intent i = new Intent(this, BackgroundService.class);
 i.putExtra(TAG,ON);
 startService(i);
 ]

 My Problem
 =

 it block my UI thread after every 1 min. , means when my time is going to
 ping a backgroundService for finding a lat  long at that time it will
 block my UI for few seconds.
 so how can i prevent my UI thread ??

 Note : for start  stop to the background service, i have use Handler
 class  Message class

 please help me i'm stuck in this scenario since last 2 to 3 days, i
 didn't find any single way to prevent my UI thread.

 thank you.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Display a message on top of a ListView layer but below the app menu layer

2012-11-26 Thread dashman
I've got a ListView that takes up the full screen.

Under certain conditions, I'd like to display a message
that sits on top of the ListView - i.e. a translucent message box.

I've got:

Handler mHandler = new Handler();

mDialogText = (TextView) inflate.inflate(R.layout.center_message, 
null );
mDialogText.setVisibility(View.INVISIBLE);


mHandler.post(new Runnable() {

public void run() {
mReady = true;
WindowManager.LayoutParams lp = new 
WindowManager.LayoutParams(
LayoutParams.WRAP_CONTENT, 
LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.TYPE_APPLICATION,
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
| 
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
PixelFormat.TRANSLUCENT);
mWindowManager.addView(mDialogText, lp);
}});

It displays the message fine above the listview - but it displays above a 
open app menu
also.

what can i do to display it above the ListView but below the app menu 
layers.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to update SDK Tools to revision 21?

2012-11-26 Thread Per-Jarle Sæther
Hello all
I ran an update of the ADT in Eclipse.

After updating, I get an error message saying:

*This version of ADT requires Android SDK Tools revision 21.0.0 rc9 or
above.
Current revision is 20.0.0.
Please update your SDK Tools to the latest version.*

Together with two buttons (Open SDK Manager, Close)

When I open SDK Manager, it does not show Android SDK Tools higher than
Rev. 20.

How do I solve this?

Best regards
Per-Jarle

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to update SDK Tools to revision 21?

2012-11-26 Thread Per-Jarle Sæther
Hi all
Please ignore my last email
I found the reload button...

Best regards
Per-Jarle

On Mon, Nov 26, 2012 at 3:33 PM, Per-Jarle Sæther 
per.jarle.saet...@gmail.com wrote:

 Hello all
 I ran an update of the ADT in Eclipse.

 After updating, I get an error message saying:

 *This version of ADT requires Android SDK Tools revision 21.0.0 rc9 or
 above.
 Current revision is 20.0.0.
 Please update your SDK Tools to the latest version.*

 Together with two buttons (Open SDK Manager, Close)

 When I open SDK Manager, it does not show Android SDK Tools higher than
 Rev. 20.

 How do I solve this?

 Best regards
 Per-Jarle


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to update SDK Tools to revision 21?

2012-11-26 Thread Larry Meadors
Ha, don't you hate that - as soon as you post the question, you figure
it out. It is Monday. :-P

Larry


On Mon, Nov 26, 2012 at 7:35 AM, Per-Jarle Sæther
per.jarle.saet...@gmail.com wrote:
 Hi all
 Please ignore my last email
 I found the reload button...

 Best regards
 Per-Jarle


 On Mon, Nov 26, 2012 at 3:33 PM, Per-Jarle Sæther
 per.jarle.saet...@gmail.com wrote:

 Hello all
 I ran an update of the ADT in Eclipse.

 After updating, I get an error message saying:

 This version of ADT requires Android SDK Tools revision 21.0.0 rc9 or
 above.
 Current revision is 20.0.0.
 Please update your SDK Tools to the latest version.

 Together with two buttons (Open SDK Manager, Close)

 When I open SDK Manager, it does not show Android SDK Tools higher than
 Rev. 20.

 How do I solve this?

 Best regards
 Per-Jarle


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Wrapping horizontal list view?

2012-11-26 Thread Gal Ben-Haim
I'm facing the same problem as this old question.

I want to create an horizontal wrapping (and vertical scrolling) ListView, 
for example:

11 222 
44  66
7 888 9

where each numbers group is a list item.

I found this old answer suggesting using a Gallery widget, but it only 
allows to scroll horizontally.

how can I create such view ?


On Friday, January 8, 2010 1:52:09 AM UTC+2, Romain Guy wrote:

 You can use a Gallery widget.

 On Thu, Jan 7, 2010 at 3:48 PM, Marcus vorw...@gmail.com javascript: 
 wrote:
  I'm attempting to create a list view that shows clickable items that
  wrap horizontally much like the To/From/CC/BCC fields in OS X and the
  iPhone's Mail programs or like the TO field in Facebook's messages
  (really like most mail programs). My questions are:
 
  1. Is there a way to do this with a ListView? Everything I've seen and
  experimented with is either horizontal scrolling or vertically
  stacking, but not horizontal wrapping. If there's a way, would you
  point me in the right direction as far as first steps to take to
  implement it?
 
  2. Is anyone aware of an existing app with available source that has a
  view like this that I could look at as an example? The Google Mail/SMS
  apps just have single strings that are not clickable for those fields.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript:
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com javascript:
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 

 -- 
 Romain Guy
 Android framework engineer
 roma...@android.com javascript:

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: FM radio Android Application Developement

2012-11-26 Thread bob
 

Well, the first step would be to buy it and see if it actually works.

If it does, *then* you might ask how he made it.


On Wednesday, November 21, 2012 11:07:12 PM UTC-6, Karunakaran Vikash wrote:

 ya ,, this is an External Application only na.. then how he can made it... 
 ??
 Is there any other way for it... ?




 On Wednesday, November 21, 2012 10:57:52 AM UTC+5:30, Karunakaran Vikash 
 wrote:

 Hi ,
  I need to create a FM radio android application , is there any api 
 or methods for developing this...  anything available means ,just drop me a 
 mail ..
 Any useful links , please update me... 

 THanks in Advance ... 

 Regards,
 V.Karunkaran



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Wrapping horizontal list view?

2012-11-26 Thread bob
This widget is no longer supported. Other horizontally scrolling widgets 
include 
HorizontalScrollViewhttp://developer.android.com/reference/android/widget/HorizontalScrollView.html
 and 
ViewPagerhttp://developer.android.com/reference/android/support/v4/view/ViewPager.html
 from 
the support library.

sic

On Monday, November 26, 2012 8:50:56 AM UTC-6, Gal Ben-Haim wrote:

 I'm facing the same problem as this old question.

 I want to create an horizontal wrapping (and vertical scrolling) ListView, 
 for example:

 11 222 
 44  66
 7 888 9

 where each numbers group is a list item.

 I found this old answer suggesting using a Gallery widget, but it only 
 allows to scroll horizontally.

 how can I create such view ?


 On Friday, January 8, 2010 1:52:09 AM UTC+2, Romain Guy wrote:

 You can use a Gallery widget.

 On Thu, Jan 7, 2010 at 3:48 PM, Marcus vorw...@gmail.com wrote:
  I'm attempting to create a list view that shows clickable items that
  wrap horizontally much like the To/From/CC/BCC fields in OS X and the
  iPhone's Mail programs or like the TO field in Facebook's messages
  (really like most mail programs). My questions are:
 
  1. Is there a way to do this with a ListView? Everything I've seen and
  experimented with is either horizontal scrolling or vertically
  stacking, but not horizontal wrapping. If there's a way, would you
  point me in the right direction as far as first steps to take to
  implement it?
 
  2. Is anyone aware of an existing app with available source that has a
  view like this that I could look at as an example? The Google Mail/SMS
  apps just have single strings that are not clickable for those fields.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 

 -- 
 Romain Guy
 Android framework engineer
 roma...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Wrapping horizontal list view?

2012-11-26 Thread Gal Ben-Haim
I actually don't want to scroll horizontally at all.

I want items to be places from left to right, and warp to the next row when
there's not enough room for the next item. also, this should scroll
vertically.

On Mon, Nov 26, 2012 at 5:42 PM, bob b...@coolfone.comze.com wrote:

 This widget is no longer supported. Other horizontally scrolling widgets
 include 
 HorizontalScrollViewhttp://developer.android.com/reference/android/widget/HorizontalScrollView.html
  and 
 ViewPagerhttp://developer.android.com/reference/android/support/v4/view/ViewPager.html
  from
 the support library.

 sic

 On Monday, November 26, 2012 8:50:56 AM UTC-6, Gal Ben-Haim wrote:

 I'm facing the same problem as this old question.

 I want to create an horizontal wrapping (and vertical scrolling)
 ListView,
 for example:

 11 222 
 44  66
 7 888 9

 where each numbers group is a list item.

 I found this old answer suggesting using a Gallery widget, but it only
 allows to scroll horizontally.

 how can I create such view ?


 On Friday, January 8, 2010 1:52:09 AM UTC+2, Romain Guy wrote:

 You can use a Gallery widget.

 On Thu, Jan 7, 2010 at 3:48 PM, Marcus vorw...@gmail.com wrote:
  I'm attempting to create a list view that shows clickable items that
  wrap horizontally much like the To/From/CC/BCC fields in OS X and the
  iPhone's Mail programs or like the TO field in Facebook's messages
  (really like most mail programs). My questions are:
 
  1. Is there a way to do this with a ListView? Everything I've seen and
  experimented with is either horizontal scrolling or vertically
  stacking, but not horizontal wrapping. If there's a way, would you
  point me in the right direction as far as first steps to take to
  implement it?
 
  2. Is anyone aware of an existing app with available source that has a
  view like this that I could look at as an example? The Google Mail/SMS
  apps just have single strings that are not clickable for those fields.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+**unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en
 

 --
 Romain Guy
 Android framework engineer
 roma...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: looking for canvas tutorial

2012-11-26 Thread bob
Sounds like you will want to check out the Lunar Lander demo.

Here's a snippet:

   private void doDraw(Canvas canvas) {
// Draw the background image. Operations on the Canvas 
accumulate
// so this is like clearing the screen.
canvas.drawBitmap(mBackgroundImage, 0, 0, null);

int yTop = mCanvasHeight - ((int) mY + mLanderHeight / 2);
int xLeft = (int) mX - mLanderWidth / 2;

// Draw the fuel gauge
int fuelWidth = (int) (UI_BAR * mFuel / PHYS_FUEL_MAX);
mScratchRect.set(4, 4, 4 + fuelWidth, 4 + UI_BAR_HEIGHT);
canvas.drawRect(mScratchRect, mLinePaint);

Also, the docs for android.graphics.Canvas are surprisingly good.


On Sunday, November 25, 2012 7:39:20 PM UTC-6, Prabu Siabuabu wrote:

 hi everyone! do everyone here have any resources, links, or article about 
 how to make canvas apps on android in native?? i have a javascript canvas 
 app and didn't know or exactly stuck withhow to convert it to android, so 
 i'm looking to any resource in native or anything else to make my app can 
 run on android. thanks in advance.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Single WebView on Layout Drawn Twice When Targeting Android SDK 15

2012-11-26 Thread bob
 

Definitely sounds like bad code in the XML layout.



On Sunday, November 25, 2012 6:50:50 PM UTC-6, Jeremy Villalobos wrote:

 I have an app with a layout that includes a WebView component.  When I use 
 targetSDKVersion 11 (on the manifest), it works ok.  But initially I had 
 the targetSDKVersion=15.  This caused the WebView to be drawn twice when 
 testing on a Xoom tablet with Android ICS.

 The duplicate WebView appears on the bottom of the screen and disappears 
 when I touch the screen anywhere.  The WebView comes back every time the 
 Original WebView is updated with loadData() method.

 Lowering the target version seems to be a good work-around.

 Could this be due to bad code on the xml layout file ?

 Is this a bug ?

 I have a Jelly Bean tablet to test, but it is not within reach at the 
 moment.  I'll update this post with the findings.





-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: xml parsing error

2012-11-26 Thread bob
 

Not all Nodes are Elements.


Apparently, that node is not an element.



On Thursday, November 22, 2012 6:15:36 AM UTC-6, Ananda Krishna wrote:

 Hi
 I am trying to parse an xml file.But I am getting an exception. 
 error Message :org.apache.harmony.xml.dom.TextImpl cannot be cast to 
 org.w3c.dom.Element

 *Code is as follows:*
 *Xml File:*
 ?xml version=1.0 encoding=UTF-8?
 Quiz
  QuizQuestion 
   QuestionWhich are the right words to greet someone?/Question
   option1Hello/option1
   option2Hai/option2
   option3Bye/option3
  /QuizQuestion 
  QuizQuestion type=Discription   
   QuestionWhen do you use the word who?/Question
   Answer/Answer
  /QuizQuestion 
  QuizQuestion
   QuestionWhat is AM used for?/Question
   option1Morning/option1
   option2Evening/option2
  /QuizQuestion 
 /Quiz

 *Java code for Parsing:*
 DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
 DocumentBuilder builder = factory.newDocumentBuilder();
 Document doc = builder.parse(new URL(filepath).openStream());
 doc.getDocumentElement().normalize();
 NodeList questionList = doc.getElementsByTagName(QuizQuestion);
 int len = questionList.getLength();
 if (len  0) {
 for (int i = 0; i  len; i++) {
 Node node = questionList.item(i);
 if (node.getNodeType() == Node.ELEMENT_NODE) {
 Element element = (Element) node;
 int childrenCount = element.getChildNodes().getLength();
 Node child = element.getFirstChild();
 int j = 0;
 while (child != null  j  childrenCount) {
  * Element element1 = (Element) child;*
 if 
 (element1.getTagName().startsWith(term)) {
 String term = 
 String.valueOf(element1.getTextContent());
 System.out.println(term);
 }
 }
 }
 }
 }
 In the highlighted line exception is been raised.
 Kindly tell me where am i going wrong.
 Regards,
 AnandaKrishna S


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Unable to upload a draft APK for In-App Billing testing?

2012-11-26 Thread Nobu Games
I was in a similar situation just a week ago. I wanted to test app 
licensing and the only way of doing that without uploading the app was with 
a device that has the Android developer account set as the *primary*account. 
Unfortunately all these additional Google accounts you can specify 
in the console are completely ignored.

On Sunday, November 25, 2012 4:09:11 AM UTC-6, Roni Yaniv wrote:

 Hi all,

 We have a published app in the store and are in the process of developing 
 In-App Billing features.
 Part of the testing process involves uploading an APK without publishing 
 it.
 We were able to do that with the old developer console for an older build, 
 but now it seems like we can't.

 Uploading an APK via the new design automatically publishes it (we just 
 did that today), so I'm reluctant to try that for the test build, and the 
 old console seems to be wonky - it won't show old APKs and uploading 
 through it fails all the time (getting stuck after 1-3 MB).

 Any ideas on how to proceed?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: smoothScrollToPosition is not getting to the requested position (when cell height is dynamic?)

2012-11-26 Thread bob
 

Is your list layout perfectly settled when you call 
smoothScrollToPosition(0)?


Are you modifying your list after you call smoothScrollToPosition(0) but 
before the scrolling completes?



On Sunday, November 25, 2012 6:18:08 AM UTC-6, ziv wrote:

 Hi,
 I have an issue where smoothScrollToPosition(0) does not reach the start 
 position of the list. I've read all the related topics but couldn't find a 
 proper answer.

 After testing the issue thoroughly I believe that the issue happens when 
 the list items (cells) have dynamic size - by dynamic I mean that for 
 example a TextView in the cell has android:maxLines=3. I've noticed that 
 when all items text fit into one line then the scroll reaches the top, but 
 when one item has a text that fits only in two lines then the scroll stops 
 in that specific line. 

 How can fix this issue? my list items have several fields with dynamic 
 size.
 BTW setSelection(0) always works, but I don't want to give up on the 
 scrolling effect.

 Thanks,
 Ziv


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] android e book

2012-11-26 Thread Salih Gündüz
I want to develope an e book for android. My data is in internet but not a 
json or a xml only html page.(http://www.mevzuat.adalet.gov.tr/html/388.html). 
the data changes often. so data must be update often and must be saved on 
phone so people can read without internet.How can I parse data from html? 
can I convert the page json?can you suggest me some ways or methods?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Display a message on top of a ListView layer but below the app menu layer

2012-11-26 Thread Salih Gündüz
check relative layout. it has below and above parameters.for example

RelativeLayout xmlns:android=*http://schemas.android.com/apk/res/android*

 

RelativeLayout

android:id=*@+id/top*
**

LinearLayout

android:id=*@+id/bottom* 


/LinearLayout 

ListView

android:id=*@+id/listview*
android:background=*#ff** *

android:divider=*#00*

android:layout_width=*match_parent** *

android:layout_height=*wrap_content*
* *

 android:layout_above=*@id/bottom*
* *

 android:layout_below=*@id/top* 

/ListView

RelativeLayout

26 Kasım 2012 Pazartesi 15:03:32 UTC+2 tarihinde dashman yazdı:

 I've got a ListView that takes up the full screen.

 Under certain conditions, I'd like to display a message
 that sits on top of the ListView - i.e. a translucent message box.

 I've got:

 Handler mHandler = new Handler();

 mDialogText = (TextView) inflate.inflate(R.layout.center_message, 
 null );
 mDialogText.setVisibility(View.INVISIBLE);


 mHandler.post(new Runnable() {

 public void run() {
 mReady = true;
 WindowManager.LayoutParams lp = new 
 WindowManager.LayoutParams(
 LayoutParams.WRAP_CONTENT, 
 LayoutParams.WRAP_CONTENT,
 WindowManager.LayoutParams.TYPE_APPLICATION,
 WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
 | 
 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
 PixelFormat.TRANSLUCENT);
 mWindowManager.addView(mDialogText, lp);
 }});

 It displays the message fine above the listview - but it displays above a 
 open app menu
 also.

 what can i do to display it above the ListView but below the app menu 
 layers.




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: android e book

2012-11-26 Thread bob
 

Sounds like you will want to use a WebView.

On Monday, November 26, 2012 10:09:30 AM UTC-6, Salih Gündüz wrote:

 I want to develope an e book for android. My data is in internet but not a 
 json or a xml only html page.(
 http://www.mevzuat.adalet.gov.tr/html/388.html). the data changes often. 
 so data must be update often and must be saved on phone so people can read 
 without internet.How can I parse data from html? can I convert the page 
 json?can you suggest me some ways or methods?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: android e book

2012-11-26 Thread Salih Gündüz
İt can be used. but I want to store the data in phone so they can read when 
they dont have internet.this is my problem :)

26 Kasım 2012 Pazartesi 18:28:11 UTC+2 tarihinde bob yazdı:

 Sounds like you will want to use a WebView.

 On Monday, November 26, 2012 10:09:30 AM UTC-6, Salih Gündüz wrote:

 I want to develope an e book for android. My data is in internet but not 
 a json or a xml only html page.(
 http://www.mevzuat.adalet.gov.tr/html/388.html). the data changes often. 
 so data must be update often and must be saved on phone so people can read 
 without internet.How can I parse data from html? can I convert the page 
 json?can you suggest me some ways or methods?



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Required: Sr. .Net Developer at Collegeville, PA

2012-11-26 Thread Munawar Ali
Hi Friends,

Hope you are doing fine. Please let me know if you have someone with you
available for the below mentioned requirement...
Please send profiles to m...@tekenergyusa.com

*Position: Sr. Net Developer*
*Location: Collegeville, PA*
*Duration: 6+ Months Contract*

.NET Programmer with 10-15 years of overall experience and 1-3 years of
Pharma expereince.

*Looking for:*

- Self-starters who can hear the requirements during brainstorming sessions
and document them appropriately per client standards
- Ability to design solutions on the fly
- Have worked in Agile environments preferably extreme programming.
- Open to continuous refinement of requirements and designs
- Developed rules based engines and data driven engines
- Experience with handling Hierarchical data sets

*Basic Skills:*
ASP.Net, Web-Services, .Net Services, UI experience, Middle-tier




Thanks  Regards,

Munawar Ali
Technical Recruiter
TEKenergy LLC
m...@tekenergyusa.com
www.tekenergyusa.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] to get time of each key press

2012-11-26 Thread bob
 

Maybe override onKeyDown of your View subclass?

On Monday, November 26, 2012 2:06:31 AM UTC-6, Shaffz wrote:

 how to get each key press?? 



 On Mon, Nov 26, 2012 at 1:29 PM, shibin francis 
 shib...@gmail.comjavascript:
  wrote:

 Use counter and flag.  set the flag,when the number of press exceeds the 
 limit.
  Good day

 On 11/26/12, mohd shafnaz mohds...@gmail.com javascript: wrote:
  Hai,
  I want to get the each key press time of android. i want to implement a
  security module in my app... plz help me
 
  --
  Mohammed Shafnaz Hamza
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript:
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com javascript:
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 -- 
 Mohammed Shafnaz Hamza
  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] to get time of each key press

2012-11-26 Thread bob
Or maybe call this on your TextView:

public void setKeyListener (KeyListener input)
Added in API level 1
Sets the key listener to be used with this TextView. This can be null to 
disallow user input. Note that this method has significant and subtle 
interactions with soft keyboards and other input method: see 
KeyListener.getContentType() for important details. Calling this method 
will replace the current content type of the text view with the content 
type returned by the key listener.
Be warned that if you want a TextView with a key listener or movement 
method not to be focusable, or if you want a TextView without a key 
listener or movement method to be focusable, you must call 
setFocusable(boolean) again after calling this to get the focusability back 
the way you want it.
Related XML Attributes
android:numeric
android:digits
android:phoneNumber
android:inputMethod
android:capitalize
android:autoText


On Monday, November 26, 2012 10:38:51 AM UTC-6, bob wrote:

 Maybe override onKeyDown of your View subclass?

 On Monday, November 26, 2012 2:06:31 AM UTC-6, Shaffz wrote:

 how to get each key press?? 



 On Mon, Nov 26, 2012 at 1:29 PM, shibin francis shib...@gmail.comwrote:

 Use counter and flag.  set the flag,when the number of press exceeds the 
 limit.
  Good day

 On 11/26/12, mohd shafnaz mohds...@gmail.com wrote:
  Hai,
  I want to get the each key press time of android. i want to implement a
  security module in my app... plz help me
 
  --
  Mohammed Shafnaz Hamza
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 -- 
 Mohammed Shafnaz Hamza
  


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Defining custom xml file in eclipse

2012-11-26 Thread Simon Giddings
I have a series of custom xml data files that I need to create.
I would like to tell eclipse what its format is so that when I do a 
CTRL+SPACE, it will give me the possible node or attribute options.

Is this possible ?
If so, how do I go about this ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: android e book

2012-11-26 Thread Michael Banzon
You must include a caching layer in your app.

Everything you need to do this can be found in the SDK manual on WebViews:
http://developer.android.com/guide/webapps/webview.html


On Mon, Nov 26, 2012 at 5:31 PM, Salih Gündüz gunduz.sa...@gmail.comwrote:

 İt can be used. but I want to store the data in phone so they can read
 when they dont have internet.this is my problem :)

 26 Kasım 2012 Pazartesi 18:28:11 UTC+2 tarihinde bob yazdı:

 Sounds like you will want to use a WebView.

 On Monday, November 26, 2012 10:09:30 AM UTC-6, Salih Gündüz wrote:

 I want to develope an e book for android. My data is in internet but not
 a json or a xml only html page.(http://www.mevzuat.**
 adalet.gov.tr/html/388.htmlhttp://www.mevzuat.adalet.gov.tr/html/388.html).
 the data changes often. so data must be update often and must be saved on
 phone so people can read without internet.How can I parse data from html?
 can I convert the page json?can you suggest me some ways or methods?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Michael Banzon
http://michaelbanzon.com/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: android e book

2012-11-26 Thread Salih Gündüz
webview is a good solution thanks. But the web page is not good formatted
for mobile devices.It is a government page so I can not reach the database
but I and to develope my own user interface.

On Mon, Nov 26, 2012 at 7:03 PM, Michael Banzon mich...@banzon.dk wrote:

 You must include a caching layer in your app.

 Everything you need to do this can be found in the SDK manual on WebViews:
 http://developer.android.com/guide/webapps/webview.html


 On Mon, Nov 26, 2012 at 5:31 PM, Salih Gündüz gunduz.sa...@gmail.comwrote:

 İt can be used. but I want to store the data in phone so they can read
 when they dont have internet.this is my problem :)

 26 Kasım 2012 Pazartesi 18:28:11 UTC+2 tarihinde bob yazdı:

 Sounds like you will want to use a WebView.

 On Monday, November 26, 2012 10:09:30 AM UTC-6, Salih Gündüz wrote:

 I want to develope an e book for android. My data is in internet but
 not a json or a xml only html page.(http://www.mevzuat.**
 adalet.gov.tr/html/388.htmlhttp://www.mevzuat.adalet.gov.tr/html/388.html).
 the data changes often. so data must be update often and must be saved on
 phone so people can read without internet.How can I parse data from html?
 can I convert the page json?can you suggest me some ways or methods?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Michael Banzon
 http://michaelbanzon.com/

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Required: QA Tester at Orlando, FL

2012-11-26 Thread Munawar Ali
Hi Friends,

Hope you are doing fine. Please let me know if you have someone with
you available for the below mentioned requirement...
Please send profiles to m...@tekenergyusa.com

*Position: QA Tester*
*Location: Orlando, FL*
*Duration: 6+ Months Contract*

Android application testing experience it would be a plus.

QA resources to test mobile applications. Should have Android experience
(experience can be either testing Android or even if they use an Android
phone that'll work).




Thanks  Regards,

Munawar Ali
Technical Recruiter
TEKenergy LLC
m...@tekenergyusa.com
www.tekenergyusa.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android Maps Navigation Tethering..

2012-11-26 Thread Robert Greenwalt
I don't understand the point of your email.  Do you have a question?  Your
one use of ? isn't really a question.

Yes, you can use maps on a tablet tethered through wifi to an android phone
to get data.

R


On Mon, Nov 26, 2012 at 1:30 AM, Karunakaran Vikash kvk2551...@gmail.comwrote:

 Hi ,
i need to use  a Network Data usage of Android mobile device by
 another android Tablet. think of this scenario , I am having a two Android
 devices, one is a mobile and another is Tablet. I am having an application
 in tablet such as Navigation  MusicPlayer. Navigation(Maps) is Done by
 using the datausage of the android Mobile.I dont have option to put SIM in
 my Tablet.
   Whether TCP communication is established between a Android Mobile
 and Tablet for streaming the songs ??  Android Mobile will be in
 thethering Mode.Till I studied, there is socket   address itself not
 generating for me in thethering mode mobile..



 any refrences, plz help.
 Thanks in advance..
 Thanks  Regards,
 v.Karunakaran

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: smoothScrollToPosition is not getting to the requested position (when cell height is dynamic?)

2012-11-26 Thread ziv
I'm not modifying my list while the scrolling occur. 

What do you mean by list layout perfectly settled? 
The list cell is a LinearLayout with inner views that have dynamically 
content dimensions. The example I gave is of a TextView with 
android:maxLines=3 
attribute. most of the cells have 1 line of text in that field, but when 
there are 2 lines for example the scroll almost always reach that cell and 
stops.
Should I somehow dismiss the cell layout inflating while on scroll?

On Monday, November 26, 2012 6:03:44 PM UTC+2, bob wrote:

 Is your list layout perfectly settled when you call 
 smoothScrollToPosition(0)?


 Are you modifying your list after you call smoothScrollToPosition(0) but 
 before the scrolling completes?



 On Sunday, November 25, 2012 6:18:08 AM UTC-6, ziv wrote:

 Hi,
 I have an issue where smoothScrollToPosition(0) does not reach the start 
 position of the list. I've read all the related topics but couldn't find a 
 proper answer.

 After testing the issue thoroughly I believe that the issue happens when 
 the list items (cells) have dynamic size - by dynamic I mean that for 
 example a TextView in the cell has android:maxLines=3. I've noticed that 
 when all items text fit into one line then the scroll reaches the top, but 
 when one item has a text that fits only in two lines then the scroll stops 
 in that specific line. 

 How can fix this issue? my list items have several fields with dynamic 
 size.
 BTW setSelection(0) always works, but I don't want to give up on the 
 scrolling effect.

 Thanks,
 Ziv



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Defining custom xml file in eclipse

2012-11-26 Thread bob
Maybe add something like this to your first tag:

 xmlns:android=http://schemas.android.com/apk/res/android;


On Monday, November 26, 2012 10:55:50 AM UTC-6, Simon Giddings wrote:

 I have a series of custom xml data files that I need to create.
 I would like to tell eclipse what its format is so that when I do a 
 CTRL+SPACE, it will give me the possible node or attribute options.

 Is this possible ?
 If so, how do I go about this ?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Defining custom xml file in eclipse

2012-11-26 Thread Simon Giddings
I don't see how this will help.
I need to inform eclipse what the format of my custom xml is - tag names, 
attribute names, etc

On Monday, 26 November 2012 19:38:13 UTC+1, bob wrote:

 Maybe add something like this to your first tag:

  xmlns:android=http://schemas.android.com/apk/res/android;


 On Monday, November 26, 2012 10:55:50 AM UTC-6, Simon Giddings wrote:

 I have a series of custom xml data files that I need to create.
 I would like to tell eclipse what its format is so that when I do a 
 CTRL+SPACE, it will give me the possible node or attribute options.

 Is this possible ?
 If so, how do I go about this ?



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Defining custom xml file in eclipse

2012-11-26 Thread TreKing
On Mon, Nov 26, 2012 at 10:55 AM, Simon Giddings mr.s.giddi...@gmail.comwrote:

 Is this possible ?
 If so, how do I go about this ?


Sounds like your questions are specific to Eclipse and not Android
Development. Try the Eclipse docs or an Eclipse-specific group or forum.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Google Map

2012-11-26 Thread asha b
  Make sure you are using proper map key for mapview and keystore for
application.
Simple page without mapview means problem is with mapkey.



On Mon, Nov 26, 2012 at 6:07 AM, Ehsan Ghasisin ehsan@gmail.com wrote:

 Hi .yes my internet connection working .


 On Mon, Nov 26, 2012 at 7:54 PM, Narendra Singh Rathore 
 nsr.curi...@gmail.com wrote:



 On Mon, Nov 26, 2012 at 12:11 AM, Ehsan Ghasisin ehsan@gmail.comwrote:

 Hi Every one .  I created  Google map in android   and  test with
  emulator and it worked currently , but when install  in my phone
 (Samsung galaxy ) my program didn't show anything  just  show a simple page
 .

 Tnx


 Hi Ehsan, is internet working on your phone?
 May be thats the problem.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Defining custom xml file in eclipse

2012-11-26 Thread Simon Giddings
I thought the xml editor was specific to the Android SDK

On Monday, 26 November 2012 20:33:23 UTC+1, TreKing wrote:

 On Mon, Nov 26, 2012 at 10:55 AM, Simon Giddings 
 mr.s.g...@gmail.comjavascript:
  wrote:

 Is this possible ?
 If so, how do I go about this ?


 Sounds like your questions are specific to Eclipse and not Android 
 Development. Try the Eclipse docs or an Eclipse-specific group or forum.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices

  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Defining custom xml file in eclipse

2012-11-26 Thread Latimerius
On Mon, Nov 26, 2012 at 5:55 PM, Simon Giddings mr.s.giddi...@gmail.com wrote:
 I have a series of custom xml data files that I need to create.
 I would like to tell eclipse what its format is so that when I do a
 CTRL+SPACE, it will give me the possible node or attribute options.

 Is this possible ?
 If so, how do I go about this ?

Yes, it is possible - you just need to write XSD files to describe
your formats.  Eclipse has (or had) an XSD

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Defining custom xml file in eclipse

2012-11-26 Thread Latimerius
 On Mon, Nov 26, 2012 at 5:55 PM, Simon Giddings mr.s.giddi...@gmail.com 
 wrote:
 I have a series of custom xml data files that I need to create.
 I would like to tell eclipse what its format is so that when I do a
 CTRL+SPACE, it will give me the possible node or attribute options.

 Is this possible ?
 If so, how do I go about this ?

Yes, it is possible - you just need to write XSD files to describe
your formats.  Eclipse has (or had) an XSD editor - I used it a couple
of times last year although I don't see it in my current Eclipse
installation (I've upgraded since).  At any rate, XSDs are like XMLs
themselves so any XML editor should do.

Once you have your XSD, you just point to it using the
xsi:schemaLocation attribute of the toplevel element of your XML.
Eclipse then starts to understand your XMLs, it will highlight errors
and give you suggestions on ctrl+space.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] how to close custom dialog class in android

2012-11-26 Thread TreKing
On Mon, Nov 26, 2012 at 4:54 AM, Mr cool ponnd...@gmail.com wrote:

 Here i can't use `finish()` method, I want to close the customized dialog
 box via the thread. Anyone has any idea about this?


First, you probably should not make the MyRunnable class public and static.
Second, your class extends Dialog, so see if there's a method in that class
already defined that will *dismiss* it for you.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] how to close custom dialog class in android

2012-11-26 Thread bob
There is:

public void dismiss ()
Added in API level 1
Dismiss this dialog, removing it from the screen. This method can be 
invoked safely from any thread. Note that you should not override this 
method to do cleanup when the dialog is dismissed, instead implement that 
in onStop().


On Monday, November 26, 2012 2:56:06 PM UTC-6, TreKing wrote:

 On Mon, Nov 26, 2012 at 4:54 AM, Mr cool ponn...@gmail.com 
 javascript:wrote:

 Here i can't use `finish()` method, I want to close the customized dialog 
 box via the thread. Anyone has any idea about this?


 First, you probably should not make the MyRunnable class public and static.
 Second, your class extends Dialog, so see if there's a method in that 
 class already defined that will *dismiss* it for you.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices

  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] how to close custom dialog class in android

2012-11-26 Thread TreKing
People aren't going to learn to fish if you're handing out free sandwiches.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Navigation Apps

2012-11-26 Thread Jack Harvard
I agree there're many, but I need to choose a known good one from many, which I 
would appreciate help to narrow this down. I'm using the navigation workloads 
to understand how the android platform performs, and vice versa. 

On 23 Nov 2012, at 11:22, TreKing wrote:

 
 On Fri, Nov 23, 2012 at 3:48 AM, Jack Harvard jack.harv...@gmail.com wrote:
 Any app with maps built into the app? I tried Navfree, but needs to download 
 the map after the app is installed.
 
 Yes, I'm sure there are many. What is the purpose of your question, and, more 
 importantly, how does it relate to developing android apps with the SDK?
 
 -
 TreKing - Chicago transit tracking app for Android-powered devices
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Make a one app appliance (prevent quitting app)

2012-11-26 Thread Toby

I need to make a one function appliance out of an Android phone
for distribution to participants of an event.  I want the user
to see the app running, but not be able to do anything else.
What sort of ways are there to lock down a device so that it
appears as a one-app appliance?  We retain ownership of the
devices, so we can mess with the phones in any way before or
after installing the program.

Thanks,

Tobiah

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Navigation Apps

2012-11-26 Thread TreKing
This does not seem like it has anything to do with this list, which is for
developing apps with the SDK. However ...

On Mon, Nov 26, 2012 at 3:51 PM, Jack Harvard jack.harv...@gmail.comwrote:

 I agree there're many, but I need to choose a known good one from many,
 which I would appreciate help to narrow this down.


OK, you want help narrowing this down ... but based on what? Your question
is extremely vague.


 I'm using the navigation workloads to understand how the android platform
 performs, and vice versa.


I, for one, have no idea what navigation workloads are nor how the term
vice versa makes sense in this sentence.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Wrapping horizontal list view?

2012-11-26 Thread Piren
If the sizes of the views are pretty predictable due to their content, i'd 
go the smarter route and wrap the data with a 'smart' layer with the proper 
row division, this will allow you to use a Listview and benefit from its 
optimizations. 
(If your data is a, bbb,cc, dd, , wrap it in a new data structure that 
pre-calculates the proper rows - {a, bbb}. {cc,dd}, {} and etc).

If it is not predictable, I usually find that in such instances it takes 
less time to write such a component yourself than to try and force other 
components to behave in your desired fashion.
which means, take a scrollview and linearlayout and starting filing in the 
layout yourself.
 

On Monday, November 26, 2012 10:51:58 AM UTC-5, Gal Ben-Haim wrote:

 I actually don't want to scroll horizontally at all.

 I want items to be places from left to right, and warp to the next row 
 when there's not enough room for the next item. also, this should scroll 
 vertically.

 On Mon, Nov 26, 2012 at 5:42 PM, bob b...@coolfone.comze.comjavascript:
  wrote:

 This widget is no longer supported. Other horizontally scrolling widgets 
 include 
 HorizontalScrollViewhttp://developer.android.com/reference/android/widget/HorizontalScrollView.html
  and 
 ViewPagerhttp://developer.android.com/reference/android/support/v4/view/ViewPager.html
  from 
 the support library.

 sic

 On Monday, November 26, 2012 8:50:56 AM UTC-6, Gal Ben-Haim wrote:

 I'm facing the same problem as this old question.

 I want to create an horizontal wrapping (and vertical scrolling) 
 ListView, 
 for example:

 11 222 
 44  66
 7 888 9

 where each numbers group is a list item.

 I found this old answer suggesting using a Gallery widget, but it only 
 allows to scroll horizontally.

 how can I create such view ?


 On Friday, January 8, 2010 1:52:09 AM UTC+2, Romain Guy wrote:

 You can use a Gallery widget.

 On Thu, Jan 7, 2010 at 3:48 PM, Marcus vorw...@gmail.com wrote:
  I'm attempting to create a list view that shows clickable items that
  wrap horizontally much like the To/From/CC/BCC fields in OS X and the
  iPhone's Mail programs or like the TO field in Facebook's messages
  (really like most mail programs). My questions are:
 
  1. Is there a way to do this with a ListView? Everything I've seen and
  experimented with is either horizontal scrolling or vertically
  stacking, but not horizontal wrapping. If there's a way, would you
  point me in the right direction as far as first steps to take to
  implement it?
 
  2. Is anyone aware of an existing app with available source that has a
  view like this that I could look at as an example? The Google Mail/SMS
  apps just have single strings that are not clickable for those fields.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+**unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en
 

 -- 
 Romain Guy
 Android framework engineer
 roma...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them

  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Make a one app appliance (prevent quitting app)

2012-11-26 Thread lbendlin
You'll need to cook a custom ROM.

On Monday, November 26, 2012 5:02:03 PM UTC-5, Tobiah wrote:

 I need to make a one function appliance out of an Android phone 
 for distribution to participants of an event.  I want the user 
 to see the app running, but not be able to do anything else. 
 What sort of ways are there to lock down a device so that it 
 appears as a one-app appliance?  We retain ownership of the 
 devices, so we can mess with the phones in any way before or 
 after installing the program. 

 Thanks, 

 Tobiah 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: creating shared preferences throws null pointer exception

2012-11-26 Thread lbendlin
Why do you not use the default shared preferences? 

PreferenceManager.getDefaultSharedPreferences(context.getApplicationContext());

On Monday, November 26, 2012 3:26:36 AM UTC-5, SIVAKUMAR.J wrote:


 Dear All,

   I had android doubt.
 getSharedPreferences(sharedprefname, Context.MODE_PRIVATE) in a broad cast 
 receiver returns null pointer 
 exception?http://stackoverflow.com/questions/13560707/getsharedpreferencessharedprefname-context-mode-private-in-a-broad-cast-recei
  
 *I'm developing an android application.Im using Android SDK 2.2*
 I'm using 2 Broadcast receivers.Receiver A start a service S1
 Receiver B starts a service S2.
 Both the recievers invoked at a time interval of 1 hour
 Receiver A is invoked @ a time 9.00,10.00 ,etc
 Receiver B is invoked @ a time 8.50,9.50 ,etc
 In a service s1 im storing some data in shared preferences
 Im storing some data in shared preferences in the receiver B.
 Im using the below code in the BroadCastReceiver for getting shared 
 preference.But it throws null pointer exeption 

 The coding snippet given belo

 *context.getApplicationContext().getSharedPreferences(myPrefs_capture_gps_per_hour,
  Context.MODE_PRIVATE);


 *in the above code *context* is the object of the class BusinessModel.This 
 BusinessModel class is the child class of the 
 *Application(android.app.Application)*



   Give ur ideas



 -- 
 *Thanks  Regards,
 Sivakumar.J*





-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Make a one app appliance (prevent quitting app)

2012-11-26 Thread bob
 

You will want to root it and install SureLock.

On Monday, November 26, 2012 4:02:03 PM UTC-6, Tobiah wrote:

 I need to make a one function appliance out of an Android phone 
 for distribution to participants of an event.  I want the user 
 to see the app running, but not be able to do anything else. 
 What sort of ways are there to lock down a device so that it 
 appears as a one-app appliance?  We retain ownership of the 
 devices, so we can mess with the phones in any way before or 
 after installing the program. 

 Thanks, 

 Tobiah 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Wrapping horizontal list view?

2012-11-26 Thread bob
 

This reminds me of the old Java FlowLayout.  Unfortunately for you, 
FlowLayout didn't make it into Android.  Don't know why.



On Monday, November 26, 2012 9:51:58 AM UTC-6, Gal Ben-Haim wrote:

 I actually don't want to scroll horizontally at all.

 I want items to be places from left to right, and warp to the next row 
 when there's not enough room for the next item. also, this should scroll 
 vertically.

 On Mon, Nov 26, 2012 at 5:42 PM, bob b...@coolfone.comze.comjavascript:
  wrote:

 This widget is no longer supported. Other horizontally scrolling widgets 
 include 
 HorizontalScrollViewhttp://developer.android.com/reference/android/widget/HorizontalScrollView.html
  and 
 ViewPagerhttp://developer.android.com/reference/android/support/v4/view/ViewPager.html
  from 
 the support library.

 sic

 On Monday, November 26, 2012 8:50:56 AM UTC-6, Gal Ben-Haim wrote:

 I'm facing the same problem as this old question.

 I want to create an horizontal wrapping (and vertical scrolling) 
 ListView, 
 for example:

 11 222 
 44  66
 7 888 9

 where each numbers group is a list item.

 I found this old answer suggesting using a Gallery widget, but it only 
 allows to scroll horizontally.

 how can I create such view ?


 On Friday, January 8, 2010 1:52:09 AM UTC+2, Romain Guy wrote:

 You can use a Gallery widget.

 On Thu, Jan 7, 2010 at 3:48 PM, Marcus vorw...@gmail.com wrote:
  I'm attempting to create a list view that shows clickable items that
  wrap horizontally much like the To/From/CC/BCC fields in OS X and the
  iPhone's Mail programs or like the TO field in Facebook's messages
  (really like most mail programs). My questions are:
 
  1. Is there a way to do this with a ListView? Everything I've seen and
  experimented with is either horizontal scrolling or vertically
  stacking, but not horizontal wrapping. If there's a way, would you
  point me in the right direction as far as first steps to take to
  implement it?
 
  2. Is anyone aware of an existing app with available source that has a
  view like this that I could look at as an example? The Google Mail/SMS
  apps just have single strings that are not clickable for those fields.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+**unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en
 

 -- 
 Romain Guy
 Android framework engineer
 roma...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them

  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] how to close custom dialog class in android

2012-11-26 Thread Douglas Drumond
I was hoping Mr cool would get the italics...



--
Douglas Drumond
http://about.me/douglasdrumond



On Mon, Nov 26, 2012 at 7:40 PM, TreKing treking...@gmail.com wrote:

 People aren't going to learn to fish if you're handing out free sandwiches.



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] missing stuff

2012-11-26 Thread bob
 

I'm trying to update my Android SDK.


Anyone know why it is complaining about missing stuff here?

https://lh5.googleusercontent.com/-N1XO7X5gebY/ULP26nnHvDI/AEs/UYclbz0Feyw/s1600/Screen+Shot+2012-11-26+at+5.07.36+PM.png


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: creating shared preferences throws null pointer exception

2012-11-26 Thread bob
I bet either *context* is null or getApplicationContext returns null.


On Monday, November 26, 2012 2:26:36 AM UTC-6, SIVAKUMAR.J wrote:


 Dear All,

   I had android doubt.
 getSharedPreferences(sharedprefname, Context.MODE_PRIVATE) in a broad cast 
 receiver returns null pointer 
 exception?http://stackoverflow.com/questions/13560707/getsharedpreferencessharedprefname-context-mode-private-in-a-broad-cast-recei
  
 *I'm developing an android application.Im using Android SDK 2.2*
 I'm using 2 Broadcast receivers.Receiver A start a service S1
 Receiver B starts a service S2.
 Both the recievers invoked at a time interval of 1 hour
 Receiver A is invoked @ a time 9.00,10.00 ,etc
 Receiver B is invoked @ a time 8.50,9.50 ,etc
 In a service s1 im storing some data in shared preferences
 Im storing some data in shared preferences in the receiver B.
 Im using the below code in the BroadCastReceiver for getting shared 
 preference.But it throws null pointer exeption 

 The coding snippet given belo

 *context.getApplicationContext().getSharedPreferences(myPrefs_capture_gps_per_hour,
  Context.MODE_PRIVATE);


 *in the above code *context* is the object of the class BusinessModel.This 
 BusinessModel class is the child class of the 
 *Application(android.app.Application)*



   Give ur ideas



 -- 
 *Thanks  Regards,
 Sivakumar.J*





-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: missing stuff

2012-11-26 Thread lbendlin
All that's missing is you agreeing to the license.

On Monday, November 26, 2012 6:10:57 PM UTC-5, bob wrote:

 I'm trying to update my Android SDK.


 Anyone know why it is complaining about missing stuff here?


 https://lh5.googleusercontent.com/-N1XO7X5gebY/ULP26nnHvDI/AEs/UYclbz0Feyw/s1600/Screen+Shot+2012-11-26+at+5.07.36+PM.png




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: android e book

2012-11-26 Thread Mário César Mancinelli de Araújo
Maybe you won't need any of this. But, first, questions:
- The data you want is only in that HTML page? If so, how is it formated?
- Or is it in a database? If this is the case, can't you access directly
the db?

Anyway, you can access it with xml, or directly the database. And it isn't
so hard to do that with xml. There are a lot of examples over the internet
about that.

I, personaly, had never used xml until now (I'm creating a small app for
the blog of a nonprofit organization I created). Still, I was able to find
an example and change it to get the featured image of each post and so on.

All you have to do is look the source code of the page (you can see it with
your bronser) and try to find a pattern in it. ;-)

Best regards.
Em 26/11/2012 15:11, Salih Gündüz gunduz.sa...@gmail.com escreveu:

 webview is a good solution thanks. But the web page is not good formatted
 for mobile devices.It is a government page so I can not reach the database
 but I and to develope my own user interface.

 On Mon, Nov 26, 2012 at 7:03 PM, Michael Banzon mich...@banzon.dk wrote:

 You must include a caching layer in your app.

 Everything you need to do this can be found in the SDK manual on
 WebViews: http://developer.android.com/guide/webapps/webview.html


 On Mon, Nov 26, 2012 at 5:31 PM, Salih Gündüz gunduz.sa...@gmail.comwrote:

 İt can be used. but I want to store the data in phone so they can read
 when they dont have internet.this is my problem :)

 26 Kasım 2012 Pazartesi 18:28:11 UTC+2 tarihinde bob yazdı:

 Sounds like you will want to use a WebView.

 On Monday, November 26, 2012 10:09:30 AM UTC-6, Salih Gündüz wrote:

 I want to develope an e book for android. My data is in internet but
 not a json or a xml only html page.(http://www.mevzuat.**
 adalet.gov.tr/html/388.htmlhttp://www.mevzuat.adalet.gov.tr/html/388.html).
 the data changes often. so data must be update often and must be saved on
 phone so people can read without internet.How can I parse data from html?
 can I convert the page json?can you suggest me some ways or methods?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Michael Banzon
 http://michaelbanzon.com/

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: looking for canvas tutorial

2012-11-26 Thread Prabu Siabuabu
hi bob thanks for taking your time to check out my question.. i'm very
thankful to you. i'll try the code snippet and search more about lunar
lander in google, once again, thanks a lot sir.


2012/11/26 bob b...@coolfone.comze.com

 Sounds like you will want to check out the Lunar Lander demo.

 Here's a snippet:

private void doDraw(Canvas canvas) {
 // Draw the background image. Operations on the Canvas
 accumulate
 // so this is like clearing the screen.
 canvas.drawBitmap(mBackgroundImage, 0, 0, null);

 int yTop = mCanvasHeight - ((int) mY + mLanderHeight / 2);
 int xLeft = (int) mX - mLanderWidth / 2;

 // Draw the fuel gauge
 int fuelWidth = (int) (UI_BAR * mFuel / PHYS_FUEL_MAX);
 mScratchRect.set(4, 4, 4 + fuelWidth, 4 + UI_BAR_HEIGHT);
 canvas.drawRect(mScratchRect, mLinePaint);

 Also, the docs for android.graphics.Canvas are surprisingly good.


 On Sunday, November 25, 2012 7:39:20 PM UTC-6, Prabu Siabuabu wrote:

 hi everyone! do everyone here have any resources, links, or article about
 how to make canvas apps on android in native?? i have a javascript canvas
 app and didn't know or exactly stuck withhow to convert it to android, so
 i'm looking to any resource in native or anything else to make my app can
 run on android. thanks in advance.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Make a one app appliance (prevent quitting app)

2012-11-26 Thread Nikolay Elenkov
On Tue, Nov 27, 2012 at 6:57 AM, Toby t...@tobiah.org wrote:
 I need to make a one function appliance out of an Android phone
 for distribution to participants of an event.  I want the user
 to see the app running, but not be able to do anything else.
 What sort of ways are there to lock down a device so that it
 appears as a one-app appliance?  We retain ownership of the
 devices, so we can mess with the phones in any way before or
 after installing the program.


What version are you devices running? If you are on 4.2, you can
add another user and disable all built-in applications, effectively
limiting access to your own. You can also write a custom launcher
that simply restarts your app when you press Home, which is your
best bet if you are on a lower version (or a handset that doesn't
support multi-user) There are apps that do this with different levels
of success on the Play Store, you can try using one of those.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] why progress dialog dismiss after rotating the screen landscap to portrait

2012-11-26 Thread monty
Hello,
 i am using android annotation , in my app i am using progress 
dialog but after rotation the screen it dismiss(why).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: why progress dialog dismiss after rotating the screen landscap to portrait

2012-11-26 Thread William Ferguson
It is being dismissed because during rotation your Activity is being 
destroyed and recreated and hence the Context for your dialog gets 
destroyed.

If you would like your dialog to be recreated after rotation use 
Activity#showDialog(dialogId) instead, as this will automatically take care 
of reconstruction of the dialog.

William

On Tuesday, November 27, 2012 1:36:23 PM UTC+10, monty wrote:

 Hello,
  i am using android annotation , in my app i am using progress 
 dialog but after rotation the screen it dismiss(why).


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: why progress dialog dismiss after rotating the screen landscap to portrait

2012-11-26 Thread monty
but showDialog is deprecated.

On Tuesday, November 27, 2012 9:43:50 AM UTC+5:30, William Ferguson wrote:

 It is being dismissed because during rotation your Activity is being 
 destroyed and recreated and hence the Context for your dialog gets 
 destroyed.

 If you would like your dialog to be recreated after rotation use 
 Activity#showDialog(dialogId) instead, as this will automatically take care 
 of reconstruction of the dialog.

 William

 On Tuesday, November 27, 2012 1:36:23 PM UTC+10, monty wrote:

 Hello,
  i am using android annotation , in my app i am using progress 
 dialog but after rotation the screen it dismiss(why).



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: why progress dialog dismiss after rotating the screen landscap to portrait

2012-11-26 Thread William Ferguson
True, but that doesn't mean it won't work.

Non-deprecated mechanism is to use the FragmentManager, but I have no idea 
how your dialog will behaves wrt Activity rotation. You didn't elaborate on 
exactly how you are creating your Dialog in the first place. Are you 
already using the FragmentManager, perhaps showing some of your code might 
help.

William

On Tuesday, November 27, 2012 2:52:20 PM UTC+10, monty wrote:

 but showDialog is deprecated.

 On Tuesday, November 27, 2012 9:43:50 AM UTC+5:30, William Ferguson wrote:

 It is being dismissed because during rotation your Activity is being 
 destroyed and recreated and hence the Context for your dialog gets 
 destroyed.

 If you would like your dialog to be recreated after rotation use 
 Activity#showDialog(dialogId) instead, as this will automatically take care 
 of reconstruction of the dialog.

 William

 On Tuesday, November 27, 2012 1:36:23 PM UTC+10, monty wrote:

 Hello,
  i am using android annotation , in my app i am using progress 
 dialog but after rotation the screen it dismiss(why).



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Debug Certificate

2012-11-26 Thread Nsubuga
Hi guys, I am working on a location aware app that will use Google maps. I 
need a MD5 Certificate generated by keytool. I followed the 
instructionshttps://developers.google.com/maps/documentation/android/mapkey 
however 
instead of an MD5 certificate the keytool returns a certificate of type 
SHA1. I need some help, what should I do to generate MD5 instead of SHA1. I 
am using Linux(Ubuntu  12.04)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: why progress dialog dismiss after rotating the screen landscap to portrait

2012-11-26 Thread monty
I got solution for that android:configChange=Orientation but i am using 
android annotation so i need some thing in annotation..i found 
@NonConfigurationInstance but i dont know how to use it.

On Tuesday, November 27, 2012 10:45:41 AM UTC+5:30, William Ferguson wrote:

 True, but that doesn't mean it won't work.

 Non-deprecated mechanism is to use the FragmentManager, but I have no idea 
 how your dialog will behaves wrt Activity rotation. You didn't elaborate on 
 exactly how you are creating your Dialog in the first place. Are you 
 already using the FragmentManager, perhaps showing some of your code might 
 help.

 William

 On Tuesday, November 27, 2012 2:52:20 PM UTC+10, monty wrote:

 but showDialog is deprecated.

 On Tuesday, November 27, 2012 9:43:50 AM UTC+5:30, William Ferguson wrote:

 It is being dismissed because during rotation your Activity is being 
 destroyed and recreated and hence the Context for your dialog gets 
 destroyed.

 If you would like your dialog to be recreated after rotation use 
 Activity#showDialog(dialogId) instead, as this will automatically take care 
 of reconstruction of the dialog.

 William

 On Tuesday, November 27, 2012 1:36:23 PM UTC+10, monty wrote:

 Hello,
  i am using android annotation , in my app i am using progress 
 dialog but after rotation the screen it dismiss(why).



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] how can i manage security for mysql database permission as global

2012-11-26 Thread Krishna Veni
I have to developed one android application.

The app is performed the data is retrieved from mysql database and 
displayed on android device.

here i have to gave the permission globally on my mysql database.

my mysql database permission is global means all are allowed to access my 
mysql database.but i have to allow to access my mysql database myself 
only.others are does not allow to access.

So this situation how can i manage security for my mysql database.

am beginner for this.please help me.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Debug Certificate

2012-11-26 Thread Asheesh Arya
C:\Program Files\Java\jre7\binkeytool -list -v  -alias androiddebugkey
-keystor
e c:\users\.android\debug.keystore -storepass android -keypass a
ndroid

just add -v when u generate md5 command in cmd it will generate md5 and
sha1

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Problem get data web sent bluetooth

2012-11-26 Thread Antonis Kanaris
Hello.I try this code 

package com.example.timer1;
;

public class ReadWebArduino1 extends Activity {

TextView txt;

Handler handler = new Handler();


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
txt=(TextView)findViewById(R.id.txt);
myLabel = (TextView)findViewById(R.id.label);
}

private class DownloadWebPageTask extends AsyncTaskString, Void, 
String {
@Override
protected String doInBackground(String... urls) {
  String response = ;
  for (String url : urls) {
DefaultHttpClient client = new DefaultHttpClient();
HttpGet httpGet = new HttpGet(url);
try {
  HttpResponse execute = client.execute(httpGet);
  InputStream content = execute.getEntity().getContent();

  BufferedReader buffer = new BufferedReader(new 
InputStreamReader(content));
  String s = ;
  while ((s = buffer.readLine()) != null) {
response += s;
  }

} catch (Exception e) {
  e.printStackTrace();
}
  }
  return response;
}

@Override
protected void onPostExecute(String result) {
  txt.setText(result);
}
  }

  public void readWebpage(View view) {
 
  DownloadWebPageTask task = new DownloadWebPageTask();
  task.execute(new String[] { http://www.site.net/LEDstate.txt; });
  
 }


protected void onStart() {
  super.onStart();
runnable.run();
}

private Runnable runnable = new Runnable() 
{

public void run() 
{

DownloadWebPageTask task = new DownloadWebPageTask();
task.execute(new String[] { http://www.site.net/LEDstate.txt; 
});
try 
{
findBT();
openBT();
sendData();
}
catch (IOException ex) { }

handler.postDelayed(this, 1);//Refresh page time is 10secs
}
};

void findBT()
{
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if(mBluetoothAdapter == null)
{
myLabel.setText(No bluetooth adapter available);
}

if(!mBluetoothAdapter.isEnabled())
{
Intent enableBluetooth = new 
Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
startActivityForResult(enableBluetooth, 0);
}

SetBluetoothDevice pairedDevices = 
mBluetoothAdapter.getBondedDevices();
if(pairedDevices.size()  0)
{
for(BluetoothDevice device : pairedDevices)
{
if(device.getName().equals(HC-07)) 
{
mmDevice = device;
break;
}
}
}
myLabel.setText(Bluetooth Device Found);
}

void openBT() throws IOException
{
UUID uuid = 
UUID.fromString(1101--1000-8000-00805f9b34fb); //Standard 
SerialPortService ID
mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);
mmSocket.connect();
mmOutputStream = mmSocket.getOutputStream();
//mmInputStream = mmSocket.getInputStream();

   // beginListenForData();

myLabel.setText(Bluetooth Opened);
}

void sendData() throws IOException
{
//String msg = myTextbox.getText().toString();
String msg=H;
msg += \n;
mmOutputStream.write(msg.getBytes());
myLabel.setText(Data Sent);
}


}

my problem is bt data no loop(work only the first time) and how sent the 
web data to msg variable for out to bt.Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Google Map

2012-11-26 Thread Narendra Singh Rathore
On Tue, Nov 27, 2012 at 1:10 AM, asha b ash...@gmail.com wrote:



   Make sure you are using proper map key for mapview and keystore for
 application.
 Simple page without mapview means problem is with mapkey.



Hi Asha, but if the problem is with mapkey, then why it is being displayed
on emulator.
In that case, it shouldn't even work on emulator. What do you say?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Google Map

2012-11-26 Thread Ehsan Ghasisin
Hi , my program work without any error in emulator. i have problem when
 install my program on my device

On Tue, Nov 27, 2012 at 2:57 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:



 On Tue, Nov 27, 2012 at 1:10 AM, asha b ash...@gmail.com wrote:



   Make sure you are using proper map key for mapview and keystore for
 application.
 Simple page without mapview means problem is with mapkey.



 Hi Asha, but if the problem is with mapkey, then why it is being displayed
 on emulator.
 In that case, it shouldn't even work on emulator. What do you say?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: creating shared preferences throws null pointer exception

2012-11-26 Thread Jonathan S


*context is Context and **getApplicationContext() is Application's Context. 

There is no needed for call both context, just one context.*



On Monday, November 26, 2012 3:26:36 AM UTC-5, SIVAKUMAR.J wrote:


 Dear All,

   I had android doubt.
 getSharedPreferences(sharedprefname, Context.MODE_PRIVATE) in a broad cast 
 receiver returns null pointer 
 exception?http://stackoverflow.com/questions/13560707/getsharedpreferencessharedprefname-context-mode-private-in-a-broad-cast-recei
  
 *I'm developing an android application.Im using Android SDK 2.2*
 I'm using 2 Broadcast receivers.Receiver A start a service S1
 Receiver B starts a service S2.
 Both the recievers invoked at a time interval of 1 hour
 Receiver A is invoked @ a time 9.00,10.00 ,etc
 Receiver B is invoked @ a time 8.50,9.50 ,etc
 In a service s1 im storing some data in shared preferences
 Im storing some data in shared preferences in the receiver B.
 Im using the below code in the BroadCastReceiver for getting shared 
 preference.But it throws null pointer exeption 

 The coding snippet given belo

 *context.getApplicationContext().getSharedPreferences(myPrefs_capture_gps_per_hour,
  Context.MODE_PRIVATE);


 *in the above code *context* is the object of the class BusinessModel.This 
 BusinessModel class is the child class of the 
 *Application(android.app.Application)*



   Give ur ideas



 -- 
 *Thanks  Regards,
 Sivakumar.J*





-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Google Map

2012-11-26 Thread Narendra Singh Rathore
On Tue, Nov 27, 2012 at 12:42 PM, Ehsan Ghasisin ehsan@gmail.comwrote:

 Hi , my program work without any error in emulator. i have problem when
  install my program on my device


Hi Ehsan, have you tried on any other device?
If yes, what was the response of that?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Need guidance for developing driver to access internet on USB port

2012-11-26 Thread Surjya Padhi
hi,

Currently I got a project to develop a driver for android to access 
internet on USB port. On USB port will be connected to a ethernet to USB 
converter. 
Before I have developed the android applications. But not any driver. Can 
anybody please throw some light on how to proceed with this project. 
Currently I am planning for Ice Cream Sandwith (4.0) version. I need 
information about if anybody has developed this ever? If not which layer of 
android I have to work on. Any tutorial I have to go through for this to 
develop? And yes I need the VLAN support on this driver also. What are the 
things I have to check from the hardware point of view. I am blank. Please 
someone give me some thoughts.

I will be grateful to get your valuable suggestions.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Google Map

2012-11-26 Thread Ehsan Ghasisin
unfortunately no

On Tue, Nov 27, 2012 at 3:21 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:



 On Tue, Nov 27, 2012 at 12:42 PM, Ehsan Ghasisin ehsan@gmail.comwrote:

 Hi , my program work without any error in emulator. i have problem when
  install my program on my device


 Hi Ehsan, have you tried on any other device?
 If yes, what was the response of that?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Write to another application's internal memory

2012-11-26 Thread Android Test
 

Hi All,

I have 2 applications with different package names. E.g. App1 and App2.

App1 needs to write some files to App2's internal memory so that it could 
be uploaded to the backend.

I have used the following in App1 to do so:

filePath = getPackageManager().getPackageInfo(app2.package.name, 
0).applicationInfo.dataDir;

I can get the correct path but could not write to it. I checked the logcat, 
it is showing Permission denied.

Am I missing something? What's else needs to be done?

Thanks in Advance

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en