title: ResourcesNotFoundException: File res/layout/progress_dialog.xml
body: <p>I am getting the following crash log showing progress_dialog.xml is missing on showing a ProgressDialog.</p>
  
  <pre><code>android.content.res.Resources$NotFoundException: File res/layout/progress_dialog.xml from xml type layout resource ID #0x109007a
  at android.content.res.Resources.loadXmlResourceParser(Resources.java:2152)
  at android.content.res.Resources.loadXmlResourceParser(Resources.java:2107)
  at android.content.res.Resources.getLayout(Resources.java:857)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:394)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
  at android.app.ProgressDialog.onCreate(ProgressDialog.java:165)
  at android.app.Dialog.dispatchOnCreate(Dialog.java:415)
  at android.app.Dialog.show(Dialog.java:284)
  at com.company.game.MyClass$5.run(MyClass.java:333)
  at android.os.Handler.handleCallback(Handler.java:605)
  at android.os.Handler.dispatchMessage(Handler.java:92)
  at android.os.Looper.loop(Looper.java:137)
  at android.app.ActivityThread.main(ActivityThread.java:4477)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:511)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
  at dalvik.system.NativeStart.main(Native Method)
  Caused by: java.io.FileNotFoundException: res/layout/progress_dialog.xml
  at android.content.res.AssetManager.openXmlAssetNative(Native Method)
  at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487)
  at android.content.res.Resources.loadXmlResourceParser(Resources.java:2134)
  ... 17 more
  </code></pre>
  
  <p>I am not using a custom ProgressDialog. I have given the code below:</p>
  
  <pre><code>public static ProgressDialog mActivityInticator = null;
  
  public static void ShowActivityInticator() 
  { 
    MyActivity.runOnUiThread(new Runnable() 
    { 
      @Override 
      public void run() 
      { 
        if(mActivityInticator == null) 
        { 
          mActivityInticator = new ProgressDialog(context); 
          mActivityInticator.setMessage("Loading..."); 
          mActivityInticator.setCancelable(false); 
        } 
        mActivityInticator.show(); 
      } 
    }); 
  }
  </code></pre>
  
  <p>Can anyone tell me why it is crashing in some devices.</p>