[android-developers] Service start intent problem

2010-08-11 Thread Alex Xin
Hi, I've found a problem that may random FCs on some certain phones, Here's the code snapshot: Intent i = new Intent(); i.setClasss(this, MyService.class); i.putExtra(tag, test); startService(i); public void onStart(Intent intent, int startId ){ String str = intent.getExtras().getString(tag);

Re: [android-developers] Service start intent problem

2010-08-11 Thread Frank Weiss
Does it FC when you use getIntent() instead of the parameter to onStart? -- 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

Re: [android-developers] Service start intent problem

2010-08-11 Thread Alex Xin
Hi, Frank I can give it a try. Above code snapshot works perfect and on my Android 1.6 based phone, but random FC on Nexus One. Alex On Thu, Aug 12, 2010 at 9:26 AM, Frank Weiss fewe...@gmail.com wrote: Does it FC when you use getIntent() instead of the parameter to onStart? -- You