IT tutorials
 
Mobile
 

Windows Phone 8 : Creating a Photos Extras Application (part 1) - Adding Your App to the Extras Menu

2/22/2014 2:27:06 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

The Extras menu of the built-in picture viewer app allows you to add a link to your app so that the user can quickly launch your app from within the picture viewer. This effectively allows you to extend the picture viewer with your own app.

An Extras application may be used to enhance an image’s color, crop an image, convert an image to monochrome, or even read a photo’s Exchangeable image file format (EXIF) information to display where the photo was taken on a map.

For an example of an app that reads EXIF data, see the Photo Location app on the Windows Phone Marketplace. (Full disclosure: The app is written by my wife.)

When users tap the three dots on the application bar in the picture viewer, they see a menu containing a link to the Extras menu (see Figure 1).

Image

FIGURE 1 Users can activate a photo Extras application or a photo Share application.

Users selecting the Extras menu item see the list of apps that are registered as Extras applications (see Figure 2).

Image

FIGURE 2 The sample Extras application displayed in the Extras menu.

When a user selects your app from the Extras menu, your app is launched, and it receives an identifier (a token) that is used to retrieve the image from the phone’s image library.

1. Adding Your App to the Extras Menu

To indicate to the Windows Phone picture viewer that your app should be included in the Extras menu, the inclusion of an XML file called Extras.xml is required in the root of your XAP file.

To add the Extras.xml file to your project, follow these steps:

1. Right-click the name of your project in the Solution Explorer and select Add, New Item.

2. On the Add New Item page, select XML File; then name the file Extras.xml.

3. Select Add.


Note

Make sure that the Extras.xml file is set to Content. Contrary to the official documentation on MSDN, the Copy to Output Directory option should be set to Do Not Copy. You can do this via the Visual Studio Properties window after selecting the file in the Solution Explorer.


Edit the Extras.xml file so that it matches Listing 1.

LISTING 1. Extras.xml


<?xml version="1.0" encoding="utf-8" ?>
<Extras>
    <PhotosExtrasApplication>
        <Enabled>true</Enabled>
    </PhotosExtrasApplication>
</Extras>


When an app is installed on the phone, the OS scans the XAP file. When it discovers the Extras.xml file, it adds your app to the picture viewer’s Extras menu.

 
Others
 
- Java ME Subsystem Architecture : Mean and Lean Virtual Machine
- Java ME Subsystem Architecture : Application Management Software, MIDP Push
- Java ME Subsystem Architecture : Java Applications and Symbian OS
- BlackBerry Bold 9700 and 9650 Series : Surfing the Web - Going to a Web Page
- BlackBerry Bold 9700 and 9650 Series : Surfing the Web - Web Browsing on Your BlackBerry
- Windows Phone 8 : Windows Phone Toolkit (part 6) - WrapPanel Layout Container
- Windows Phone 8 : Windows Phone Toolkit (part 5) - CustomMessageBox
- Windows Phone 8 : Windows Phone Toolkit (part 4) - ToggleSwitch Control, ExpanderView Control, PhoneTextBox Control
- Windows Phone 8 : Windows Phone Toolkit (part 3) - ListPicker Control, LongListSelector Control
- Windows Phone 8 : Windows Phone Toolkit (part 2) - ContextMenu Control, DatePicker and TimePicker Controls
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us