Thursday, July 5, 2012

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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment