Android Scripting: SMS Search

PLEASE NOTE: This script does not currently work under ASE due to irksome utf8 issues with JSON.pm – this is a platform issue. You can follow the progress of this issue here.

One feature I’ve been missing from the default messaging application on my Android device is the ability to search through all of my text messages. As a result I’ve decided to write my own.

While reading through the Android Scripting Environment‘s API Reference Manual, I found the necessary API components required to build a search tool, and a few lines of Perl later and I had one.

It’s far from perfect, however it does JustWork™. Simply invoke the script from ASE, enter a search token, hit search and the script will return a comprehensive list of all your messages that match your search term (where “search term” is defined as any Perl regular expression). Assuming your search result was successful, simply scroll through the list of matched text messages and select one to open its message thread.

Sadly, there’s currently a limitation with regards to the lack of documentation supporting the content://sms… URI schema. I was unable to find out how to open the exact message that was selected, so I had to settle for the next-best-thing, which I’m afraid is the message thread. This isn’t too much of an issue, but I’m aware it’s also not ideal. Any suggestions on how I can combat this will be warmly welcomed.

As usual, the script’s available from my Github repository here. All suggestions, patches, and comments are welcome.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>