I'm looking for some guidance on how to split a GIF file into its frames and store them in bitmaps. I do not need to be able to view the frames, or store any metadata. I need the bitmaps to be able to obtain pixel colours for each. This app is for an Android 11 device.
I have the GIF stored in an input stream:
InputStream inputStream = getContentResolver().openInputStream(uri);
where the uri is the uri for the GIF.
I have read this and this however I'm not able to see how they could be implemeted into my project. I am not experienced with java and Android Studio. Is this possible to integrate with Gradle, or any other libraries? If so how?