A simple to implement and use camera and gallery importer for Android.
Allows the user to select an image from gallery or take a photo as a sprite.
Can tell you if the user denied the camera permission, cancelled taking the photo, or took the photo and have it loaded.
Call one function to launch the camera:
AndroidCamera_Camera()
Or to open the gallery selector:
AndroidCamera_Gallery()
And one line of code in the Social Asynchronous event:
sprite_index = AndroidCamera_GetPicture(async_load);
See the included demo for a fully working example.
Important: Set your target SDK in Android settings to 23. (Or if it is already lower, leave it).
Need an Android extension or SDK Implementation?
End User Licence Agreement (EULA).
Added code to correct the orientation of pictures in landscape and portrait respectively