Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Where is the file saved on android?

Res1st0r
Guest
Quote
2021-07-03 20:57:34

Hello everyone, where file are saved to android when using ccbWriteFileContent?


Alireza
Guest
Quote
2021-07-03 22:54:50

Hello
I think "ccbWriteFileContent" does not work for android.


adteam43
Registered User
Quote
2021-07-04 06:19:02

Just create an apk file and after that import into your mobile.
The function you are mentioned above its not working for android


Alireza
Guest
Quote
2021-07-04 07:16:47

wrote:
Just create an apk file and after that import into your mobile.
The function you are mentioned above its not working for android

a question . Is this function impossible for Android? Or we can modify it with Java coding


adteam43
Registered User
Quote
2021-07-04 09:31:33

This function its not working for android so far as I know.
The android lang its different to programming with "ccb" values.
Not exactly a javascript but android script with Android Studio.
A complete different language.
Thats why I said to export as APK file and import manually into your phone.


Alireza
Guest
Quote
2021-07-04 09:46:13

wrote:
This function its not working for android so far as I know.
The android lang its different to programming with "ccb" values.
Not exactly a javascript but android script with Android Studio.
A complete different language.
Thats why I said to export as APK file and import manually into your phone.

I have the source of Android CopperCube. I think if someone knows Java they can add features to it. Do you know Java?


DouweDabbe
Guest
Quote
2021-07-13 11:27:01

before android 4.4

it went here
/coppercube app/

or

/extsdcard/coppercube app/


after android 4.4 it goes here

/Android/data/CoppercubeApp/

or

/ExtSDcard/Android/data/CoppercubeApp/


DouweDabbe
Guest
Quote
2021-07-13 11:28:51

You also must grant your app permission in android to write data to the Filesystem


just_in_case
Moderator
Quote
2021-07-13 19:05:23

this command doesn't work on android, so there will be no file saved to your android device if you use this command. It is clearly stated in android source code of coppercube that this command is not possible.

don't know what @DouweDabbe is talking about.
P.S I am using the source of coppercube 5.7 as an Android source. don't know if it has been changed in newer versions.


DouweDabbe
Guest
Quote
2021-07-15 01:10:48

have not tried yet myself, documentation CC5.7 / CC6.4 claims only it not working at webpages. It is annoying that CC help does not explicitly mentions what works where.

maybe in combination with:

ccbGetPlatform()
system(specific Android System Commandline)
ccbReadFileContent(text)
ccbWriteFileContent(text)


there is also:
var engine = new CL3D.CopperLicht('canvasID');
engine.load('yourfile.ccbjs');


meaning there is filesystem access when online


just_in_case
Moderator
Quote
2021-07-15 06:46:07

Yup, there are a lot of commands which has platform specific limitations. for example, the android apk created with coppercube right now has no support to read or write external files so we can't use the commands mentioned above and there are some other commands as well which don't work on the android platform.


DouweDabbe
Guest
Quote
2021-07-16 05:00:47

how about ADB
Android Debugging Bridge

also extra libraries may providfe access to Androids own fs tools

https://developer.android.com/training/data-storage


google: android filesystem acces javascript

https://capacitorjs.com/docs/apis/filesystem


Res1st0r
Guest
Quote
2021-07-16 13:22:22

@Alireza, how can I contact you (e-mail, discord)?


Alireza
Guest
Quote
2021-07-22 23:08:17

Res1st0r wrote:
@Alireza, how can I contact you (e-mail, discord)?

Yes of course .
Email : a.akrami.9046@gmail.com
Discord user name : alirezaAki


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact