External Storage

Just got my laptop back( was getting repaired), looking at this now

You want to use externalStorage.isSdCardWriteable() to check if you can access the sd card. I was not aware of this but android may restrict access depending on os version or model 

How can I write or copy file to Device Internal Storage/Phone Storage ?
Please guide me.
I have tried demo code here but it’s not working for internal Storage.

I also try to create folder , but that’s also not working.
@Scott_Harrison, Please help me.

im trying to display image like this:
playMouse2= display.newImage( sceneGroup, externalStorage.sdCardPath() … “/TGS/play.png”,display.contentCenterX+670,display.contentCenterY+700)

but retrun nil @Scott_Harrison . How i can read resources directly

You cannot display directly from sd card, you need to copy it to a place like the document resource directory.

hello, its possible. but it only works for andoird<=9. For android >10 , its only possible to read from android/data/game_folder. Thanks for this amzing plugin. saved my life

You need to ask for permission first, I have this in my docs

another issue. I can read images and audios. But viddeos dont play, why? @Scott_Harrison

It maybe format issue. Not 100% sure, if you wanna include a demo, I can take a look

the same video works well when is in apk(Resourses directory), but dont works when is external storage.
Ps: When is a image use external storage works well

fileURL=externalStorage.getExternalFilesDir(externalStorage.sdCardPath()).."/Android/data/com.solar2d.app.Donzda/"

local baseURLVideo=fileURL..'Grades/Grade1/subjects/portugues/videos/topicos/'..trimestre.."T/U"..unidade.."/"
   media.playVideo( baseURLVideo.."1.mp4", true, onComplete )  

I would copy the video file to app documents directory before playing