Hi!
You can launch a service at boot time.
You need the permission RECEIVE_BOOT_COMPLETED and a BroadcastReceiver
that listens to ACTION_BOOT_COMPLETED.
In Your AndroidManifest you need the following:
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<receiver android:name=".BatteryBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
In your BroadcastReceiver you need to override:
public void onReceive(Context c, Intent intent)
Inside onReceive() you can start your service.
Dirk
On Tue, Aug 24, 2010 at 12:08, Vinay Prasad B R <vi...@innovindia.com> wrote:
> Hi,
> Is it possible to launch an application at the start up time instead
> of launching an application explicitly.
> --
> Regards,
> Vinay Prasad.B.R
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For more information about this change, please read [http://goo.gl/xkfl] or visit the Group home page.
> Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
> To unsubscribe from this group, send email to
> android-beginners+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en