Hi all.
Some days ago I released the B4J WebGL Library.
To use that the user have to download the THREEJS distribution and put it on the develop machine inside DirData.
Happen that any B4J project can refer this, so the distribution is shared between more projects without have to copy it on every project. This works very well.
Now I'm at good point to develop the B4A WebGL library, but I not found a way to do this that works the same way.
On every project the user have to zip the THEEJS distribution (only substantial parts) and put the zip file to the Asset folder.
After this the library will check for existence of it in DirInternal and if it does not yet exist (only a first time) will be copied and unzipped to DirInternal.
This process is quite tedious as the zipped THREEJS distribution, even removing useless files, is several Megabytes (about 50MB) and you have to copy the zip file into Assets of each new project, even have more projects that use WebGL will consume more space on Android device, so the final app will be big.
What I need is a common THREEJS distribution on Android, where any new app created (that use WebGL library) can access it shared.
I know that with Android restrictions this is not possible, but I want to search a better solution to this.
May is there a way to use External Storage and use a common folder that more apps (that have permission) can access as shared folder ?
The problem here is even that External Storage is very, very slow API, I had a lots of problems with it's speed, 1/10 and less speed that old File API, expecially when list files.
Another big problem is that a common THREEJS distribution should be served over HTTP.
At this point I'm a bit out of ideas ...
Someone have some advices I can evalutate ?
Many Thanks.
Some days ago I released the B4J WebGL Library.
To use that the user have to download the THREEJS distribution and put it on the develop machine inside DirData.
Happen that any B4J project can refer this, so the distribution is shared between more projects without have to copy it on every project. This works very well.
Now I'm at good point to develop the B4A WebGL library, but I not found a way to do this that works the same way.
On every project the user have to zip the THEEJS distribution (only substantial parts) and put the zip file to the Asset folder.
After this the library will check for existence of it in DirInternal and if it does not yet exist (only a first time) will be copied and unzipped to DirInternal.
This process is quite tedious as the zipped THREEJS distribution, even removing useless files, is several Megabytes (about 50MB) and you have to copy the zip file into Assets of each new project, even have more projects that use WebGL will consume more space on Android device, so the final app will be big.
What I need is a common THREEJS distribution on Android, where any new app created (that use WebGL library) can access it shared.
I know that with Android restrictions this is not possible, but I want to search a better solution to this.
May is there a way to use External Storage and use a common folder that more apps (that have permission) can access as shared folder ?
The problem here is even that External Storage is very, very slow API, I had a lots of problems with it's speed, 1/10 and less speed that old File API, expecially when list files.
Another big problem is that a common THREEJS distribution should be served over HTTP.
At this point I'm a bit out of ideas ...
Someone have some advices I can evalutate ?
Many Thanks.
Last edited: