-WINRT launcher alternatives for Windows phone development

Source: Internet
Author: User



In the WP7/8 era, the Silverlight framework provides a number of launcher APIs that we can easily use to accomplish some system-level operations. However, with the advent of the WP8.1 (except SL 8.1) of the win RT architecture, the starter API under the original SL is no longer available. Fortunately, some URI-based protocols are provided under the Win RT framework to compensate for some of the original missing functions. Today I share with you some of the startup protocols under Win Rt.



1. Call the system built-in app



How to use:


Await Windows.System.Launcher.LaunchUriAsync (new Uri ("ms-settings-wifi:"));




Uri Scheme Description
Ms-settings-airplanemode: Launches the Airplane Mode settings page.
Ms-settings-bluetooth: Start the Bluetooth Settings page.
Ms-settings-camera: Launches the photos + camera settings page.
Ms-settings-cellular: Start the phone + SIM settings page.
Ms-settings-emailandaccounts: Start the email + Account Settings page.
Ms-settings-location: Start the Location Settings page.
Ms-settings-lock: Start the Lock screen Settings page.
Ms-settings-notifications: Launches the Notifications + Actions settings page.
Ms-settings-power: Start the Power Save Mode Settings page.
Ms-settings-proximity: Start the NFC Settings page.
Ms-settings-screenrotation: Launches the Screen rotation Settings page.
Ms-settings-wifi: Start the Wi-Fi settings page.
Ms-settings-workplace: Start the Workspace Settings page.





2. Other system reserved URI protocol



Windows Phone retains the following Uri scheme for built-in apps.



Bing, Callto, DTMF, HTTP, HTTPS, mailto, maps, Ms-excel, Ms-powerpoint, Ms-word, Office, OneNote, tel, wallet, Xbls, Zune



Windows Phone retains the following Uri scheme for the operating system.



Explorer.AssocActionId.BurnSelection, Explorer.AssocActionId.CloseSession, Explorer.AssocActionId.EraseDisc, Explorer.AssocActionId.ZipSelection, Explorer.assocprotocol.search-ms, Explorer.burnselection, Explorer.closesession, Explorer.erasedisc, Explorer.zipselection, File, Iehistory, Ierss, Javascript, Jscript, LDAP, Res, Rlogin, Stickynotes, Telnet, TN3270, Vbscript, Windowsmediacenterapp, Windowsmediacenterssl, Windowsmediacenterweb, WMP11. Assocprotocol.mms



According to the agreement name can understand the launch of the app, using the same way:


await Windows.System.Launcher.LaunchUriAsync (Thenew Uri ("maps:"));


3. Uri protocol associated with the store



App Store jumps, ratings and other APIs are very important to developers, not the win RT has brought a lot of changes, as follows:


//The store jumps according to appid
Var uri = new Uri(string.Format(@"zune://navigate/?appid={0}", appid));
//Keyword search
Var uri = new Uri(string.Format(@"zune://search/?keyword={0}",keyword));
//The store jumps comments based on appid
Var uri = new Uri(string.Format(@"zune://reviewapp/?appid={0}", appid));
Await Windows.System.Launcher.LaunchUriAsync(uri); 



Summarize:



WP8.1 also has a lot of big changes, but its nature and the SL similar, encountered these changes, we need to pay more attention to the relevant API documentation, I hope these are useful to everyone.



-WINRT launcher alternatives for Windows phone development


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.