1

Possible Duplicate:
automatically run an application on Android phone startup

I have developed an Android app (not for phone). Is it possible to run my app immediately after the OS reboots?

Community
  • 1
  • 1
arachide
  • 8,006
  • 18
  • 71
  • 134

1 Answers1

1

Well you can have a BroadcastReceiver declared in your manifest to receive the BOOT_COMPLETED broadcast and then respond to that in your BroadcastReceiver and do what you like.

<receiver android:name="MyBootReceiver"
        android:enabled="true"
        android:exported="true"
        android:label="BootReceiver">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED"></action>

        </intent-filter>
    </receiver>
LuxuryMode
  • 33,401
  • 34
  • 117
  • 188