title: How to apply custom spinner image to progress dialog in android
body: <p>hi i tring to apply custom spinner image to progress dialod in android i use a .gif file for this purpose,and i apply it through this code,</p>
  
  <pre><code>dialog = new ProgressDialog(BackupRestoreActivityContext);    
  dialog.setCancelable(true);    
  dialog.setIcon(resId);    
  dialog.setTitle(title);    
  dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);    
  dialog.setIndeterminate(true);
  dialog.setIndeterminateDrawable(BackupRestoreActivityContext.getResources().getDrawable(R.drawable.bar));    
  dialog.show();
  </code></pre>
  
  <p>through this code Spinner image changed to bar.gif but it is not spinning,
  please kindly help me whats wrong with this,thanks any help in this regard is greatly appreciated.</p>