×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2013
    Location
    Penrith, Australia
    Posts
    3

    Question Bug Report: SavedPictures (PictureCollection)

    The Nokia-app called Nokia Video Trimmer is allowed to save its trimmed videos in the phones Saved Pictures library.

    When using the following code to get the PictureCollection in that library, the videos in there will give a System.UnauthorizedAccessException in the foreach line trying to read the properties.

    Code:
    MediaLibrary myLibrary = new MediaLibrary();
    PictureCollection mySavedLibrary = myLibrary.SavedPictures;
    
    foreach (var selectedPicure in mySavedLibrary)
    {
        if (selectedPicure.Name == myWBName)
        {
            return Microsoft.Xna.Framework.Media.PhoneExtensions.MediaLibraryExtensions.GetPath(selectedPicure);
        }
    }
    Is this a bug that Nokia can save videos in the Saved Pictures library?

    Also posted on the Microsofts Dev Center Forums
    http://social.msdn.microsoft.com/For...d-f090823afa13

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    546

    Re: Bug Report: SavedPictures (PictureCollection)

    They probably have special permission to do so. As Nokia is the biggest Windows Phone OEM they are allowed to use certain functions for their apps that regular developers are not.

    This was also the case with Windows Phone 7.

  3. #3
    Registered User
    Join Date
    Aug 2013
    Location
    Penrith, Australia
    Posts
    3

    Re: Bug Report: SavedPictures (PictureCollection)

    But why would they make such a thing? If I had a HTC or Samsung I wouldn't have known about this and all the apps that have similar code wouldn't work properly on a Nokia device.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    546

    Re: Bug Report: SavedPictures (PictureCollection)

    That's true - and this kind of OEM addition is rare. Most features that are added by OEM don't change anything at the API level, they just add a new user feature (like Storage Check or tap-to-wake).

    That said, when calling any API, you should be using Try{} Catch() as it can throw various types of exceptions.

  5. #5
    Registered User
    Join Date
    Aug 2013
    Location
    Penrith, Australia
    Posts
    3

    Re: Bug Report: SavedPictures (PictureCollection)

    And I have. My app caught the exception and showed me in a messagebox something is wrong. It just didn't look beyond the files after the video file. Like I said, you don't expect video in a "Saved Pictures" folder.

Similar Threads

  1. User data in SMS-SUBMIT-REPORT and SMS-STATUS-REPORT
    By eranga in forum General Messaging
    Replies: 3
    Last Post: 2007-11-09, 15:41
  2. User data in SMS-SUBMIT-REPORT and SMS-STATUS-REPORT
    By eranga in forum Series 40 & S60 Platform Feedback Archive
    Replies: 0
    Last Post: 2007-11-05, 08:27
  3. where to report bug?
    By FBulovic in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-07-12, 22:38
  4. Replies: 0
    Last Post: 2005-10-16, 07:56
  5. report
    By nodevelop in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-03-26, 11:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×