How to create a ProgressDialog with a pause and resume

I currently have a url for the audio file. I would like to create an audio player in Evernote. Evernote Audio player
I tried to create ProgressDialogwhere the maximum value is equal to the duration of the player. But I don't know how to add pause / resume Buttonto work with the progress bar and audio. So basically this is divided into three questions:

  • How to add Buttonin ProgressDialog?
  • How to pause and resume a) ProgressDialogand b) audio?
  • How to detect that user tabs are outside ProgressDialog, in which case the sound should be stopped?
+3
source share
1 answer

. . , .

0

All Articles