I was wondering which component could be his replacement (...).
The suggested replacement is Progressbar. Both, Progressdialog and Progressbar, exist since the initial version of Android.
I was reading about Progress Bar but she doesn’t work that way or work?
Yes, it refers to the possibility of starting and stopping it. The difference is that one is a dialog while the other is displayed "inside" the layout.
The Progressdialog was considered obsolete in Android O(Api Level 26) which, on this date, is the latest version.
The fact that it was considered obsolete does not imply that it cannot use it.
The main reason, in my view, for Progressdialog to be considered obsolete, has to do with the user experience - the presentation of a dialog limits user interaction with the application while the task is running.
See the question Best practices when presenting Android loading screen, where the Luiz Vieira, in his reply, addresses the issue from the perspective of "usability".
In my reply, to the above question, find an example of the use of Progressbar.
As I follow the staff is actually using the Progress Bar, here’s an example of a super complete exercise (in English) https://github.com/codepath/android_guides/wiki/Progress-Bar-Custom-View but it’s worth reading
– Paulo H. Hartmann
@Pauloh.Hartmann I will read the tutorial later. I used now little the progressiBar (ball). I will then test the progressiBar (horizontal). Thank you
– Flávio
Just a note on the use of the word: «depreciated» in English is «depreciated» and not «deprecated». The word «deprecated» that would be correct to refer to this would be translated as «obsolete», «disapproved», «censured»
– Guilherme Nascimento