IT tutorials
 
Mobile
 

Windows Phone 8 : Share Menu Extensibility (part 1) - Adding Your App to the Share Menu

2/22/2014 2:31:08 AM
- Windows 10 Product Activation Keys Free 2019
- How to active Windows 8 without product key
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

The Share menu of the picture viewer functions in much the same way as the Extras menu. The Share menu enables users to select a particular app to transfer an image somewhere, such as via email or to a third-party service such as Twitter. When the Share menu is selected, a list of registered Share applications is presented (see Figure 1).

Image

FIGURE 1 The picture viewer Share menu.

The title displayed in the Share menu is taken from your app’s WMAppManifest.xml file. The screen displays the text upload to, followed by the App element’s Title attribute. The length of the displayed title is limited to two lines and is truncated if it exceeds that number.

Although some services are available by default, you can extend the share picker with additional apps in a similar manner as the Extras menu.

1. Adding Your App to the Share Menu

To extend the share menu to include your photo share application, create a new file called E0F0E49A-3EB1-4970-B780-45DA41EC7C28.xml in the root directory of your main project. Rather than typing the name by hand, you may prefer to copy the XML file to your project from the downloadable sample code.


Note

Using the Visual Studio Properties window, make sure that the XML file build action is set to Content. Set the Copy to Output Directory option to Do Not Copy.


The existence of this file in the root of your XAP file indicates to the phone OS that your app participates as a Share application.

The awkwardly named XML file uses a GUID in its name. This appears to be an attempt to avoid collisions with other filenames. It is an unfortunate choice because it is unconventional and not in line with the Extras.xml filename.

 
Others
 
- Windows Phone 8 : Creating a Photos Extras Application (part 3) - Saving the Image
- Windows Phone 8 : Creating a Photos Extras Application (part 2) - An Edge-Tracing Extras Application
- Windows Phone 8 : Creating a Photos Extras Application (part 1) - Adding Your App to the Extras Menu
- 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
 
 
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
programming4us programming4us
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS