亨德尔奇怪的应用程序流程 - Android
我遇到了应用程序流程的奇怪问题。我正在创建音乐播放应用程序,它具有后台播放功能。我遇到的问题是,
- 在应用程序启动时,应用程序会加载 SD 卡中的所有歌曲。
- 用户开始播放歌曲。
- 现在他退出应用程序。
- 歌曲在后台仍在播放。
- 现在,当他从通知栏或菜单再次启动应用程序时...所有歌曲都会开始再次加载现在这是我不想要的事情。
任何人都可以建议我如何处理这件事吗?
I got in to strange problem with the flow of application.I am creating music Playing application, which have capability of background playing. And the problem I am having is,
- on application starts application loads all the songs from SD card.
- User starts the playing of song.
- Now he exit form the application.
- songs is still playing in the background.
- Now when he starts application again either from Notification bar or from the menu... all songs starts loading again Now that is the thing I don't want.
can any one suggest me how to handle this thing ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的通知意图必须与启动器意图相同。
请参阅此答案:https://stackoverflow.com/a/5502950/377478
Your notification intent must be identical to the launcher intent.
See this answer: https://stackoverflow.com/a/5502950/377478