title: Caused by: android.content.res.Resources$NotFoundException: File from drawable resource ID #0x7f0a0018
body: <p>I looked in the R.java file for the resource ID and the ID is a string. The string is the name of my app </p>
  
  <pre><code>&lt;string name="AppName"&gt;Tip Calculator&lt;/string&gt;
  </code></pre>
  
  <p>Please help. Thank you in advanced.</p>
  
  <p>LogCat:</p>
  
  <pre><code>.MainActivity}: android.content.res.Resources$NotFoundException: File Tip Calculator from drawable resource ID #0x7f0a0018
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.app.ActivityThread.access$900(ActivityThread.java:161)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.os.Handler.dispatchMessage(Handler.java:102)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.os.Looper.loop(Looper.java:157)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.app.ActivityThread.main(ActivityThread.java:5356)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at java.lang.reflect.Method.invokeNative(Native Method)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at java.lang.reflect.Method.invoke(Method.java:515)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at dalvik.system.NativeStart.main(Native Method)
  05-01 22:37:50.979: E/AndroidRuntime(6140): Caused by: android.content.res.Resources$NotFoundException: File Tip Calculator from drawable resource ID #0x7f0a0018
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.content.res.Resources.loadDrawable(Resources.java:3030)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.content.res.Resources.getDrawable(Resources.java:1586)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at com.android.internal.widget.ActionBarView.setLogo(ActionBarView.java:1031)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at com.android.internal.policy.impl.PhoneWindow.setDefaultLogo(PhoneWindow.java:1568)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.app.Activity.initActionBar(Activity.java:1997)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.app.Activity.setContentView(Activity.java:2011)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at net.jamesbrookshire.tipcalc.MainActivity.onCreate(MainActivity.java:22)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.app.Activity.performCreate(Activity.java:5426)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     ... 11 more
  05-01 22:37:50.979: E/AndroidRuntime(6140): Caused by: java.io.FileNotFoundException: Tip Calculator
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.content.res.AssetManager.openNonAssetNative(Native Method)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.content.res.AssetManager.openNonAsset(AssetManager.java:408)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     at android.content.res.Resources.loadDrawable(Resources.java:3021)
  05-01 22:37:50.979: E/AndroidRuntime(6140):     ... 20 more
  </code></pre>
  
  <p>I resolved my problem by starting a new project and adding my old code to the project a little each time and debugging each time. The cause of my problem was in my "MainActivity.java". I had some bad code that wasn't picked up by the debugger. Sorry this was and isn't very clear. Thanks to everyone who responded.</p>