Android Question running the app when sms received ?

Devv

Active Member
Licensed User
Longtime User
Hi

i want to make a simple anti theft app for personal use
the app must listen to the sms for commands for example wipe , beep ...
i have found anti thefts in the app store that dont use any memory because they dont run always
they only run when an sms message is received

how can i make my app only run when an sms received or an specified sms with a keyword received ?
 

mangojack

Expert
Licensed User
Longtime User
" Once this program is installed the service will be started each time that an Sms message arrives.... "

See Here ...

You could then read the intercepted SMS string for existence of "Keyword"
 
Upvote 0

IanMc

Well-Known Member
Licensed User
Longtime User
B4a is so cool because there are no limits to what you can program.

You can't make your app 'only run' in certain circumstances, you need it to be something that is run.

once it is run you can have a service intercept sms messages and either act on them or let them go further or even just look at them.
B4a is that cool :)

How can I ensure that my app is run at least once?

I dunno
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
once it is run you can have a service intercept sms messages and either act on them or let them go further or even just look at them.
B4a is that cool :)

Sign


How can I ensure that my app is run at least once?

AFAIK: sadly but you can not ensure that... The point is; the User must start the app once
If you already have an app running on the device you can listen to new installs; You can start the app from the alredy running app on that device if a specific app would be installed....
 
Upvote 0
Top