Hello

I've developed an sms application. With the new Hero rom, the app
doesen't work anymore. It seems as if the database has changed.

I use the following approach to get the data I need:

private String[] mProjection = new String[]
{"thread_id","address","body","read","date","m_type","type"};
private Uri mUri = Uri.parse("content://mms-sms/conversations");

Cursor smsCursor= context.getContentResolver().query
(mUri,mProjection,null, null,"DATE DESC");

This code now suddenly crashes on HTC Hero phones, complaining about
missing tables (thread_id for instance).


How can I fix this? Where do I get additional information about "new"
db design? And more generally: How in gods name am I supposed to
handle different behaviour on different phones when I develop my apps
on the standard SDK???

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to