I've posted my problem on the tread about the Gif Decoder library, but no answer yet. I think it will be more visible here.
I've got a problem with the gif decoder library.
In the following app, if I check "G" and "A" and click the button "1", it works. After this, if I check "B" and click again on the button "1", it crash with this error message : " java.lang.ArrayIndexOutOfBoundsException: length=47400; index=47400 "
Based on that post, I added one line to your program and it seems to work OK. In the sub img_load, I added the line as shown below.
Sub img_load
gif.DisposeFrames
' Added this code
Dim gif As GifDecoder
' End of addition
....rest of code unchanged...
With that change, I can get it to execute images in any order with no problem.
By the way, in Activity_Create, you initialize the time every time that executes. You should place that in a conditional so it is only initialized the first time through:
If FirstTime Then
Timer1.Initialize("Timer1",0)
End If