save image [OR other file] on phone

Get help using Construct 2

Post » Sat Jan 24, 2015 5:37 pm

hello guys, I apologize for my English!
my problem: I can not save image file on sd when I use intel XDK. Everything works fine in preview but not when I export to cordova and import in XDK: pressing the SAVE button nothing happens.
Thank you for your help
Last edited by dokthor on Sun Jan 25, 2015 6:52 pm, edited 1 time in total.
B
15
S
6
Posts: 20
Reputation: 1,199

Post » Sat Jan 24, 2015 5:47 pm

Possibly has to do with very strict SD card access limitations in KitKat. You basically need root and patch some things to freely work with an SD card, otherwise it's all walled in - if I'm not mistaken you can only access a subfolder named after your app in a specific location.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Sat Jan 24, 2015 6:00 pm

thanks for reply. My phone has root and I made the patch to avoid kitkat limitations; moreover, in the preview mode everything works well and the images are perfectly saved in gallery. The problem arises when import my project in XDK [android-crosswalk].
B
15
S
6
Posts: 20
Reputation: 1,199

Post » Sun Jan 25, 2015 4:45 pm

in XDK, did you check that all plugins are included ?
B
7
S
1
Posts: 17
Reputation: 477

Post » Sun Jan 25, 2015 5:22 pm

no, in XDK [1621] I have selected in "standard cordova plugin" camera, device, file transfer, while in "featured cordova & custom plugin" only camera plugin.
I tried "invoke download" and "open URL in new windows" with the browser component, and then I tried with the plugin SaveFile [by Pod if I remember correctly]. All work perfectly in chrome preview but after the import in XDK nothing happens, or better, Camera work fine but after snapshot no file is created and nothing is saved in gallery, [in both emulation panel and after compiling apk with "crosswalk for android" build way]

edit: same problem occurs in attempts to generate other files, for example, I tried to save a text string using "invoke downloads of string" with the browser component, that works perfectly in chrome preview, but not in XDK
B
15
S
6
Posts: 20
Reputation: 1,199


Return to How do I....?

Who is online

Users browsing this forum: NN81, WesleyDeveloper9 and 7 guests