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" <[email protected]> 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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en