Pregunta

I have programmed a SMS handler application in Java and I would like to start my application on start up, as well as triggered on text message broadcast received.

Does anyone have any idea how to accomplish this and where to begin my research ?

¿Fue útil?

Solución

register receiver for android.intent.action.BOOT_COMPLETED event and start your application.

Also note that as of Android 3.0 the user needs to have started the application at least once before your application can receive android.intent.action.BOOT_COMPLETED events.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top