[android-developers] Pefrence Activity - onclick issue
In our app we are using an Activity which extends PreferenceActivity. In this activity
we declared a public method to handle the click and reference this method from the xml.
On click event the method which we referred in the xml is not getting executed , the control not even going to that method.
This is what I am trying to do
xml file :
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Other Settings">
<Preference android:title="Feedback"
android:summary="Send feedback about the app"
android:onClick="OnFeedbackClick"/>
</PreferenceCategory>
In the activity we declared the method "OnFeedbackClick" which we referred in the xml.
public void OnFeedbackClick(View v) {
sendMail();
}
The problem is, OnFeedbackClick method is not getting executed when I click on the Feedback preference. Any idea --
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home