问题描述
我是WP7的新手,我想通过代码更改铃声和振动轮廓,例如分配铃声或启用振动。
I'm a fresh developer on WP7, while I wanna to change the ring and vibrate profile by code, for example disbale ring or enable vibrate.
我该怎么办?这样做,我读到了MSDN提供的现有样本,但找不到任何有用的东西。
How can I do that, I read about the existing samples provided by MSDN and can NOT find any thing useful.
推荐答案
来获取一个实例,并启动和停止相对于应用程序需求的振动,但如果您正在寻找对操作系统级别的影响,那么我认为不可能从应用程序级别完成。即使在应用程序级别上这样做也可以相对于需求允许
,因为Windows Phone不允许您使用API来拦截不允许的调用。
to acquire an instance and start and stop vibration relative to application needs but if you are looking for an impact on OS level then I seriously believe it is not possible to be done from application level. Even doing so on an application level would be allowed relative to a need and since Windows Phone doesn't provide you to play with APIs to intercept call that wouldn't be allowed.
这篇关于如何通过C#代码更改Ring和Vibrate配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!