Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom ProgressDialog with Indeterminate Drawable not working
    primarykey
    data
    text
    <p>I have a Custom ProgressDialog with an custom drawable called on preexecute of an Async task as below</p> <pre><code> private ProgressDialog progressDialog = new ProgressDialog(BNMlogin.this); @Override protected void onPreExecute() { progressDialog.setMessage("Authenticating Credentials...."); progressDialog.setIndeterminate(true); progressDialog.setIndeterminateDrawable(getResources().getDrawable(R.drawable.progress_dialog_icon_drawable_animation)); progressDialog.show(); } </code></pre> <p>The drawable is an animation list </p> <pre><code>&lt;item android:drawable="@drawable/icon_progress_dialog_drawable_1" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_2" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_3" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_4" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_5" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_6" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_7" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_8" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_9" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_10" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_11" android:duration="150" /&gt; &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_12" android:duration="150" /&gt; </code></pre> <p></p> <p>Its crashing with the following error ......</p> <pre><code>11-27 15:30:43.439: E/AndroidRuntime(24834): at java.lang.reflect.Constructor.newInstance(Constructor.java:417) 11-27 15:30:43.439: E/AndroidRuntime(24834): at android.view.LayoutInflater.createView(LayoutInflater.java:594) 11-27 15:30:43.439: E/AndroidRuntime(24834): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f01006a a=-1} 11-27 15:30:43.439: E/AndroidRuntime(24834): at android.content.res.Resources.loadDrawable(Resources.java:2063) 11-27 15:30:43.439: E/AndroidRuntime(24834): at android.content.res.TypedArray.getDrawable(TypedArray.java:601) 11-27 15:30:43.439: E/AndroidRuntime(24834): at android.view.View.&lt;init&gt;(View.java:3364) 11-27 15:30:43.439: E/AndroidRuntime(24834): at android.view.View.&lt;init&gt;(View.java:3293) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload