I am trying to save a screenshot to a android device. I have this working in the Corona simulator, I press a button and the screenshot is taken and save to my hard drive but it wont do it on a device.
Here is my build.lua setting, Im not sure if its correct. I thought all I had to do was add “android.permissions.WRITE_EXTERNAL_STORAGE” as a permission but not luck yet.
-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { orientation = { default = "portrait", supported = { "portrait"} }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXXXXXX", -- example scheme for facebook "coronasdkapp", -- example second scheme } } } --]] } }, --Android permissions androidPermissions = { "android.permission.INTERNET", "android.permissions.WRITE\_EXTERNAL\_STORAGE" }, }