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 <[email protected]> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to