locked
Sharing StorageItems with SetDataProvider() method RRS feed

  • Question

  • Hi all

    i am working on sharing source app and target app;

    In source app , i coded like this:

    data.SetDataProvider(StandardDataFormats.StorageItems, DataProvider);

    types.Add("*.jpg");
    types.Add("*.png");

    What confused me is it does not work without select 'Supports any file types' in manifest of Target app

    the target app has not been displayed on sharing source app's share charm

    Is there anyone know about this? Appreciate for it

    Monday, September 23, 2013 3:05 AM

Answers

  • hi Dave

    Unfortunately,  after i changed  "*.jpg" to ".jpg",  my app works too.

    that's too bad that no document have mentioned this difference but the sample.

    Thanks for your reply.


    • Marked as answer by Anne Jing Wednesday, September 25, 2013 8:33 AM
    Tuesday, September 24, 2013 9:19 AM

All replies

  • i downloaded the Sharing Source en Sharing Target app from msdn.

    Changed it so it would use SetDataProvider and turned the 'Supports any file types' off but cant reproduce it. The share target app will still be visible.


    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Monday, September 23, 2013 8:05 AM
  • hi Dave

    Unfortunately,  after i changed  "*.jpg" to ".jpg",  my app works too.

    that's too bad that no document have mentioned this difference but the sample.

    Thanks for your reply.


    • Marked as answer by Anne Jing Wednesday, September 25, 2013 8:33 AM
    Tuesday, September 24, 2013 9:19 AM
  • i downloaded the Sharing Source en Sharing Target app from msdn.

    Changed it so it would use SetDataProvider and turned the 'Supports any file types' off but cant reproduce it. The share target app will still be visible.


    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    hi Dave

    Unfortunately,  after i changed  "*.jpg" to ".jpg",  my app works too.

    that's too bad that no document have mentioned this difference but the sample.

    Thanks for your reply.


    Tuesday, September 24, 2013 9:20 AM