25.03.2011 18:47, Tobiah пишет:
Also, what of my choice to check the database once a second?
To often? Can I go to 1/10 of a second without impacting
CPU or battery usage?
Rather than polling like that, I would post a message of some sort,
which would probably end up calling notifyDataSetChanged.
If you are using a content provider for your data query, you can trigger
an update with:
http://developer.android.com/reference/android/content/ContentResolver.html#notifyChange(android.net.Uri,
android.database.ContentObserver)
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en