Possible Duplicates:
how to create startup application in android?
How to Autostart an Android Application?
Hi,
I am trying in one of my application when i am going to start i mean power on my google android g1 my application automatically will start but i am unable to understand how can
i do that please help……
Here’s a basic example of what I think you’re trying to do. You’ll need to do a few things. First, grant your application permission to listen for a “Boot completed” signal. In your AndroidManifest.xml, add this line in the manifest section:
Under your application section, add and specify a broadcast receiver for this intent:
You also need a broadcast receiver which will respond to this intent and start your service at boot. Create MyBroadcastReceiver.java in your project: