Software Archive
Read-only legacy content
17061 Discussions

Construct 2 File Chooser

Bob_P_
Beginner
444 Views

Cannot get the file chooser option to work on a simple apk created with the latest XDK 2893 and Construct 2
In brief the file chooser option works fine in Chrome, NW and XDK Emulator, but fails to work on apk.

In depth here:

https://www.scirra.com/forum/viewtopic.php?f=147&t=167809

Have uploaded a capx and apk to Google drive linked on the above page.

Not getting any build errors and I have followed your guide on the correct way to import Construct 2 projects.

Have tried all the Cordova and XDK native plugins of Camera, Media and File.

The folder looks like this:

Root
>Plugins
>XDK
>www

config.xml and intelxdk.config.additions.xml are in Root

Hope you can help.
Thanks
Rob

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
444 Views

Mobile devices do not support a conventional filesystem like that you are used to using in your browser on a desktop. You have a much more restricted filesystem on these devices, for security and stability reasons. See the sample apps in the XDK for some help with seeing how to read and write a file. The restrictions vary significantly depending on the platform, so what works on Android may not work on iOS, etc.

0 Kudos
Reply