Most voted "alertdialog" questions
28 questions
Sort by count of
-
4
votes1
answer78
viewsCheckboxes in Alertdialog always return the same values
I have a AlertDialog with a custom layout with 2 checkboxes. But even if I click one of these checkboxes, by clicking the accept or cancel buttons (alert.setPositiveButton or the…
-
4
votes1
answer339
viewsAlert Dialog personalized with GIF image
I would like to know how to create a Alert Dialog customized where you had an Imageview containing a GIF. On my Main. imgAndroid = (Button) findViewByid (R.id.imagandroid);…
-
3
votes1
answer175
viewsAlertdialog Android "comment" Popupmenu
How do I get this result the 3 dots on this image have already been pressed. My layout <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"…
-
2
votes1
answer1001
viewsHow to open a Alertdialog?
Well, I’m learning now about Fragments. From what I understand, fragments are components, something you want to repeat on several screens, without having to keep creating several classes or…
-
1
votes1
answer542
viewsHow do I know if the user clicked outside of Alertdialog?
My doubt is very simple, but I’m not finding anything I can use. In my android project, I check the GPS connection of the user’s device, and if case is not active, I ask in a dialog box for it…
-
1
votes2
answers275
viewsReturn values using Dialog’s
I have the following method dialogConfirme in which it contains a custom dialog declared as public static to return a value of the type boolean. The issue of static is so I can call any class using…
-
1
votes1
answer515
viewsApp expect Alertdialog response to password
The function below returns a password typed in AlertDialog and is in a class responsible for creating any dialog box in my app, but as a whole AlertDialog the app does not "wait" the return of the…
-
1
votes1
answer864
viewsHow do I call a progressBar inside the Dialog?
I wonder if there is any way to call a Progressbar inside a Alertdialog... If so, how do I?
-
1
votes2
answers1767
viewsHow do I change the color of Alertdialog
I put it in my app where you can show the dialog to exit the application, but the dialog is black. I wanted it to be white. How do I change the theme of AlertDialog? @Override // SAIR DA APLICAÇÃO…
-
1
votes0
answers365
viewsAndroid Alertdialog
Good, I’m developing an Android application and right now, I found a problem for which I can’t find a solution, I’ll probably be doing something wrong, I hope someone can help me. The problem is…
-
1
votes1
answer145
viewsHow to fix the buttons in Alertdialog?
I’m having a problem with the buttons created in Alertdialog. I am making a phrase APP and at certain times the sentences are very large and causes the buttons in Alertdialog to drop. Is it possible…
-
1
votes2
answers41
viewsHow to make connection alert?
good i am beginner in ajax and wanted to know how I can do a check of connection to the internet, and display message on the screen whether or not you have an active connection to the internet (I…
-
1
votes0
answers14
viewsApplication does not display Alertdialog
Hello! I’m developing an app in Android Studio that at a certain point instantiates an object called Mesa with user input. For this, there is a button with the following behavior: if…
-
1
votes1
answer361
viewsCatch the return of a Alertdialog to treat willpopscope
I have a function called showAlertDialogSimNao() and this receives the name parameter and content. I would like to take the return of this function and treat at the end of the application. However…
-
0
votes1
answer479
viewsI would like to insert a javascript Alert into my action button
first the action call to exclude <?php $aux = 0; while($resultado = mysql_fetch_object($query)) { $url_alterar = "form_alterar.php?cod=".$resultado->id; $url_excluir =…
-
0
votes1
answer147
viewsInsert data into firebase from Alertdialog
Guys I’m having a question, I was wondering if you have how to store data in firebase from a custom Alertdialog? If I wanted the help of you to create a logic and make this idea happen, I think that…
-
0
votes1
answer148
viewsProblem when showing Alertdialog
I have an error message when trying to show Alertdialog using Android Studio. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes1
answer291
viewsHow do I close a dialog when the condition is true?
How can I make a custom alertDialog close after the user activates the gps? The dialog box tbm can not close while the gps condition is false, that is, while it is disabled alertDialog has to…
-
0
votes1
answer96
viewsAlertdialog with background
I created this alertDialog but I wonder if instead of having an icon when it appears, if it is possible to all have another color or even use an image like yours (Background). E Assign to the…
-
0
votes2
answers1165
viewsLayout in Alertdialog
I have this AlertDialog that shows on the other screen layout , in that layout has several EditText and a Button. How can I get the sword text of each of the edittext when I click on ok or the…
-
0
votes1
answer45
viewsApplication giving Crash on a button inside a custom Alertdialog
I am working with Alert Dialogs and I appeared an error where the application stops responding. The following code refers to a fragment where you are using the Google Maps API, and means that when I…
java android android-fragment listener alertdialogasked 7 years, 6 months ago Guilherme Vinicius 55 -
0
votes2
answers131
viewsAssign values to a Alertdialog views
I created a custom layout for my Alertdialog with a Textview in it, and an image, but I can’t put values in it. Does anyone know how to solve? Follows the code: private void carregaAlert(){ View v =…
-
0
votes2
answers117
viewsEdittext.gettext on a null Object Reference
I am trying to add records in the Firebase Realtime Database, through a Alertdialog, but the Edittext components do not let me abstract the component information. Below is the section of java..…
-
0
votes1
answer352
viewsHow to change Alertdialog buttons?
I wanted to change the buttons of my Alertdialog for example: I would like to exchange the positivebutton for a textview and so put the onClick event in it. My java: Mainactivity.java public void…
-
0
votes1
answer311
viewsAttempt to invoke virtual method
Good morning, I was doing a generic class to use Alertdialog, but I came across the following problem: 05-28 10:11:16.323 19359-19359/com.example.vitordalmolin.abllock E/AndroidRuntime: FATAL…
-
0
votes1
answer143
viewsDisplay an alert box when loading the page
I am working with Angular and I need to display an alert box when loading the html of a component, but I can only do this from a button click, but I need the alert to open as soon as the page is…
-
0
votes1
answer224
viewsWait Reply Alertdialog
I have an android app with a home screen, where there is a listview, and when I click on the listview she opens a alertdialog, that displayed the following message "Want to Start Maintenance ?", and…
-
0
votes0
answers47
viewsAlert in action of the button
I researched several days, nights.. Anyway, just basic examples: my problem is to add an alert to the user after the click of the button, "Do you want to Renew?" or "Do you want to Return? How? my…