brad's life - K-9 SMS: faster SMS for Android [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

K-9 SMS: faster SMS for Android [Dec. 7th, 2008|10:08 pm]
Previous Entry Add to Memories Share Next Entry
[Tags|, , ]

I pulled the latest Android git code and fixed some performance bugs in the SMS app. Here's the improved SMS app:

http://bradfitz.com/android/K9Sms.apk

It's a lot faster to scroll around and stuff now. No more repetitive, uncached, blocking SQL queries in the UI thread when each list items comes in/out of view.

With permission from Jesse Vincent, I named it after k9mail, as it's in a similar spirit. We'll probably put it in k9mail's svn repo until all the changes get merged into mainline. Consider this a temporary, experimental fork.
LinkReply

Comments:
From: evan
2008-12-08 06:43 am (UTC)

(Link)

Cool, worked for me.
[User Picture]From: obra
2008-12-08 06:54 am (UTC)

(Link)

lovely... it's so much faster
From: manuzhai
2008-12-08 08:55 am (UTC)

(Link)

Temporary, so this will get pulled back into mainline?

These kind of hacks make me all the more excited to be getting a dev phone 1.
[User Picture]From: brad
2008-12-08 09:22 am (UTC)

(Link)

Temporary, so this will get pulled back into mainline?

I'll be working on submitting the patches. Not sure about the timeline, though.
[User Picture]From: fallenpegasus
2008-12-08 04:18 pm (UTC)

(Link)

One thing that makes Drizzle so much fun to work on, is that if your patches are good, they roll back into the mainline quickly.

That's an important property of a project that to attract developers.

I am hoping that Google does this well.
[User Picture]From: nedrichards
2008-12-08 01:02 pm (UTC)

(Link)

+1 WIN
[User Picture]From: compbrain
2008-12-08 04:29 pm (UTC)

(Link)

Any thoughts on the duplicate notification problem? (ie, message comes in both the stock sms app and k9 trigger notifications)
[User Picture]From: brad
2008-12-08 05:50 pm (UTC)

(Link)

There's two issues: duplicate notifications and duplicate SMSes.

Notifications is easy to fix: just change the settings in either app to disable them. (haven't confirmed, but should work)

Duplicate SMSes will require me to update it: currently both SMS apps are reacting to incoming SMSes and writing it to the database, so it's going into the database twice.
[User Picture]From: compbrain
2008-12-08 08:11 pm (UTC)

(Link)

I thought of disabling the settings in the stock app, but it disables the notification in both. Here's hoping for a mainstream push
[User Picture]From: brad
2008-12-08 09:19 pm (UTC)

(Link)

In the meantime, I'll fix the K-9 SMS to have separate notification settings and not write the SMS database.
[User Picture]From: rydiafantasy
2009-01-16 04:17 am (UTC)

(Link)

Hello,
I just found this from a topic on the G1 forums. Do you have to do anything after you put the .apk file on your SD card? Or is it just automatic? I made sure to check the box that allows 3rd party apps. I'm not sure how to do this sort of stuff, but if it speeds up message threads and SMS, I'm all for it!
[User Picture]From: brad
2009-01-16 06:17 am (UTC)

(Link)

I'd just wait for the next system update.