Windows 8 Conference Buddy–Be A Sharing Target

Yesterday, we looked at being a sharing source.  This was surprisingly easy.  Being a target would be more complex except that Visual Studio provides a template that greatly simplifies the process.

By using the template, we avoid having to set the package appxmanifest and we avoid having to muck about in App.xaml.cs.  All that work is done for us.  To see this at work, create a new application and name it SharingTarget.

Right click on the project in Solution Explorer, and choose Add –> New Item.  From the list, select Share Target Contract and use the default name.

You will be prompted that there are required files that Visual Studio can add for you.  Click Yes.


Wait a few seconds and you’ll see that a number of files have been added to the Common Directory and that ShareTargetPage1.xaml has been added to your solution.

That’s it! You now have a target.  The sample page provides all the needed information, including the ability to add a comment.

To see this at work, run the program once (to register it) and then stop the new target program. Remember that targets don’t have to be running to be in the target list; if the user selects your target application it will be started for you.

Return to the source application that we built yesterday and start that up.  Swipe to bring in the charms and touch the sharing charm. Notice the list of target applications now includes your new application.



If you click on SharingTarget (the application you just created) the text version of the data is picked up as our target currently only supports text (if you try Mail you’ll still see the HTML version).

Note that this new application doesn’t do anything with the data you’ve shared; you’ll have to write additional code to integrate that data into your new application.

About Jesse Liberty

Jesse Liberty has three decades of experience writing and delivering software projects and is the author of 2 dozen books and a couple dozen Pluralsight & LinkedIn Learning courses. He was a Senior Technical Evangelist for Microsoft, a Distinguished Software Engineer for AT&T, a VP for Information Services for Citibank and a Software Architect for PBS. He is a Xamarin Certified Mobile Developer and a Xamarin MVP and a Microsoft MVP.
This entry was posted in Contracts, Mini-Tutorial, Windows 8 and tagged . Bookmark the permalink.

6 Responses to Windows 8 Conference Buddy–Be A Sharing Target

  1. Jodie says:

    IMEI (International Mobile Equipment Identity) is actually a distinct 15-17 digit number specified to GSM or iDEN cellular phones.
    Literally it is usually meant to recognize every single
    wireless phone and even in case the cellphone is missing.
    Generally this code is actually intended to determine each individual cell and in case it’s lost or stolen, to block
    the device from being utilized simply by the other person. Whenever a user recognises that
    his phone happens to be robbed, it can blacklist this IMEI digit code and lock it away from the network.

    In case you have any dual-SIM mobile, you’ll see 2 IMEI digit
    codes, one for each Sim card slot. Along with cellphones, this IMEI digit numbers are named in notebook computers along with wireless internet cards, 3G/4G tables.
    Now, in conjunction with IMEI, a number of devices have MEID too, (Mobile Equipment
    ID, a super set of IMEI).

    There are many approaches to find your mobile’s IMEI digit number.
    A particular method may perhaps not necessarily effectively function with all sorts of
    products. Let’s take a look to the various method of determining this particular IMEI/MEID digit codes.
    This unique digit codes will be found on each individual mobile device.
    To find this code, switch off you cellular phone , remove your mobile battery, and then take a look around your bare battery
    slot to get a white-colored tag noting the actual IMEI code which is 15 or
    maybe 17 digits.
    The other standard way to help find is actually by dialing 5-digit string *#06#.
    By the time you enter the last number, the IMEI digit codes would
    be displayed on your cellular. Nonetheless, it
    may well not really perform for all kinds of mobile
    phones. For example, an iPhone with the Verizon network dials the digits as a dialling number,
    and then will not necessarily return the IMEI digits.
    In case your cell device is lost or stolen, all you need
    to do is get your original packaging for your mobile
    or portable gadget and then discover the particular barcode label
    trapped on box. IMEI is commonly shown jointly with the particular
    barcode and serial number on the cover of the particular box.

    Different mobile devices might have different ways of obtaining the particular IMEI
    digit number. We have to take a look at some of these.

    For Samsung cellular items, the person who has installed the Samsung KIES software in their own pc in order to sync their mobile device with the
    pc, they could get the particular IMEI number through the information stored in the PC.
    In order to perform that, basically open the Windows registry using ‘regedit’ and then navigate:
    Within the entry, you are going to locate the particular IMEINUM and then DEVCONINFO keys.
    The keys consist of the particular IMEI digit number of your phone.

    For those who have Nokia cell devices, the OVI (Nokia PC Suite) Desktop computer app could assist get your IMEI digits.
    From the Nokia PC Suite application, navigate: My Computer->C Drive->Users->(Your user Name)->Application Data->Local->Nokia->Nokia Suite.
    When you open any of the folders you would notice folder names which would have IMEI digits.
    Motorola cell phone devices – After you switch
    on your telephone, press the following key set in quick succession: # * [menu] [right arrow].
    Then scroll downward right up until you see IMEI/SIM ID.

    IMEI number monitoring through Android mobile phones:
    this could make use of Google’s Dashboard app to get
    this unique code. First logon to the Google account, and once on the Dashboard, broaden the Android items which is fourth on your list.
    And then, search for your cell phone model in this list.
    Its IMEI number are going to be displayed right next to it.

    For the ones who are using iPhone or maybe iPad, this is how you can carry out: from your home
    screen press ‘Menu’, then simply open the ‘Settings’ window, go to ‘General’ proceed to ‘About’ field, there you could
    notice MEID and then to the right of that code,
    a 14-digit number which is your IMEI digits.

  2. I like the helpful info you supply for your articles. I will bookmark your weblog and test again right here regularly. I am rather certain I’ll be told lots of new stuff right right here! Best of luck for the next!

  3. Vps Servers says:

    Woah this weblog is fantastic i really like studying your articles. Stay up the good paintings! You know, a lot of people are hunting round for this information, you can help them greatly.

  4. testdomain says:

    Well I truly liked studying it. This article provided by you is very useful for good planning.

  5. vps says:

    I think your blog is amazing. You write about very interesting things. Thanks for all the tips and information.

  6. Pingback: Windows Store Developer Links – 2013-02-22 | Dan Rigby

Comments are closed.