How to get List of Files from futureAccessList after relaunch Windows 8 JavaScript (WinJS) example

Simple quick JavaScript Windows 8 example of getting files that was saved by the user using futureAccessList. This also shows how to convert the MRU token to a file. I added this to the default.js.

//Windows comment: TODO: This application has been reactivated from suspension.
//Windows comment: Restore application state here. 
var mruEntries = Windows.Storage.AccessCache.StorageApplicationPermissions.futureAccessList.entries;
     if (mruEntries.size > 0) {
          var  publicPhotoArray = new Array();
           mruEntries.forEach(function (entry) {
            /** Decode token **/
              function (retrievedFile) {
                   /** put the files into an object**/
               function (error) {
                     //handle error         
                // Continue processing the MRU entry
         /** Continue with your file array here like I did **/
          var decodedArray = decodePicture(publicPhotoArray, false); //ignore this
           Data.photoArray = decodedArray; // ignore this
          } else {
              // Handle empty MRU

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Graveyard Database Logo

Has everything you want to know about grave yards. Plus has many celebrites and world leaders graves. Pssst it is my other site

Google + Profile
Check out Android Photo Mapping, its a app/site I been working on
Fabulou wholesale Petr Mrazek jersey is back. Best choice to get the wholesale Petr Mrazek jersey is suitable for all style of people.