title: Play gif animation in alert box
body: <p>I want to play gif animation in alert box. I am trying to build using</p>
  
  <pre><code>public class Fruits extends Activity {
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_fruits);
  
      ImageButton apple = (ImageButton)findViewById(R.id.imageButton1);
      apple.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
  
              AlertDialog.Builder builder = new AlertDialog.Builder(Fruits.this);
              GIFWebView view = new GIFWebView(this, "file:///android_asset/apple.gif");
              setContentView(view);
              builder.create().show();
          }
  
      });
  
  }
  </code></pre>
  
  <p>The GIFWebView Class</p>
  
  <pre><code>public class GIFWebView extends WebView {
  
  public GIFWebView(Context context, String path) {
      super(context);
      loadUrl(path);
      // TODO Auto-generated constructor stub
  }
  
  
  }
  </code></pre>
  
  <p>but unable to.</p>