You need a 
View.OnClickListener<http://developer.android.com/reference/android/view/View.OnClickListener.html>
 that 
queries the database depending on the 
Button<http://developer.android.com/reference/android/widget/Button.html> it's 
attached to.
The SQL part is pretty obvious. Once you have the record, you update the 
interface, and this really depends on the kind of record and the view that 
display it. For example if it's a TextView you can simpy change the text. 
If you want you can use a 
ViewSwitcher<http://developer.android.com/reference/android/widget/ViewSwitcher.html>
 to 
add nice animation.

-- 
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