Top "Android-alertdialog" questions

A subclass of Dialog that can display one, two or three buttons.

Dialog throwing "Unable to add window — token null is not for an application” with getApplication() as context

My Activity is trying to create an AlertDialog which requires a Context as a parameter. This works as expected if …

android android-alertdialog android-context builder
How can I display a list view in an Android Alert Dialog?

In an Android application, I want to display a custom list view in an AlertDialog. How can I do this?

android android-alertdialog
How to display a Yes/No dialog box on Android?

Yes, I know there's AlertDialog.Builder, but I'm shocked to know how difficult (well, at least not programmer-friendly) to display …

android android-alertdialog
How to prevent a dialog from closing when a button is clicked

I have a dialog with EditText for input. When I click the "yes" button on dialog, it will validate the …

android dialog android-alertdialog android-dialog android-dialogfragment
Android simple alert dialog

I need to show a little text message to the users that clicks a button on my Android app, on …

android dialog android-alertdialog
How to implement a custom AlertDialog View

In the Android docs on AlertDialog, it gives the following instruction and example for setting a custom view in an …

android android-alertdialog
How can I change default dialog button text color in android 5

I have many alert dialogs in my app. It is a default layout but I am adding positive and negative …

android android-layout android-5.0-lollipop android-alertdialog textcolor
Android AlertDialog Single Button

I'd like to have an AlertDialog builder that only has one button that says OK or Done or something, instead …

android button builder android-alertdialog
How to use and style new AlertDialog from appCompat 22.1 and above

I am trying to migrate from default android AlertDialog to the new one included in appCompat-22.1 So far I understand …

android android-support-library android-alertdialog android-appcompat
How can I change the color of AlertDialog title and the color of the line under it

I changed the color of an AlertDialog title using this command alert.setTitle( Html.fromHtml("<font color='#FF7…

android android-alertdialog