Re: [android-developers] Showing a confirm dialog from the PreferenceAcivity
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 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 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 as I understand). How can I then show a confirmation dialog in this case ? -- 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 -- 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
Re: [android-developers] Showing a confirm dialog from the PreferenceAcivity
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 mr.s.giddi...@gmail.com 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 ! -- 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
[android-developers] Showing a confirm dialog from the PreferenceAcivity
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 as I understand). How can I then show a confirmation dialog in this case ? -- 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
Re: [android-developers] Showing a confirm dialog from the PreferenceAcivity
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 mr.s.giddi...@gmail.com wrote: 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 as I understand). How can I then show a confirmation dialog in this case ? -- 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 -- 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
Re: [android-developers] Showing a confirm dialog from the PreferenceAcivity
sorry, an On 4 July 2012 19:39, Gergely Juhász jg.sv...@gmail.com 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 mr.s.giddi...@gmail.com wrote: 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 as I understand). How can I then show a confirmation dialog in this case ? -- 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 -- 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