Questions tagged [android-dialog]

Base class for Dialogs. A dialog in Android is a small window that prompts the user to make a decision or enter additional information. A dialog does not fill the screen and is normally used for modal events that require users to take an action before they can proceed.

A dialog is usually a small window that appears in front of the current Activity. The underlying Activity loses focus and the dialog accepts all user interaction. Dialogs are normally used for notifications that should interrupt the user and to perform short tasks that directly relate to the application in progress (such as a progress bar or a login prompt).

Official Android Dialog Documentation

1460 questions
-1
votes
1 answer

A thread with a dialog is listening the back key, but i want that the main activity listen the back key

I'm launching a thread that shows a dialog, and if i press the back key (to do some logic to stop the thread), the onKeyDown listener of the activity is not being called. It is because it is being catched by the thread with the dialog... How can i…
Pableras84
  • 1,195
  • 5
  • 18
  • 30
-1
votes
1 answer

force close error when i press the "addurl" button

This is my activity in which I have code for Dialog... What I want to do is that when a user press button a dialog must appear to ask that if the user want to save that link in database or not. public class Add_ink extends Activity { @Override …
-1
votes
2 answers

Android ProgressDialog not being displayed

I'm trying to present the user with a login dialog (custom dialog with custom view), and when then click "Login", i'm trying to show a ProgressDialog, then close it once the login has completed. Problem is i can't get the ProgressDialog to show…
RPM1984
  • 72,246
  • 58
  • 225
  • 350
-1
votes
1 answer

single button with 2 radio buttons with a view of alertdialog

I just want to make a UI in which one button should be there,when this button is clicked a dialog with two clickable radio buttons should appear.How to make such UI?
Naseeb Sheoran
  • 423
  • 2
  • 8
  • 21
-1
votes
1 answer

Android dialog box and buttons

I have already developed a dialog box in android and I am using two buttons. But I don't know how to call another XML layout when a button is clicked. Please help me.
Sajith Vijesekara
  • 1,324
  • 2
  • 17
  • 52
-2
votes
1 answer

EditText.setText("") in Dialog keeps Crashing App

I´ve stumbled across the following problem coding my app: Whenever the statement Txtname.setText(name) is not suppressed, the app keeps crashing. Even when I hardcode string in, there it crashes. Via the toast I was able to see that the string name…
-2
votes
1 answer

Why can't we open a dialog from another dialog? What is the technical challenge?

I am trying to open a dialog from listener of another dialog in service. But As soon as i dismiss first dialog nothing happen, not even a crash , neither the second dialog shows up
-2
votes
2 answers

Custom Dialog is not opening on click in fragment?

I build my own custom Dialogbut its not opening when i am clicking on ImageView. I also checked by putting break point Dialog is coming null how to rectify it. I want to shift TextView of id unread_count to the right of parent . How can I do this…
-2
votes
1 answer

Wait for Dialog box Response in Android

I am translating a platform from C# to android. And I am stuck on how to wait for the Dialog response, to determine which action will be done. (It will always bypass the decision.) I have tried to use handler, but it doesn't work. Any help is…
-2
votes
1 answer

Run the app inside dialog view

I have one activity which is a dialog in my app. and it contains a button run your app inside this dialog view itself On clicking this…
Happy
  • 1,031
  • 10
  • 26
-2
votes
1 answer

Builder (android.content.Context) in Builder cannot be applied to (anonymous android.content.DialogInterface.OnClickListener)

I have this problem: Builder (android.content.Context) in Builder cannot be applied to (anonymous android.content.DialogInterface.OnClickListener) on the this code: AlertDialog ventana; ventana=new AlertDialog.Builder(this).create(); …
-2
votes
1 answer

Can I set a Button already in my xml to be the positive or negative Button in a Dialog?

I'd rather not use Alert Dialog, but I will if I can set the positive Button to be the button I already have. If I can't do that, is there a way to set positive and negative Buttons in a custom dialog?
-2
votes
2 answers

How to show the Download speed on the ProgressDialog

In my application I'm downloading an image file. I want to show the download speed on a progress bar for the download. How is it possible through AsyncTask Concept?
-2
votes
3 answers

android - why alertDialog showing on homescreen?

I have a alertDialog prompt during onCreate of Application Class (i added ) and I have set setCancelable to false and it did succeessfully prevent user from pressing back…
mark
  • 53
  • 7
-2
votes
1 answer

The app crashes as soon as i make my button clickable inside dialog fragment

Here is my code, if I remove the onclicklistener on button the app works just fine displaying the dialog I want to view. However as soon I make it clickable the app stops working. public View onCreateView(LayoutInflater inflater, ViewGroup…
Yash
  • 61
  • 5