windows phone 8 - Display splash page only on the 1st launch, or after a crash or a kill of the app -
could please explain how display splash page when first launch or crash or kill app in windows phone.
you use isolatedstorage check if app opened before or not
private static bool hasseenintro; /// <summary>will return false first time user ever runs this. /// everytime thereafter, placeholder file have been written disk /// , trigger value of true.</summary> public static bool hasuserseenintro() { if (hasseenintro) return true; using (var store = isolatedstoragefile.getuserstoreforapplication()) { if (!store.fileexists(landingbitfilename)) { // write placeholder file 1 byte long know they've landed before using (var stream = store.openfile(landingbitfilename, filemode.create)) { stream.write(new byte[] { 1 }, 0, 1); } return false; } hasseenintro = true; return true; } }
for crash system, use bugsense windows phone
Comments
Post a Comment