This question already has an answer here:
- Display Animated GIF 29 answers
I'm trying to display gif images on Android. I found this code on SO, which is said a correct solution by some users :
webView wView = new webView(this);
wView.loadUrl("file:///android_asset/piggy.gif");
setContentView(view);
It says my gif file should be in assets folder. What should I do if my gif file is in drawable folder? And shouldn't the last line be like this :
setContentView(wView);
Other than this, if you have an easy solution for displaying gifs on Android, I can accept. Thanks.