Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
IdeasVacuum
 
Posts: 135
Joined: Tue Feb 25, 2014 1:27 pm

Persistant data storage for Android

by IdeasVacuum Mon Nov 20, 2017 9:50 am

Most apps need at least some persistent data storage. Spider Basic Android needs to support Android Private Files, SD Files and TinyDb.
User avatar
Peter
 
Posts: 479
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

Re: Persistant data storage for Android

by Peter Mon Nov 20, 2017 11:23 am

IdeasVacuum wrote:Most apps need at least some persistent data storage. Spider Basic Android needs to support Android Private Files, SD Files and TinyDb.

CreateFile() with the #PB_LocalStorage - Flag should create persistant files, shouldn't it? (can't test it by myself)

Greetings ... Peter
IdeasVacuum
 
Posts: 135
Joined: Tue Feb 25, 2014 1:27 pm

Re: Persistant data storage for Android

by IdeasVacuum Thu Nov 23, 2017 11:09 pm

Hi Peter

Not according to the Help:
#PB_LocalStorage: will save the file on client side using its filename when @closefile() is called. This file
could be opened again in another session in the same browser later, but it can be wiped if the
user clear its local cache. It's also domain related, so if the application domain name change,
the files won't be accessible anymore.
tj1010
 
Posts: 182
Joined: Wed May 27, 2015 1:36 pm

Re: Persistant data storage for Android

by tj1010 Sat Nov 25, 2017 10:29 pm

I posted code to test this.. Since the last build and since changing phones SB doesn't find any device I have..
IdeasVacuum
 
Posts: 135
Joined: Tue Feb 25, 2014 1:27 pm

Re: Persistant data storage for Android

by IdeasVacuum Thu Jan 25, 2018 10:24 pm

tj1010
 
Posts: 182
Joined: Wed May 27, 2015 1:36 pm

Re: Persistant data storage for Android

by tj1010 Fri Jan 26, 2018 12:18 pm

If memory serves correct every version of Android has even "Administrators" sandboxed with their own jailed(?) folders that are in /Android/data/[app domain string]. This is basically what you r/w too/from with native file API and these file-system plugins(to r/w outside you have to root the phone and use Linux API). I still haven't tested if the code I posted that uses SB flag uses that or browser session storage though. I was going to add native file API read-to-buffer,write-buffer, and directory-table-to-array to my camera and wifi sample using a plugin, but didn't have the free time.
Return to Feature Requests and Wishlists

Who is online

Users browsing this forum: No registered users and 3 guests