c# - Show Viber, Whatsup in Windows Phone 8.1 share contract -


hi developing app shares picture in via share contract in windows phone 8.1. code is

datatransfermanager datatransfermanager = datatransfermanager.getforcurrentview(); datatransfermanager.datarequested += new typedeventhandler<datatransfermanager, datarequestedeventargs>(this.datarequested); 

and

private async void datarequested(datatransfermanager sender, datarequestedeventargs args) {     datarequest request = args.request;     request.data.properties.title = "unscramble this";     request.data.properties.description = "";     request.data.settext(string.format("scrambled word {0} , clue {1}. me unscramble \r\n(via unscramble plus windows phone)",scrambledstring.toupper(),selectedmeanings.toupper()));     datarequestdeferral deferral = request.getdeferral();      // make sure call complete on deferral.     try     {         //storagefile logofile = await package.current.installedlocation.getfileasync("assets\\logo.png");          storagefile imagefile = await knownfolders.pictureslibrary.getfileasync("pic.png");         list<istorageitem> storageitems = new list<istorageitem>();         storageitems.add(imagefile);         request.data.setstorageitems(storageitems);     }         {         deferral.complete();     }  } 

where show share contract below (including facebook, mail apps) enter image description here

but if see in sendtiment app windows phone (http://www.windowsphone.com/en-us/store/app/sendtiment-cards/9c389cc5-5c00-4f8e-8bd4-e6fbb5040c24) shows many apps viber, whatsapp, twitter.

enter image description here

how these viber, whatsapp apps in app's share contract?

edit: (addition) when remove request.data.settext(string.format("scrambled word {0} , clue {1}. \r\n(via unscramble plus windows phone)",scrambledstring.toupper(),selectedmeanings.toupper())); line, shows onedrive.

enter image description here

http://channel9.msdn.com/series/building-apps-for-windows-phone-8-1/10

this might help, make sure kind of data sharing, app show if content type matches,

for example whatsapp show if sharing video,images not phone contact.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -