Loading images from tablet local files with JSON

589 views Asked by At

This is my first post here and I've got a big problem concerning the access of local file addresses on tablets.

I'd like to load image files in a game by using AJAX to get a JSON file containing URLs of images. My problem is that I dont know if it is possible to get local file addresses directly from the tablet folders using JSON.

Seems like I should use an URL that looks like this "storage/sdcard0/myImage.png." but I'm not sure that it's actually calling the file. Is it ?

I'm using Construct 2 because I'm not a coder, so I'm quite limited as for raw JavaScript programming. Please try not to flood me with code :D

1

There are 1 answers

0
KickAss On BEST ANSWER

I believe you can, URI can be used for urls and local filepaths:

URI | Android Developer