brandnewman's Recent Forum Activity

  • > Hello everybody, my apologies for my English in advance (yeah... French...)

    >

    > Sorry to bother you, but do any of you understand how the "cordovafile" plugin works?

    >

    > I mean : I exported the capx on APK as a charm, but I can't figure out where the file "myfile.txt" from the project is stored ? I can't see it on the capx, and though it does tell me the file is on the phone when I use the app (I can copy, write, type, etc.), I can't seem to find it on the phone browser.

    >

    > I need this feature to export JSON files which contain custom levels created by users on my app, for the "download as" command that works on the computer doesn't do any help on my phone.

    >

    > Any help would be greatly appreciated, thank you in advance.

    >

    > Regards.

    >

    Allright, I found out what the problem is : the cordova file plugin is actually saving files in a directory which needs your phone to be rooted so that you can access them ("/data/data/com.yourname.myapp/files/files/").

    That's weird, for the documentation of the plugin tells you that the path you specify is "relative to external storage (SD card) root ex) "myfile.txt", "mydir/myfile.txt".

    Is there any way to move the path of your written files, for any path I specify leads to "/data/data/com.yourname.myapp/files/files/mydir" (etc.) ?

    Thank you to anybody who has the answer.

    Cheers.

    Success ! For all of you people who met the same problem I did, here's the solution : simply add the following lines at the end of your "intelxdk.config.additions.xml" in your XDK "develop" project board.

    <!-- makes the "Cordova File" plugin able to write files on other locations than root -->

    <preference name="AndroidPersistentFileLocation" value="Compatibility" />

    <preference name="AndroidExtraFilesystems" value="files,files-external,documents,sdcard,cache,cache-external,root" />

    This will do the trick : now, when you specify a folder (for example "Documents/myfolder/") in your C2 event sheet, a new folder named "myfolder" will appear in your "documents" folder on your phone, and the file you wanted to create with the "write" command will be there ! Hope it will be useful for some of you ! Have a nice day.

  • Hello everybody, my apologies for my English in advance (yeah... French...)

    Sorry to bother you, but do any of you understand how the "cordovafile" plugin works?

    I mean : I exported the capx on APK as a charm, but I can't figure out where the file "myfile.txt" from the project is stored ? I can't see it on the capx, and though it does tell me the file is on the phone when I use the app (I can copy, write, type, etc.), I can't seem to find it on the phone browser.

    I need this feature to export JSON files which contain custom levels created by users on my app, for the "download as" command that works on the computer doesn't do any help on my phone.

    Any help would be greatly appreciated, thank you in advance.

    Regards.

    Allright, I found out what the problem is : the cordova file plugin is actually saving files in a directory which needs your phone to be rooted so that you can access them ("/data/data/com.yourname.myapp/files/files/").

    That's weird, for the documentation of the plugin tells you that the path you specify is "relative to external storage (SD card) root ex) "myfile.txt", "mydir/myfile.txt".

    Is there any way to move the path of your written files, for any path I specify leads to "/data/data/com.yourname.myapp/files/files/mydir" (etc.) ?

    Thank you to anybody who has the answer.

    Cheers.

  • Hello everybody, my apologies for my English in advance (yeah... French...)

    Sorry to bother you, but do any of you understand how the "cordovafile" plugin works?

    I mean : I exported the capx on APK as a charm, but I can't figure out where the file "myfile.txt" from the project is stored ? I can't see it on the capx, and though it does tell me the file is on the phone when I use the app (I can copy, write, type, etc.), I can't seem to find it on the phone browser.

    I need this feature to export JSON files which contain custom levels created by users on my app, for the "download as" command that works on the computer doesn't do any help on my phone.

    Any help would be greatly appreciated, thank you in advance.

    Regards.

  • Hello, sorry for the delay : I'm not using the beta version of C2 (I'm on 212.2). But I truly believe the culprit was (for me at least) jellybean : now that I'm on kitkat, my game works flawlessly on my two phones (except that the loop in music is still slightly noticeable, but we're getting closer)

  • Good evening everyone : I came here because I used to have a lot of issues with audio in any version of crosswalk about 7 (sounds weren't looping, musics weren't playing at all).

    I just wanted to share my experience with you : I happen to test my game on a Galaxy 2 (using an old phone makes you sure your game will work on almost any device), which had Android 4.2 version (jelly bean) installed.

    Now, I tried to use my app on my professional phone (galaxy S4 mini), which had 4.4 (kitkat) on it, and I realized my audio troubles were gone !

    So I installed 4.4 on my S2 (had to go to Cyanogen, since 4.4 isn't officially supported by the S2), and now everything works like a charm (even the gaps when the music loops are barely noticeable, if you leave a pause before the loop for example).

    So I would highly recommend that you check the android you're using on your phone, and if you can make a test on a newer device : it definetely made the trick to me !

    Hope it might help.

    Regards.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I don't know about iOS, but I found out that, on Android, Crosswalk versions above n°7 seem to be broken, as the "preload" and "loop" functions both don't work with me, whereas they worked before. So I went back to number 7 until the problem is solved, and everything is back to normal. Hope it helps you a bit. Goodnight !

brandnewman's avatar

brandnewman

Member since 23 Jun, 2013

None one is following brandnewman yet!

Connect with brandnewman

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies