O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Registering as a Lens

To register your app as a lens, you need to add an Extension element to the app’s WMAppManifest.xml file. Open the WMAppManifest.xml file by right-clicking the file and selecting View Code. If not already present, add an Extensions element immediately after the Tokens element. Within the Extensions element add an Extension element, as shown:

<Extensions>  <Extension ExtensionName="Camera_Capture_App"             ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5631}"             TaskID="_default" /></Extensions>

Once in place, your app is displayed on the lens picker page.

Tapping on your app’s icon in the lens picker page launches your app to its main page.

To determine whether the launch is from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required