Android Question How read sms content

darabon

Active Member
I'm developing an App for my device (security device).
It needs to read the SMS that is received from the device.
I tried many ways for get SMS but when the App is closed, cannot receive SMS
Please help me about it.
 
Implement a background service or broadcast receiver to continuously listen for incoming SMS. This way, the app can capture messages in real time, providing a seamless user experience. Moreover, be mindful of any power-saving restrictions on some devices that may affect background processes.
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
did you try what erel suggested? did you set the targetsdk as suggested?
the message "old tutorial ..., etc" applies to newer devices and recent targetsdk and for google play.
if the app is for your use, do as erel suggests.
 
Upvote 0

darabon

Active Member
did you try what erel suggested? did you set the targetsdk as suggested?
the message "old tutorial ..., etc" applies to newer devices and recent targetsdk and for google play.
if the app is for your use, do as erel suggests.
Oh no I dont test targetSdkVersion
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
so, try exactly what erel suggests. google's new rules may make things more difficult for you. you did not explain what sms has to do with security, so it's hard to know exactly what you're trying to do.
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
and, if you tried the example with a high targetsdk and now you want to try with a lower targetsdk, you have to delete the app from your device first. you can't deploy a lower targetsdk over a higher targetsdk. you can go up but not down.
 
Upvote 0
Top