Questions tagged [dismiss]

For questions related to calling the "dismiss" method in a button click listener.

By calling this method in a button click listener, the user can close a dialog and continue using the application.

633 questions
-1
votes
1 answer

Dismiss in Alertdialog

The problem with the AlertDialog is that when I use dismiss () the AlertDialog does not appear. If I do not use dismiss () the AlertDialog appears, but then how do I disappear it if I have setCancelable in false. I call dismiss in this…
-1
votes
1 answer

dismiss view controller to another view swift 3

is there any way to dismiss the current view without going to the view that the user was previously on but to a different one that I could specify? thanks for any help.
c3pNoah
  • 65
  • 1
  • 12
-1
votes
1 answer

How to dismiss all the dialogs from button click of last opened dialog?

I am navigating from one dialog to other, likewise I traversed from three dialogs. Now I want to dismiss all opened dialogs from last dialog click and refresh the fragment. Is there any simple way to do this? All helps will be appreciated. Thanks
Uma Achanta
  • 3,669
  • 4
  • 22
  • 49
-1
votes
4 answers

How to close the popupwindow with touching outside of the window?

I want to click outside of the popupwindow to close that. After a research I tried many cases but none worked for me, is there any help I can get from you? This is my code: package com.javacodegeeks.android.fragmentstest; import…
-1
votes
1 answer

AlertDialog not dismissing Android

I have a method which shows a AlertDialog. When the "Yes" button is clicked , the dialog is dismissed and a AsyncTask is executed. With "Cancel" button it just dismisses. Iam calling this method from other two methods. It gets called when a button…
iam stack
  • 97
  • 1
  • 4
  • 12
-1
votes
1 answer

Why my dismiss() method not able close Customize Alert dialog

I am developing a android app where I have created Customize alert dialog. I declare Globally alert dialog and and AlertDialog.builder as follow. Now I am calling three method f1(), f2(),f3(), in button click. btn_my_order.setOnTouchListener(new…
DJhon
  • 1,548
  • 3
  • 22
  • 39
-1
votes
1 answer

How to dismiss UIPopover ONLY if i press the button?

Now my popover dismissing if i press anywhere on the screen, but i need to show and hide him only if i press the button(the same button), how can i do these? Thank you.
Roman Simenok
  • 530
  • 7
  • 22
-1
votes
2 answers

Disable force close pop up android

I want to handle HttpHostConnectException when user tries to send some data without internet connection. I do it like this in my RestClient class where I connect to the server: catch (HttpHostConnectException e) { …
Rikki Tikki Tavi
  • 3,089
  • 5
  • 43
  • 81
-2
votes
1 answer

Dismiss "... wants to know your location" dialog

I am using Selenium + Chromedriver to automate testing of a website. One of the functionalities uses Location Services. I have enabled the Location Service for the Chrome browser that I am using. But when I run the test, the dialog pictured below…
S P
  • 101
  • 2
  • 13
-2
votes
1 answer

How to dismiss dialogs from Application Android

I have just showed dialog from some specific activities. I want to dismiss showed dialog from Application, but I can't reference to the dialog instance to dismiss itself. Anyone can help me ???? MainActivity.java FileDialog dialog = new…
Cao Trung
  • 1
  • 3
-2
votes
1 answer

Kivymd dropdown closes immediately after opening

I am trying to add a dropdown list using kv file. I have managed to create it but when i click on it the drop down opens and closes immediately without me selecting or clicking anywhere How do i stop this Button: id: btn text: 'Press' …
Allan
  • 21
  • 4
-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
-3
votes
2 answers

Android close PopUp

how can i close the PopUp when a button is clicked? .dismiss(); and .cancel(); dont works for me or i make something wrong. //Game Paused PopUp private void PauseMenu() { final AlertDialog.Builder helpBuilder = new…
xXElsterXx
  • 39
  • 1
  • 1
  • 10
-4
votes
1 answer

firebase - when user dismiss a notification

Im using inoic with cordova-plugin-fcm There's any way to handle when user dismiss a notification, because I need to do store some data when a notification arrives. tks for any help.
-4
votes
2 answers

Dismiss custom dialog from Async Task in android

I have a custom dialog and when a button pressed it executes an async task. What i want is to dismiss dialog onpostexecute of async task. How can i do that? Thanks in advance
mystery
  • 153
  • 1
  • 1
  • 14
1 2 3
42
43