How to create a progress bar that shows the real completion percentage of a task
I would like to add a progress bar showing the real percentage of completion of a task (compressing a video using ffmpeg) in my app. At the moment, I just found examples with delays that seem real, but they aren’t.
Right now, I’m using Progress Dialog:
progressDialog = ProgressDialog(requireActivity())
progressDialog.setTitle("Please wait..")
progressDialog.setCancelable(false)
progressDialog.setCanceledOnTouchOutside(false)
but I don’t know how to show the percentage and...