[android-beginners] Re: How do I implement onClick for a DialogPreference?

2009-08-26 Thread Nick
I have already done this. I do find that a lot of my answers get solved by searching through API Demos. However in the API Demos, they just show how to show the Dialog and that is it. They never show how to return which button was pressed. Nick On Aug 21, 3:33 pm, Donn Felker

[android-beginners] Re: How do I implement onClick for a DialogPreference?

2009-08-24 Thread Donn Felker
I dont have an IDE in front of me, but I think this exact example is available in the API Demos. Add it to your Eclipse workspace and poke around in the preference area. I advise you to install the ApiDemos on your emulator or test phone (or G1 if you have one). It makes life alot easier when you

[android-beginners] Re: How do I implement onClick for a DialogPreference?

2009-08-21 Thread Nick
Looking around the source I think I found what I was looking for. I assume that I need to implement onDialogClosed from DialogPreference.java. But to do this do I need to create a new class say MyDialogPreference or is there a way to just implement that method in the class below? On Aug 20,