Unable to retrieve images from media library

I am using Microsoft.Xna.Framework.Media on my Windows Phone 8 application.
I have a lot of photos in CameraRoll and a few in "Saved Image".
But I can't get photos from MediaLibrary.
It always returns an empty set in MediaLibrary.Pictures.

Here is the result in the Immediate Window:

{Microsoft.Xna.Framework.Media.PictureCollection}
    Count: 0
    IsDisposed: false

      

+3


source to share


1 answer


Have you added the required capability ID_CAP_MEDIALIB_PHOTO

to your application manifest?



Also, if you are using an emulator, it might be a good idea to log into the Pictures app first and then test your app!

+5


source







All Articles