locked
Lockscreen slideshow from localStorage Folder?

    Question

  • I'm trying to run a slideshow for the lockscreen with a xml file from the localFolder.

    History

    Apart from Microsofts official example being broken (the feed itself in the sample dosen't exist anymore) I was able to run a lockscreen slideshow with the example from David Catuhe

    So I took the xml from the example, saved it locally and put it in the localFolder and inside my solutionfolder (to test both scenarios)

    Problem

    I created a Uri to the xml inside the localFolder like this:

    public static StorageFolder localFolder = ApplicationData.Current.LocalFolder; 
    public static StorageFile feedFile;
    
    ...
    
    feedFile = await localFolder.GetFileAsync("images.xml");
    
    if (Uri.TryCreate(feedFile.Path, UriKind.RelativeOrAbsolute, out dataUri))
    {
       Debug.WriteLine("dataUri:" + dataUri);
    }
    
    ...
    
    SetImageFeedResult result = await LockScreen.RequestSetImageFeedAsync(dataUri);
    
    

    But everytime I try to run the app, it says something about an error while configuring the slideshow for the lockscreen. The result itself just says "SetImageFeedResult.UserCanceled"

    This is also true if I try to create the uri from inside the app-package with "ms-appx:///" or "ms-appdata:///"

    Any idea why this won't work?

    Also as a sidenote: The behaviour from windows seems a bit random when adding an online rss image feed. I have to activate the lockscreen several times before it shows finally (that goes only for the online rss from David Catuhe's example, not the above explained local problem).

    Tuesday, February 18, 2014 10:15 AM

Answers

  • Hi,

    The new LockScreen.RequestSetImageFeedAsync method that is available in Windows 8.1 allows to set a remote RSS feed as source for the Lock Screen slideshow.The Url should be an external URL .

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by SW_Andy Wednesday, February 19, 2014 11:12 AM
    Wednesday, February 19, 2014 3:48 AM

All replies

  • How to do this?

    Tuesday, February 18, 2014 10:52 AM
  • Hi,

    The new LockScreen.RequestSetImageFeedAsync method that is available in Windows 8.1 allows to set a remote RSS feed as source for the Lock Screen slideshow.The Url should be an external URL .

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by SW_Andy Wednesday, February 19, 2014 11:12 AM
    Wednesday, February 19, 2014 3:48 AM
  • Thanks... David Cathue also confirmed that on his blog. 

    That' a pitty... think of what you & the user could do with usergenerated content from an app and the lockScreen - would be a nice feature to have.

    Wednesday, February 19, 2014 11:15 AM