Re: [android-developers] Re: Service start intent problem

2010-09-01 Thread karthik gunda
plz i want only c language On Tue, Aug 31, 2010 at 4:09 PM, anders wrote: > I've done some more investigations, and it seems like the random FCs > never happens when the activity starts the service. It's rather the > system that sometime feels like starting the serviceand when this > happens

Re: [android-developers] Re: Service start intent problem

2010-08-31 Thread Kostya Vasilyev
It might be a good idea to check for intent being null, rather than catching the NPE - exceptions are for exceptional situations :) You also might find this useful: http://developer.android.com/reference/android/app/Service.html#START_REDELIVER_INTENT This is a flag that makes Android redeliv

[android-developers] Re: Service start intent problem

2010-08-31 Thread anders
I've done some more investigations, and it seems like the random FCs never happens when the activity starts the service. It's rather the system that sometime feels like starting the serviceand when this happens, the intent is null. My solution for this problem right now is just to swallow that

Re: [android-developers] Re: Service start intent problem

2010-08-24 Thread Alex Xin
I also want to know why, random FCs on Nexus One. On Mon, Aug 23, 2010 at 7:03 PM, anders wrote: > Hi, > > I've got the same issue, here's my code snapshot: > > (code from the Activity that starts the service) > > Bundle bundle = new Bundle(); > bundle.putString("key1", val1); > bundle.putString

[android-developers] Re: Service start intent problem

2010-08-23 Thread anders
Hi, I've got the same issue, here's my code snapshot: (code from the Activity that starts the service) Bundle bundle = new Bundle(); bundle.putString("key1", val1); bundle.putString("key2", val2); Intent intent = new Intent(TheActivity.this, TheService.class); intent.putExtras(bundle); startSer

[android-developers] Re: Service start intent problem

2010-08-23 Thread anders
Hi, I got the same issue, here's my code snapshot: (code from the Activity that starts the Service...) Bundle bundle = new Bundle(); bundle.putString(key1, val1); bundle.putString(key2, val2); Intent intent = new Intent(TheActivity.this, TheService.class); intent.putExtras(bundle); startService