1

I have this ProgressDialog in my activity. I'm using a few devices to test but only in one the loading circle is not showing. The device that it's not showing it's a Moto G4 Plus running android 7.0. Below there is a picture.

Moto G4 Plus running android 7.0

I also run the app in a Asus Zenfone 3 running also android 7.0. They both are running android 7.0 but only one don't show the circle. Asus Zenfone 3 running android 7.0

Here is my code:

import android.app.ProgressDialog;

    private ProgressDialog progressDialog;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
    progressDialog = new ProgressDialog(this);
        progressDialog.setMessage("Carregando...");
   }

    private void myMethod(){
            progressDialog.show();
   }

Did anyone had the same problem? Is there a way to solve it and still use the ProgressDialog?

yasin
  • 1,297
  • 3
  • 17
  • 36

2 Answers2

3

Check whether your device is in Power Saving mode (some devices disable animation) or the animation is off in Developer Options.

One Code Man
  • 224
  • 2
  • 5
0

Also, check the color of the circle. I ran into the issue that circle by default was white and background of the dialog also was white.

Here more information how to change the color.

Rammgarot
  • 1,467
  • 14
  • 9