Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello everyone, where file are saved to android when using ccbWriteFileContent? |
||||
|
Hello I think "ccbWriteFileContent" does not work for android. |
||||
|
Just create an apk file and after that import into your mobile. The function you are mentioned above its not working for android |
||||
|
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 |
||||
|
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. |
||||
|
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? |
||||
|
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/ |
||||
|
You also must grant your app permission in android to write data to the Filesystem |
||||
|
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. |
||||
|
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 |
||||
|
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. |
||||
|
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 |
||||
|
@Alireza, how can I contact you (e-mail, discord)? |
||||
|
Res1st0r wrote: @Alireza, how can I contact you (e-mail, discord)? Yes of course . Email : a.akrami.9046@gmail.com Discord user name : alirezaAki |
|