nexus one

Android : Iterating through SMS's by conversation sorted by date

Was a little fiddly to work out for newbies like myself, You can pass an argument to the .query() of the content resolver to tell it to sort by date, saves nasty custom SQLite interactions!, nice!

    public void refreshMessagelist() {
        
        mMessagesArrayAdapter.clear();
            String strUriInbox = "content://sms/conversations";
            Uri uriSmsConversations = Uri.parse(strUriInbox); 
            String strOrder = "date";
            Cursor cConversation = getContentResolver().query(uriSmsConversations, null, null, null, strOrder);
            

Hello world on Android Nexus One!

I had a bash at the Android SDK with Eclipse, seems pretty decent, even had a working emulator, in an hour I managed to

- Get a working development environment
- Learn about basic HTTP connections
- Test the application in the emulator
- Upload my app to my nexus one android (2.2 cyanogenmod)

My first app just (without much error checking) displays the contents from the CHANGELOG.txt of this site, but atleast I know how to get some data from the net and display it.

Syndicate content