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
0
votes
0 answers

Android dismiss dialog after activity recreated

I overrided the method showDialog(int) like this: @Override public Dialog onCreateDialog(int id ){ Log.d("Dialog",id+":created"); switch (id) { case addressValidateProgressId: addressValidateProgress = new…
Hugo Alves
  • 188
  • 1
  • 10
0
votes
5 answers

Creating own dialog class, String reference problems with R.java

I just making a class thats supposed to be a simple "Do you want to exit?" dialog for each of my activites in my application, and i have some questions. Im a beginner with OOP so dont be mad. So this is my ExitDialog class: public class ExitDialog…
Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222
0
votes
4 answers

Why won't dismissDialog, removeDialog, or dialog.dismiss work in onDestroy or onPause?

I can't for the life of me figure out how to manage dialogs without using configChanges to specify that you want to manually handle orientation changes. So lets say you have this AndroidManifest:
Matt Wolfe
  • 8,924
  • 8
  • 60
  • 77
0
votes
1 answer

Having a dialog with a scrollview and persistent buttons at the bottom

I am having trouble creating a layout for a dialog I want to display a dialog with a scrollview but with buttons always showing at the bottom but when the scrollview gets too big it pushes the buttons at the bottom off the screen. I can get the…
tyczj
  • 71,600
  • 54
  • 194
  • 296
0
votes
3 answers

Fill control after click list

I have layout like
AMH
  • 6,363
  • 27
  • 84
  • 135
0
votes
2 answers

convert ArrayList to string[]

I have class Person class person{ int ID ; sting FirstName ; string Last Name ; String Telephone ; } and I have ArrayList ; now I want to display simple list view containing just FirstName + "," + "LastName" so I can use code like…
AMH
  • 6,363
  • 27
  • 84
  • 135
0
votes
0 answers

uncaught exception after app exit on callback to ResultReceiver

My app's initial activity sends an Intent to an IntentService in its onStart() method. It places a ResultReceiver (anonymous inner class) in the Intent it uses to invoke the service. The service then uses the ResultReceiver to pass data base to…
jph
  • 2,181
  • 3
  • 30
  • 55
0
votes
1 answer

adding links in the message of AlertDialog on Android

Below is the code for AlertDialog box. I am using this in google map. I want to add "See more" Hyperlink at the end of the message.. I don't know what I have missed so far to make the link work. Thanks for help in advance. @Override protected…
user98239820
  • 1,411
  • 2
  • 16
  • 30
0
votes
2 answers

what goes inside dialog constructor

i know it should be context. what exactly is a context though. usually when i create a dialog in a class i do something like this: final Dialog dialog = new Dialog(this); but now i am trying to create a dialog in an AsyncTask<> therefore i cannot…
j l
  • 61
  • 1
  • 2
  • 11
0
votes
1 answer

Custom Dialog EditText returns null

Many people have faced similar issues, and I think I have followed and fixed all the issues as mentioned in all those posts on stackoverflow. setContentView to my layout initializing the edittext with dialog.findViewById But I am still stuck at…
Siddharth
  • 9,349
  • 16
  • 86
  • 148
0
votes
2 answers

How to add two separate onClick methods to a Dialog using String array to display two options?

protected Dialog onCreateDialog(int id) { switch (id) { case Dialog_alert: final AlertDialog.Builder builder = new AlertDialog.Builder(this); final LayoutInflater li = LayoutInflater.from(this); …
Chetna
  • 165
  • 1
  • 6
  • 15
0
votes
3 answers

Show Dialog after startActivity

In my application, user tap a button to go back to home screen by sending a certain intent to startActivity() But I want to show a Dialog(built by AlertDialogBuilder) after the user goes to home screen. I will call finish() after going to…
Bear
  • 5,138
  • 5
  • 50
  • 80
0
votes
2 answers

How to create a slide in slide out pop up on top of dialogs and activities?

I want to implement a pop up that should appear sliding in on top of the activity and on top of any dialogs that may be on top of that activity. Also, while the pop-up is on screen, the activity and the dialogs in the background should still be…
0
votes
3 answers

Android : Buttons in the background Activity of a 'Dialog' is active?

I have an Activity which has an 'OK' button. And I have an 'Edit' button which will open a Dialog (theme="@android:style/Theme.Holo.Light.Dialog"). When I am in the EditDialog, I can see the OK button in the background Activity, and I can press…
Koottan
  • 87
  • 1
  • 8
0
votes
1 answer

AlertDialog with custom content view looks nothing like AlertDialog

I have a custom subclass of AlertDialog that should display a list of all the available Wifi networks in range. I'm displaying this dialog by creating an instance of it, and calling show(), and I'm not using AlertDialog.Builder (Because I want my…
Avi Shukron
  • 6,088
  • 8
  • 50
  • 84