Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving an image to the gallery does not work for Android 10 and higher versions #178

Open
AleCGames opened this issue Oct 28, 2024 · 0 comments

Comments

@AleCGames
Copy link

display.captureBounds it’s not saving to the Gallery for Android 10 and higher versions. I have tested in my new phone Realme c21 (Android 10) and it does not work. My code do work because I’ve tested it before in my old phone (Android 6).

A portion of my code:

local myImageBounds = {
xMin = imagenDeFondo.contentBounds.xMin,
xMax = imagenDeFondo.contentBounds.xMax,
yMin = imagenDeFondo.contentBounds.yMin,
yMax = imagenDeFondo.contentBounds.yMax
}
local captureObj = display.captureBounds( myImageBounds, true )

I also added the following permission in my build.settings file:
“android.permission.WRITE_EXTERNAL_STORAGE”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant