ProgressDialog
was deprecated in API level 26 .
refers to functions or elements that are in the process of being replaced by newer ones."Deprecated"
ProgressDialog is a modal dialog, which prevents the user from interacting with the app. Instead of using this class, you should use a progress indicator like
ProgressBar
, which can be embedded in your app's UI.
Advantage
I would personally say that ProgressBar
has the edge over the two .ProgressBar
is a user interface element that indicates the progress of an operation. Display progress bars to a user in a non-interruptive way. Show the progress bar in your app's user interface.