Thanks ... It Works ! i Use this Code in Service Class : Intent mIntent = new Intent(context,MyClass.class); context.startService(mIntent);
And Uses Permission in Manifest ! <!-- Register in Android Manifest BootReceiver receiver --> <receiver android:name="BootReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <category android:name="android.intent.category.HOME" /> </intent-filter> </receiver> And : <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> On 12 Ott, 12:04, "pramod.deore" <deore.pramo...@gmail.com> wrote: > You have to register for the BOOT_COMPLETED intent but also for the > intent that will start the actual service.In manifest file use > permission as > < uses-permission > android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> > > The broadcast action android.intent.action.BOOT_COMPLETED that is sent > out once the platform boot is complete. > > On Oct 12, 2:53 pm, MarcoCanali <marco.can...@gmail.com> wrote: > > > > > > > > > How start my service when turn on my device in automatic mode ?? -- 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