Re: [android-developers] Showing a confirm dialog from the PreferenceAcivity

2012-07-05 Thread Kostya Vasilyev
DialogPreference, and Dialogs in general, work just fine on Android 3.* and 4.* And if you're asking about the compat library, AFAIK, ActionBarSherlock has a PreferenceActivity reimplementation that is compatible with the compat library's fragments. -- K 2012/7/5 Simon Giddings > Thank you for

Re: [android-developers] Showing a confirm dialog from the PreferenceAcivity

2012-07-05 Thread Simon Giddings
Thank you for your reply. However, this does not answer the main problem, which is - how to show a dialogfragment from a PreferenceActivity, which is not a fragment based activity ! On Wednesday, 4 July 2012 19:40:12 UTC+2, svins wrote: > > sorry, "an" > > On 4 July 2012 19:39, Gergely Juhász

Re: [android-developers] Showing a confirm dialog from the PreferenceAcivity

2012-07-04 Thread Gergely Juhász
sorry, "an" On 4 July 2012 19:39, Gergely Juhász wrote: > Here is any example about showing an alert with dialog fragment. > http://developer.android.com/reference/android/app/DialogFragment.html > (Alert Dialog section) > > On 4 July 2012 19:36, Simon Giddings wrote: >> Within my preferences I

Re: [android-developers] Showing a confirm dialog from the PreferenceAcivity

2012-07-04 Thread Gergely Juhász
Here is any example about showing an alert with dialog fragment. http://developer.android.com/reference/android/app/DialogFragment.html (Alert Dialog section) On 4 July 2012 19:36, Simon Giddings wrote: > Within my preferences I give the user control over my image cache, including > the ability t

[android-developers] Showing a confirm dialog from the PreferenceAcivity

2012-07-04 Thread Simon Giddings
Within my preferences I give the user control over my image cache, including the ability to empty the cache. However, I want the user to confirm the emptying of the cache (to avoid mistakes). We are supposed to use dialog fragments now instead of dialog builders as these are depreciated (as far