Windows phone 8.1 deployment error when trying to use background task with audio and device use trigger

和自甴很熟 提交于 2019-12-02 15:18:00

问题


I'm trying to create a background task that uses the accelerometer to play with the music in the background (pause, play, etc). In the Package.appxmanifest I have a backgroundtask, that reads the accelerometer and in the Package.appxmanifest it has Device use trigger as supported task type. When I try to add Audio as supported task type I get the following error during deployment:

DEP0001 : Unexpected Error: Package could not be registered. (Exception from HRESULT: 0x80073CF6)

I played with it a little bit and it seems I cannot use any other task type with audio, but without audio I could use anything. Do you have any suggestions?


回答1:


It appears that you can't have Audio and Device Use in the same background task. You will have to create 2 background tasks.




回答2:


If you tried to upgrade your WP application and got the error,have a look at the references given below. Maybe you could be missing an element in your Manifest file.

Deploying universal application results in "package could not be registered"

Deploy error: Package could not be registered



来源:https://stackoverflow.com/questions/27402238/windows-phone-8-1-deployment-error-when-trying-to-use-background-task-with-audio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!