-3

I asked question in : "How to create an android autostart application?" and my app start automatically. Now I want my app to run when Android boots, but without its form being visible on-screen (only show form in manually run)

Community
  • 1
  • 1
Hamid
  • 103
  • 1
  • 7

1 Answers1

1
        <receiver android:name="com.example.RebootReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

In the RebootReceiver you can start service instead of activity, and do your logic in service.

Prakash
  • 4,479
  • 30
  • 42