How do I trigger execution of apk on event in android?

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 ?

Answers


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.


Need Your Help

Printing multiple ranges and worksheets to one PDF file

excel vba excel-2010

I have a worksheet that often needs to be printed in a specific order of worksheets and ranges. What I'm trying to do is

Call function in controller from a nested directive

javascript angularjs

I have two nested directives for building a treeview in Angular: