I made my own file explorer, and seems like LFS dont like utf8 Keep that in mind.
Also, I did some test in Android player and the only 2 folders that I am allowed to see is "/mnt/" and "/mnt/user". In every other case Im gettin "permission denied" error. Is that because of the player or not?
I have been playing around with the gmedia plugin for android. I have modified 2 functions: getPicture() and savePicture(). Now those functions can deal with any files For example for an image:
local source = Pixel.new(0xffff00, 0.75, 128, 128)local rt = RenderTarget.new(source:getWidth(), source:getHeight())
rt:draw(source)local myfilepath ="|D|mysavedpicture2.png"
rt:save(myfilepath)local media = Media.new(myfilepath)
mediamanager:postPicture(myfilepath)
And for a text file:
local myfilepath2 ="files/text_file01.txt"local media = Media.new(myfilepath2)
mediamanager:postPicture(myfilepath2)-- = save picture (now save file really)
+ now you can name the file too + I migrated to androidx as (at)hgy29
Comments
Keep that in mind.
Also, I did some test in Android player and the only 2 folders that I am allowed to see is "/mnt/" and "/mnt/user". In every other case Im gettin "permission denied" error. Is that because of the player or not?
Likes: MoKaLux
EDIT: Link to an updated dll here: http://hieroglyphe.net/gideros/lfs.dll
Likes: rrraptor
http://forum.giderosmobile.com/discussion/comment/63302/#Comment_63302
also added application permissions to the wiki:
https://wiki.giderosmobile.com/index.php/Application
it's quick and dirty, I'll do it later I guess, I need to check github to see all permissions available.DONE https://wiki.gideros.rocks/index.php/Application:checkPermission + https://wiki.gideros.rocks/index.php/Application:requestPermissions"attempt to call method 'requestPermission' (a nil value)"
EDIT:
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Now those functions can deal with any files
For example for an image:
+ I migrated to androidx as (at)hgy29
(minor issue would be to rename those functions)
TESTED ON ANDROID 10 (samsung J6)