path - Android 5.1.1 app doesn't see local files -


i made website , turned android app, using phonegap website. have files stored on local storage on asus tf300 tablet, , need app access them. access files use links that:

file:///sdcard/original_img/3_1_5.jpg

now funny part. if open link in chrome, firefox or other browser on tablet - image loads up. if launch app same link in index.html, image doesn't load @ all.

what be? storage path somehow different apps , browsers?

looks need add app androidmanifest.xml :

<manifest ...>     <uses-permission android:name="android.permission.write_external_storage" />      ...  </manifest> 

update chat conversation (based on thread) :

add config.xml:

<preference name="androidpersistentfilelocation" value="compatibility" />  <preference name="androidextrafilesystems" value="sdcard,cache" /> 

file pathes should following:

 file:///sdcard/<path> 

Comments