从BackgroundAudioPlayer写入IsolatedStorageSettings似乎不起作用 [英] Writting to IsolatedStorageSettings from BackgroundAudioPlayer doesn't seem to work

查看:78
本文介绍了从BackgroundAudioPlayer写入IsolatedStorageSettings似乎不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从BackgroundAudioPlayer写入IsolatedStorageSettings以在恢复我的应用程序时同步状态.但是,这似乎不起作用-在我写完代码后,似乎无法从App代码中获取值;另一方面, 我从我的应用程序写到IsolatedStorage然后从BackgroundAudioPlayer提取,没有任何问题.

I'm trying to write to IsolatedStorageSettings from BackgroundAudioPlayer to sync up status when my app is resumed. However this does not seem to work - after I write, it doesn't look like I am able to pick up the value from the App code; on the other hand,  I don't have any issue writing to IsolatedStorage from my App then pick up from BackgroundAudioPlayer.

还有其他人遇到相同的问题吗?有什么想法如何解决吗?谢谢.

Does anyone else encounter the same issue? Any ideas how to resolve it? Thanks.

推荐答案

阅读
Read the Background Agent Best Practices.  Specifically, it recommends against using IsolatedStorageSettings as it is not thread- or process-safe, and for BackgroundAudioAgents to use the Tag property on the AudioTrack object to communicate between agent and foreground processes.


这篇关于从BackgroundAudioPlayer写入IsolatedStorageSettings似乎不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆