Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access the SMS storage on Android?

Beginner Android dev here.

I'm trying to create an app that will read the SMS messages stored on the device and then give the user statistics about their habits (like who they message often, common words, etc).

But to my knowledge, there doesn't seem to be a way to do this. I've looked around on forums and the most anyone talks about is accessing the inbox where you can find messages the user hasn't read. How then can the default app and third-party (Handcent for example) display the same texts? They don't keep their own database because Handcent will display all texts upon fresh install.

tl;dr: How do I read SMS messages on an Android devices, specifically messages that have been read before.

like image 601
eternalmatt Avatar asked Jan 26 '11 20:01

eternalmatt


People also ask

Where are SMS files stored on Android?

In general, Android SMS are stored in a database in the data folder located in the internal memory of the Android phone.

What are SMS files stored on Android?

Your text messages are actually stored in a specific database folder in your Android phone's memory.


1 Answers

For a concrete example of accessing the SMS/MMS database, take a look at gTalkSMS.

like image 53
Sebastian Paaske Tørholm Avatar answered Sep 23 '22 00:09

Sebastian Paaske Tørholm