GIFView
GIFView copied to clipboard
The Gif has not been initialized yet
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.al_rehman.dawatiapp/com.al_rehman.dawatiapp.activities.Tasbeeh}: java.lang.IllegalStateException: the gif has not been initialized yet
After View initialized GifView Implementation,
gifView1.setGifResource("asset:tashbeeh_counter"); gifView1.start();
After Click on Button.
private void runHandler() {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
gifView1.stop();
if (m != null) {
if (m.isPlaying()) {
m.stop();
m.release();
m = new MediaPlayer();
}
}
}
}, 1200); // wait for 2 seconds
calculation();
gifView1.start();
if (isAudioAllow)
playBeep();
}
PlayBeep Method is just only for using playing Beep for 1 second only.
Caused by: java.lang.IllegalStateException: the gif has not been initialized yet
@Gavras can you please help me to resolve that issue asap.
Thanks you.