I am trying to create a ProgressDialog, as shown in almost every application on the Play Store. I am using the code:
getActivity().runOnUiThread(new Runnable() { @Override public void run() { ProgressDialog dialog; dialog = ProgressDialog.show(getActivity(), "title", "message", true, false); } });
I also tried with only two lines inside Runnable (without creating a thread) from inside the fragment, and no matter what I do, I don't see the spinner in the ProgressDialog . I am attaching a screenshot so you can see what I mean. Someone PLEASE help me.
Running Android 5.1.1 on Galaxy S6, all OS OS.
EDIT : Import:
import android.app.Fragment; import android.app.ProgressDialog;

android progressdialog spinner invisible
Brandon
source share