android - Did virtual devices have temporary memory? -


while using virtual device test application noticed sometimes, after device has been turned off while (for example: used device test app today; turned off computer; , after 2 days used device again test update), when ran application again data had been reset. doesn't happen (apparently) when i'm using real device, phone or friend's tablet.

my question is: loss of memory normal happen virtual devices or there problem app? i'm kind of worried it, because if user loses data serious problem.

i store data here, in external storage:

objectoutputstream oos = new objectoutputstream(       new fileoutputstream(          environment.getexternalstoragedirectory() + "/myapplication/data.dat")); oos.writeobject(dataset); oos.close(); 

** may understand checked code try find something, , can't put whole code here, that's not point.

android emulator or virtual device never lose data on system shutdown....(as have seen till now).....try creating new virtual device , try again. hope works.....while setting device make sure allocate enough space external storage , internal storage.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -