My question is very simple and I know the function can be preformed. I want to start activity via text message like “WHERE IS MY DROID” how can this be done? Please provide any information. I think SMSReceiver BroadcastReceiver is in the correct direction but I am not sure.
Share
You need to register an Broadcast Receiver in AndroidManifest.xml for Receiving SMS_RECIVERD Broadcast as:
Add permission in AndroidManifest:
in your Broadcast Receiver code start your Application as:
NOTE : For starting your Activity from background you need to set
Intent.FLAG_ACTIVITY_NEW_TASKandIntent.FLAG_FROM_BACKGROUNDflags in intent for starting activity from background.