I am working on an android app to analyze a users message history.
One major issue is that i need a bank of messages to work with, ideally over a long period of time.
I have found how to send messages to the emulator via telnet but this is A. slow and B. messages are time stamped on arrival.
I would like suggestions on how to programmatically generate a pseudo-random inbox of say, 300 messages (content doesn’t matter at this point, but i need a range of times and dates).
Update: As an idea, would it be possible to somehow load my phones (1.5 android) message history to the emulator?
If you want to track and analyse the message history in your app, you can easily use a content provider for accessing SMS messages. But it’s not documented in the public SDK.
If you use
ContentResolver.query()with a Uri ofcontent://smsyou should be able to access these messages on 1.5(ECLAIR) and later version.Please go through the link for details how to do all that:Referal for Content Provider
Also before beginning on Content Provider, please visit and understand the Android Developer Blog.
Once: Android Developer Blog Warns to do that..