Widgets will not be allowed to write directly to the filesystem. SQLite databases can not be created by Widgets in production environments.
Please use the currentAppData and currentProfileData stores for your Widget's storage needs, saving stringified JSON if you have to keep objects or arrays of data. Remember that the embedded platforms may not have much writable storage in their filesystems, and flash storage has a limited number of write cycles, so please keep your strings compact.
This is the HUGE problem for me now.
If using currentAppData or currentProfileData, it seems just store my data in a working session (from start widget to end widget, and the data is released until the widget closes).
What i want is the data is stored and whenever the widget starts, the data is still retrieved.
I want:
A user just need inputs username/password in the first time he/she starts my widget.
And he/she can close the widget, then, he/she starts the widget in the second, third, 4th.... time --> he/she doesn't need re-input username/password .... until he/she logs out.
Currently, i try to use
var request = new XMLHttpRequest();
request.open( "GET", "http://myweb.com", false );
request.setRequestHeader( "username", "Jerry" );
request.send();
to set username
and retrieve:
response = request.getAllResponseHeaders();
But in "response", there isn't the key "username".
Please help me.
Many many thanks.
J ^ _ ^