Hi all,

I'm also getting same issue.
I'm working on the Swiftnotes code in Eclipse, the data is lost after 
exiting the app, I don't use clearStorage() anywhere, the data has been 
written/read to/from storage successfully.
this issue is happening on both simulator and my Android phone (Galaxy S8) .

I tried to clear cached of the app installed on my phone, even allowed 
permissions on Storage but no luck.
Do I need to do anything else like configurations on phone, code changes, 
etc ?

Thanks!
Thuan.


On Tuesday, March 4, 2014 at 2:31:22 PM UTC-6, Sadart Abukari wrote:
>
> Feeling sheepish. 
> I had a Storage.getInstance().clearStorage(); in my initVars method. Which 
> was the culprit. I removed it and everything works. Thanks for drawing my 
> attention to the clear cache since it let me revise where I might be 
> clearing anything storage in my code.
>
>     protected void initVars(Resources res) {
>         Storage.getInstance().clearStorage();// removed
>         vGlobalNewsPost = new Vector<Hashtable>();
>         vTeamsInfo = new Vector<Hashtable>();
>         startPage = "1";
>         Util.register("UserObject", UserObject.class);
> }
>
> On Tuesday, March 4, 2014 7:25:44 PM UTC, Shai Almog wrote:
>>
>> Storage caches data so the fetch while the app is running will bring the 
>> data from cache even if write failed. You can clear the cache which will 
>> show the failure immediately.
>> Is there no printout to console after the write operation?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9f20aeb5-5eff-409a-867d-9b36156d6dd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to