0

好吧,我的这个问题与任何代码都没有关系,但我想问的是我如何实现类似的东西

1: Play the music on my application.
2: Then press the home key on the device, whilst the music is been played.
3: Then again long press the home key n regain access to the object that was playing the file, which is a common user expectation, but what my player does is the 4th step.

4: Whilst continuing to play the previous file, it launches a whole new interface of the player , wherein the seekbar is at 0 the play button is in the idle mode. Hence leads to confusion. 
5: N if I touch the play button the player starts playing another file from the start along with the previous one, so now I have 2 files played by my player

我该如何避免这种情况?

是否有必要在这里应用单例?请以某种方式指导我。

4

0 回答 0