Questions tagged [progressdialog]

An Android dialog that displays a progress wheel or progress bar. Because it's an extension of the AlertDialog, it also supports buttons.

1834 questions
42
votes
5 answers

Prevent ProgressDialog from being dismissed when I click the search button (Android)

In a long-running operation, I'm showing a popup dialog (created from ProgressDialog to prevent other operations from happening). I have made it non-cancellable with setCancelable(false), so I can't close it using the back button, but surprisingly,…
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
40
votes
4 answers

Android: ProgressDialog doesn't show

I'm trying to create a ProgressDialog for an Android-App (just a simple one showing the user that stuff is happening, no buttons or anything) but I can't get it right. I've been through forums and tutorials as well as the Sample-Code that comes with…
Select0r
  • 12,234
  • 11
  • 45
  • 68
38
votes
5 answers

Passing arguments to AsyncTask, and returning results

I have an application that does some long calculations, and I would like to show a progress dialog while this is done. So far I have found that I could do this with threads/handlers, but didn't work, and then I found out about the AsyncTask. In my…
Bojan Ilievski
  • 1,272
  • 2
  • 14
  • 22
38
votes
3 answers

Android Google Sign In is flashing a small empty white box while signing in a user

Basically, Android Google Sign In is flashing a small empty white box after the user presses the sign in button and before Google finishes the sign in process. This all happens pretty fast but I would like to get rid of the white box. I assume…
deanresin
  • 1,466
  • 2
  • 16
  • 31
36
votes
2 answers

How to display progress dialog before starting an activity in Android?

How do you display a progress dialog before starting an activity (i.e., while the activity is loading some data) in Android?
36
votes
2 answers

ProgressDialog does not want to update the message

I just tried to implement a progressdialog and I have some issues to change the text during my long and complex calculations. for (String aString:myStringArray){ Log.v(TAG, aString); mProgressDialog.incrementProgressBy(1); …
Waza_Be
  • 39,407
  • 49
  • 186
  • 260
34
votes
4 answers

How to change the position of a progress dialog?

I'm developing an android app and need to know how to change the positioning of a progress dialog. I need it to be positioned at the bottom of the screen instead of at the center like it is by default.
oliverwhite
  • 563
  • 1
  • 8
  • 16
33
votes
13 answers

Display progressdialog without text Android

Android 2.3.3 I have a progressdialog that shows, Loading.. as text. Here is the code for the progressdialog . progressDialog = new ProgressDialog(mContext); progressDialog.setIndeterminate(true); …
Vamsi Challa
  • 11,038
  • 31
  • 99
  • 149
30
votes
2 answers

Show ProgressDialog in Fragment class

I am trying to show a ProgressDialog within a Fragment class. The following code just works within an Activity class but not for Fragment. Can somebody please help me on this, why this ProgressDialog implementaion just works within an Activity and…
Sini Inis
  • 417
  • 1
  • 7
  • 16
29
votes
2 answers

How can I make a ProgressDialog be cancelable by the back button but not by a screen tap?

I would like to make a ProgressDialog cancelable by the back button but not by a screen tap. Currently I use setCancelable(true). However, in some newer devices a tap on the screen also cancels the ProgressDialog. I'd like to disable the screen tap…
benkdev
  • 673
  • 2
  • 16
  • 32
29
votes
3 answers

Disable background dim on ProgressDialog/AlertDialog in Android

I use an AsyncTask with a ProgressDialog in it. This automatically causes a background dim of about 40%. I want to turn this dim off (0% dim), but what I tried, didn't work: myLoadingDialog = new…
Day
  • 844
  • 1
  • 9
  • 21
28
votes
0 answers

java.lang.IllegalStateException: ActionBarImpl can only be used with a compatible window decor layout

Within the last days I do see increasing error messages that sound identical. I don't use tablets ActionBar - I'm developing for phones only. What's the reason for these crashes? Here's a complete trace: java.lang.RuntimeException: Failure…
Harald Wilhelm
  • 6,656
  • 11
  • 67
  • 85
26
votes
5 answers

Show Circular Progress Dialog in Login Screen in Flutter, how to implement progress dialog in flutter?

I have a login form with two textfields 'UserName', 'Password' & a button 'Login'. On tap of login button I am calling an API. I want to show a CircularProgressIndicator during this api call. Progress dialog should show in the centre & top of login…
Poras Bhardwaj
  • 1,073
  • 1
  • 15
  • 33
26
votes
3 answers

Android find GPS location once, show loading dialog

I am writing an app that requires the user's current location (lastknownlocation won't be very helpful) and displays a list of all the closest "items" to them taken from the database. I have got the finding of the closest items working well but only…
Daniel Bowden
  • 988
  • 1
  • 10
  • 23
25
votes
5 answers

Why the background of ProgressDialog doesn't set to the transparent?

I want to set the back ground to the transparent , so I have set the following code in styles.xml