.net - Uninstalling Windows Mobile application doesn't remove file in IsolatedStorageFile -
i have windows phone 8 application. installed application in device running windows 10 mobile. after uninstalling application device found sqlite db file exists in isolatedstoragefile
isolatedstoragefile store = isolatedstoragefile.getuserstoreforapplication(); store.fileexists(dbname) // returns true
i added file storage through method:
assembly assem = assembly.getexecutingassembly(); copyfromcontenttostorage(assem.fullname.substring(0, assem.fullname.indexof(',')), dbname); private void copyfromcontenttostorage(string assemblyname, string dbname) { isolatedstoragefile store = isolatedstoragefile.getuserstoreforapplication(); system.io.stream src = application.getresourcestream( new uri("/" + assemblyname + ";component/" + dbname, urikind.relative)).stream; isolatedstoragefilestream dest = new isolatedstoragefilestream(dbname, system.io.filemode.openorcreate, system.io.fileaccess.write, store); src.position = 0; copystream(src, dest); dest.flush(); dest.close(); src.close(); dest.dispose(); }
i tested app on 2 devices running windows phone 8 * 8.1 . works correctly on devices;
is bug in windows mobile 10 or must change code?
Comments
Post a Comment