NOTE. . Firstly, just to let you know that Android has little to do with the messaging system in Android (2.3 or lower), because to work with things like SMS, you need a request using Content Providers that is officially unavailable, and Android guys also warned about this. You can check this at the following URL: http://android-developers.blogspot.in/2010/05/be-careful-with-content-providers.html
Further, for your solution and for all interested parties, I would like to share my explanation in accordance with the Android OS versions:
- Version 2.3 or lower: Yes, the application is as simple as being guided by Pankaj Kumar , and it will work for the above version of the Android OS and below.
- Version 4.0 and higher: The application will fail and will not work . Yes, as Android Dev Guys warns, from this version and above you won’t be able to read the contents of the messages, since I tried this to prevent your application from working in future Android releases. You can only get numbers from them, for example: inbox, sent, outbox failed, etc., but you cannot change or read the contents.
- Version> 3.0 and <4.0: Never tested or tried.
We hope that this information will help you and save your time to go to a dead end :)))
iabhi source share