Change Phone settings from Windows Phone 7 App
I'm new to Windows Phone 7 App Programming, so I hope this question isn't stupid:
(How) can I get and SET the following settings from my Windows Phone 7 Silverlight App or are they protected.
- Data connection on/off
- 3G Connection on/off开发者_高级运维
- Wifi Connection on/off
- GPS Connection on/off
- Bluetooth Connection on/off
The user can change them from the settings menu, but you are unable to do it via the API. That capability is currently locked out.
You can get them but cannot set.
Data connection
GPS
I'm confused about Bluetooth. Maybe someone can narrow it down.
The user is in exclusive control of these settings as Joe mentions.
Bluetooth capability for now is not exposed through the 3rd party SDK.
use the ConnectionSettingsTask Launcher to change the settings ...
You can modify Bluetooth , Wifi , Cellular , Airplane mode .
Check the following link
http://www.windowsphonerocks.com/phone/media/Developer/DeveloperArticles/tabid/64/Article/195/how-to-enable-disable-bluetooth-in-windows-phone-using-c.aspx
精彩评论