Questions tagged as 'alertdialog'

0
answers

Application does not display AlertDialog

Hello I'm developing an app in Android Studio that at some point instantiates an object called Mesa with input from user. For this, there is a button with the following behavior: if (botao_criar_mesa.isEnabled()) { botao_cria...
asked by 03.08.2018 / 01:12
0
answers

Android Alertdialog

Well, I'm developing an Android application and at the moment, I've encountered a problem for which I can not find a solution, I'll probably be doing something wrong, I hope someone can help me. The problem consists of the following: I have an a...
asked by 14.04.2017 / 16:49
1
answer

App expect response from AlertDialog for password [duplicate]

The function below returns a password entered in AlertDialog and is in a class responsible for creating any dialog box in my app, but like all AlertDialog the app does not "wait" for the function return to continue execution. My...
asked by 15.09.2016 / 14:57
2
answers

Layout in AlertDialog

I have this AlertDialog which shows on the screen another layout , in this layout has several EditText and a Button . I would like to know how I can do to get the text of each of the edittext when I click on ok...
asked by 08.08.2017 / 04:29
1
answer

Display an alert box when loading page

I'm working with Angular and need to display an alert box when loading a component's html, however I can only do this from a button click, however I need the alert to open as soon as the page loads , without the need for interaction with any obj...
asked by 05.11.2018 / 12:17
1
answer

AlertDialog with background

I created this alertDialog but I would like to know if instead of having an icon when it appears, if it is possible it has another color or even use an image as its (Background). And Assign the buttons a background. public void icon (View View...
asked by 09.12.2016 / 15:15
2
answers

EditText.getText on a null object reference

I'm trying to add records in the Firebase Realtime Database, through an AlertDialog, but the EditText components do not let me abstract the information from the components. Below is the java excerpt .. fab.setOnClickListener(new View.OnClic...
asked by 26.06.2018 / 10:58
1
answer

How do I change the AlertDialog buttons?

I wanted to change the buttons of my AlertDialog for example: I would like to change the positivebutton for a textview and thus put the onClick event on it. My java: MainActivity.java public void onBackPressed() { View view = this.ge...
asked by 20.10.2017 / 07:45
2
answers

Assigning values to the views of an AlertDialog

I created a custom layout for my AlertDialog with a TextView in it, and an image, but I can not put values in it. Does anyone know how to solve it? Follow the code: private void carregaAlert(){ View v = getLayoutInflater().inflate(R.lay...
asked by 14.10.2017 / 03:16
1
answer

Insert data into firebase from AlertDialog

I'm wondering if there is a way to store data in the firebase from a custom AlertDialog? If yes I wanted the help of you to create a logic and to make that idea happen, I think that for those who are starting it would help a lot. Obg to al...
asked by 18.10.2017 / 03:30