I want to save SMS to inbox and I have implemented answers from here which were supposed to store message into inbox. But I'm unable to find the stored sms and no error or exception is thrown. Thanks
Asked
Active
Viewed 95 times
-1
-
check this link for SmsManager class [link](https://developer.android.com/reference/android/telephony/SmsManager) – Sahil Aug 29 '18 at 02:30
-
@sahil thanks, but I am not seeking to send SMS, I just want to save it. – Olu Udeh Aug 29 '18 at 04:20
-
you can only send or read the sms. what you intend to do can be done by the inbuilt app only. – Sahil Aug 29 '18 at 05:48
2 Answers
0
Only the default SMS app can write to the SMS database on modern versions of Android. You can send an SMS, or read them. But only 1 app set by the user can write them.

Gabe Sechan
- 90,003
- 9
- 87
- 127
-
woo! That is quite sad. Thanks for clarifying that. Please, I would like to know what versions or API levels are affected. – Olu Udeh Aug 29 '18 at 04:46
-
Anything KitKat and above should have this restriction, but there were loopholes on KitKat that allowed you to still do it. Starting with Lollipop these were removed. – Gabe Sechan Aug 29 '18 at 04:55
-