简体   繁体   中英

How can I open up lock screen settings page in my app?

I've made a hyperlink and implemented the click event, but how can I make it so that it opens up the lock screen settings page for my phone?

I want to shortcut it for my users so they can set up notifications

You can't open the lock screens settings from your code in WP7.

I know you've tagged it windows-phone7 but here's how you can do it in WP8 for those who come across this question and are targetting WP8. Simply use the LaunchUriAsync method

var openedLock = await Launcher.LaunchUriAsync(new Uri("ms-settings-lock:"));

ms-settings-lock is the lock screen settings URI but you can see the other available URI schemes here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM