Hi !

Greetings to all :-)

I need help with 2 problems :

1] I'm working on a tiny alarm app [next step after Hello World]. It
doesn't require a special UI, only 2-3 settings are there[on/
off,interval,etc]. So I thought of making it PreferenceActivity
directly. Its okay, right ?
I added an xml file with 2 CheckboxPreferences for now and loading
that file in OnCreate using

addPreferencesFromResource(R.xml.preferences);

What I wish to do is, if first CheckboxPreference is clicked
[unchecked], unregister alarm.
else if its checked, re-register alarm.

but I am not getting how do I grab OnClick event for these Preferences
since they were added by addPreferencesFromResource.

I found these in documentation but not getting how to use it :
http://developer.android.com/reference/android/preference/Preference.OnPreferenceChangeListener.html
http://developer.android.com/reference/android/preference/Preference.OnPreferenceClickListener.html

need help with this part..

2] is there any readymade thing equivalent to FolderBrowserDialog ?
I wish to have a FolderBrowserDialog kind of thing as one of the
preferences so that user can select directory my application can read
some notes from.

what is the correct way to achieve it ?

If this is going to help you to help me : I'm an experienced c+
+,c#.net developer, know basics of java, yet to finish 24 hours with
Android :-)


Thanks

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