Rohan Pawar
Rohan Pawar

Reputation: 2013

Progress dialog showing circular arrow only in Android Oreo

On Android 8 - Oreo ProgressDialog not working, its just showing the circular arrow.

In my application

enter image description here

I know its deprecated in API 26

This behavior of progress dialog is same for Google's other apps

enter image description here enter image description here

I have created custom dialog to show progress bar, is there any native solution for that

Device - Nexus 5x

Os - Android 8

Upvotes: 5

Views: 2048

Answers (3)

s_taha
s_taha

Reputation: 11

In my case this issue shows up only when battery is low. I found out that it's related to enabling Battery saver mode . see answer here :Progressbar disappears in battery saver mode (Android 5.x)?

Upvotes: 1

ferini
ferini

Reputation: 1958

I just had the same issue with Galaxy S7 with Oreo and it did happen for any ProgressBar, not just in ProgressDialog.

Turned out I had turned off "Animator duration scale" in developer options. When I turn it on, I get the animated progress bar again.

Upvotes: 12

Mohammad irshad sheikh
Mohammad irshad sheikh

Reputation: 888

ProgressDialog is Deprecated instead of it you can use progressbar if you want to use progressbar then the blow code is for you:

DelayedProgressDialog progressDialog = new DelayedProgressDialog();
progressDialog.show(getSupportFragmentManager(), "tag");

use this Library

Upvotes: 1

Related Questions