Exception finding a layout file
<p>I keep getting google play crash reports with FileNotFoundException exception</p>

<pre><code>java.io.FileNotFoundException: res/layout/newday.xml
at android.content.res.AssetManager.openXmlAssetNative(Native Method)
at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:533)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2132)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2105)
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 com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:262)
at android.app.Activity.setContentView(Activity.java:1867)
at com.mycompany.myapp.activities.NewDayActivity.onCreate(SourceFile:75)
at android.app.Activity.performCreate(Activity.java:5008)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2035)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2096)
at android.app.ActivityThread.access$600(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1207)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:213)
at android.app.ActivityThread.main(ActivityThread.java:4787)
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:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
at dalvik.system.NativeStart.main(Native Method)
</code></pre>

<p>My app's package is com.mycompany.myapp. This does not happen very often. Also users that are complaining about this issue say that this happens in 50% of cases. What could be wrong with that?</p>

<p>In activity, i use this method</p>

<pre><code>protected void onCreate(Bundle arg0) {
    super.onCreate(arg0);
    setContentView(R.layout.newbodymeasureday);
}
</code></pre>

<p>in super.onCreate(arg0) I have have this</p>

<pre><code>getWindow().setFormat(PixelFormat.RGBA_8888);
</code></pre>

<p>and I also have a theme changing in this super call</p>

<pre><code>String theme = SharedPrefsUtils.getCustomTheme(act);
String[] codes = act.getResources().getStringArray(R.array.themes_codes);
if (theme != null &amp;&amp; theme.equals(codes[1])) {
    act.setTheme(R.style.GymGymTheme);
    Log.d(TAG, "Theme Light");
}
</code></pre>
