programming4us
programming4us
MOBILE

Windows Phone 8 : Working with the Camera (part 3) - Camera Lens App

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

3. Camera Lens App

You can also create a specialized application called a Camera Lens application that enables the user to access your application as a “lens” in the camera of the phone directly. For a user, your application shows up in the lens in the camera application, as shown in Figure 2.

Image

FIGURE 2 The Camera Lens button

After the user taps the Lens button, they are presented with all the applications that support the Lens functionality. You can see a sample app “MyLens” shown in Figure 3.

Image

FIGURE 3 The camera lenses

When a user selects a lens, the specific app is launched and the app must implement a camera-like experience. If you are using the one of the previous methods to implement your camera (for example, PhotoCamera class), you can just show that page of your application. To be registered for this special type of application, you have to tell the WMAppManifest.xml file that your app supports an extension. Unfortunately, the editor in Visual Studio does not support setting these extensions directly. So you have to open the WMAppManifest.xml file as XML. You can accomplish this by right-clicking the WMAppManifest.xml file and selecting “View Code.” As a child of the App element, you need to add a section called Extensions, like so:

<Deployment xmlns="..."
            AppPlatformVersion="8.0">
  <DefaultLanguage xmlns=""
                   code="en-US" />
  <App ...>

    ...

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

    ...

  </App>
</Deployment>

The extension type and GUID for the ConsumerID are shown here. These are specific GUID values and not specific to your application. This value must be used. The TaskID should be “_default” that points to the default task in the list of Tasks in the XML file. After this is done, the lens will be registered with the camera on installation of the application.

Other  
  •  BlackBerry Development : Pushing Data to External Users - Web Signals (part 6) - Building a Web Signal - Unsubscribing from a Subscription
  •  BlackBerry Development : Pushing Data to External Users - Web Signals (part 5) - Building a Web Signal - Requesting the Status of a Subscription
  •  BlackBerry Development : Pushing Data to External Users - Web Signals (part 4) - Building a Web Signal - Pushing Data to Subscribers
  •  BlackBerry Development : Pushing Data to External Users - Web Signals (part 3) - Building a Web Signal - Web Signal Domains, Web Signal Subscriber Registration
  •  BlackBerry Development : Pushing Data to External Users - Web Signals (part 2) - Signing Up for Web Signals
  •  BlackBerry Development : Pushing Data to External Users - Web Signals (part 1) - How Web Signals Work
  •  Holiday Gift Guide – Smartphones – Aug 2013
  •  Holiday Gift Guide – Tablets – Aug 2013
  •  Wacom Cintiq 13HD - A Space-Saving Pen Display For Designers (Part 2)
  •  Wacom Cintiq 13HD - A Space-Saving Pen Display For Designers (Part 1)
  •  
    Top 10
    Free Mobile And Desktop Apps For Accessing Restricted Websites
    MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
    TOYOTA CAMRY 2; 2.5 : Camry now more comely
    KIA SORENTO 2.2CRDi : Fuel-sipping slugger
    How To Setup, Password Protect & Encrypt Wireless Internet Connection
    Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
    Backup & Restore Game Progress From Any Game With SaveGameProgress
    Generate A Facebook Timeline Cover Using A Free App
    New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
    SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
    - Messages forwarded by Outlook rule go nowhere
    - Create and Deploy Windows 7 Image
    - How do I check to see if my exchange 2003 is an open relay? (not using a open relay tester tool online, but on the console)
    - Creating and using an unencrypted cookie in ASP.NET
    - Directories
    - Poor Performance on Sharepoint 2010 Server
    - SBS 2008 ~ The e-mail alias already exists...
    - Public to Private IP - DNS Changes
    - Send Email from Winform application
    - How to create a .mdb file from ms sql server database.......
    programming4us programming4us
    programming4us
     
     
    programming4us