Android Permissions - Help!

Hello everyone! I am trying to request the WRITE_EXTERNAL_STORAGE android permission, which is considered a dangerous permission. I need help understanding this: https://docs.coronalabs.com/native/android/permissionSupport.html

The examples written on that page are not in lua… what is going on?? How the heck do I actually utilize these PermissionsServices() functions in lua?? I have tried requiring “com.ansca.corona.permissions.PermissionsServices” which is the class which provides these permissions API’s, to no avail. I have searched the internet high and low for answers and found nothing… I can’t be the only one having issues with this??

EDIT: I’ve found my main issue which is I’m not using Solar 2D Native, I’m using simulator. I guess this isn’t possible to do without getting Native? Is it easy to transfer a project over and implement this if that’s what I have to do?

Hello Scoba,

You may want to check out the example code at the bottom of this page, under “Handling Android 6 Device ID”, if you have not already done so.

https://docs.coronalabs.com/api/library/system/getInfo.html

Here is another page that may be useful to visit, if you have not already done so,

https://docs.coronalabs.com/api/library/native/showPopup.html#requestapppermission

This helps a ton!! Thank you!