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
-2
votes
4 answers

my dialogue in android activity crashes, what i missing?

This is my OnClickListener where i overloading my method called DialogueSuccessful(); which should Launch Dialouge. if (Inserted == true) { DialogueSuccessful(); txt_FromDate.setText(""); txt_ToDate.setText(""); …
Mohamed Atef
  • 69
  • 13
-2
votes
2 answers

Shared preference value not reflecting in app

I am getting the saved value in shared preference but not being able to update TextView or ImageView on basis of the value in shared preference. Here is my code for Shared Pref's class : public class SharedPref { public SharedPref(Context…
-2
votes
1 answer

Session timeout Android

My android app has a main login screen and various screens which follow. I want to create a session timeout dialog which shows up when: 1) the user is on any page except the login page and 2) the user has not interacted with the application for 5…
quartz
  • 69
  • 2
  • 6
-2
votes
1 answer

Android dialog title box how can i make it smaller

I have an android dialog box and I want to make the Title box smaller preferably to single line because right now it is too large. I been searching around for a fix and can not find it, this is how my dialog title box looks, as you can see I only…
user1591668
  • 2,591
  • 5
  • 41
  • 84
-2
votes
1 answer

GridView of specified apps in a Dialog in Android

Can Any One Please suggest code to display specified app icons in grid manner (say 3*3) in a dialog in android.? ( On clicking the app icon the respective app should be opened ) -Thank You.
-2
votes
1 answer

How to go From Dialog to BackStack Activity

I have an Activity which have one button and two TextView.When i press button on activity a dialog box appear which has two editText and Done Button.I want when user give some value in EditText in dialog box and press DOne . Then This Dialog Box…
Malik Ehtasham
  • 343
  • 2
  • 11
  • 25
-3
votes
2 answers

How to fix You need to use a Theme.AppCompat theme in dialog on Android

In my application, I want to use dialog into service and for this, I wrote the code below, but after I click on the button to show dialog, I get a Force close error! My service code: public class FloatingLayoutService extends Service implements…
Dr.KeyOk
  • 1
  • 4
-3
votes
1 answer

I want to add the font settings to my edittext

I want to add text on the image. for that I want to add font settings to my text. like add color, font styles etc.. . Can any one share the code. I want exactly this kind of layout with source code:
-3
votes
1 answer

Part of a Button outside of a Dialog

I'm trying to achieve something like this: Does anyone have an idea on how to make a Button stay partially outside a Dialog and be always under the text? Here is my Dialog layout:
-3
votes
2 answers

Notify users for new version of Android app

I want to show a notification or dialog (when app opens) if the current installed app is not the Updated Version (available in play store). How can i do that?
akkk
  • 1,457
  • 4
  • 23
  • 41
-3
votes
2 answers

Custom popup dialog with input field

How do I create popup input field for Android? I need Xml and Java Code.
Mahbub Munna
  • 117
  • 1
  • 1
  • 6
-3
votes
3 answers

Show dialog when user used back button on device

Currently I have an application that has the following code. If the user doesnt save the project before clicking the back button, I provide a dialog box to see if they want to save it prior to exiting the activity. case android.R.id.home: …
-3
votes
2 answers

Layout Design with Pop-up

In Android App, I have a card game designed with the Linear layout and image buttons. On completing a level in this game I have to do the following things as listed below... I have to show a dialog like screen which should pop up on middle of…
-3
votes
1 answer

How to set image in default alert dialog without using custom view in android

How to set image in default alert dialog without using custom view in android.Is it possible to set image in default alert diaog ? Thanks
mohan
  • 13,035
  • 29
  • 108
  • 178
-3
votes
1 answer

Dialog with EditText

I am trying to make a Dialog that has an EditText on it where the user will type and then click OK. I have not been able to find any examples of this type of Dialog (text to speech translation) Can you please point me towards a reference or provide…
Guy Cothal
  • 1,268
  • 1
  • 10
  • 20
1 2 3
97
98