but I don't know why does startService into onCreate method,don't into onStart method.
2010/8/2 Mark Murphy <mmur...@commonsware.com> > You can access the Intent in onStart() of your service. > > On Mon, Aug 2, 2010 at 5:56 AM, 汪健飞 <wangjf...@gmail.com> wrote: > > In the Activity I write > > > > Intent i=new Intent("IntentServiceTest"); > > Bundle bundle = new Bundle(); > > bundle.putString("abc", "def"); > > i.putExtra("wer", bundle); > > IntentTest.this.startService(i); > > Start Service into Service OnCreate method,but I don't know how to do get > > this Intent in this method.Thanks! > > > > > > -- > > Cary > > > > -- > > 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<android-developers%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > _Android Programming Tutorials_ Version 2.9 Available! > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Cary -- 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