Android NotePad Tutorial 1 : Crash when I click on "Menu"
<p>I am a beginner with Android, and I have a strange bug with the <code>NotePad Tutorial</code> (Exercice 1).
<a href="http://developer.android.com/resources/tutorials/notepad/index.html" rel="nofollow">http://developer.android.com/resources/tutorials/notepad/index.html</a></p>

<p>I imported the sources and completed the code, but when I run the app, and click on the "Menu" button, it crashes (The application .... has stopped unexpectedly. Please try again.)</p>

<p>Then, I imported the solution, and it works normally.</p>

<p>I copied the whole code, resources, manifest from the solution to the first Project ... and still, everything is good with the first project, but when I click "Menu", I have the same crash.</p>

<p>Can someone explain where am I making a mistake?</p>

<p>After some researches, I opened the LogCat.
Here are the lines that seems interesting :</p>

<pre><code>Displayed activity com.android.demo.notepad1/.Notepadv1: 1261 ms (total 1261 ms)
No keyboard for id 0

Using default keymap: /system/usr/keychars/qwerty.kcm.bin

getEntry failing because entryIndex 2 is beyond type entryCount 2

Failure getting entry for 0x7f040002 (t=3 e=2) in package 0: 0x80000001

Shutting down VM

threadid=3: thread exiting with uncaught exception (group=0x4001b188)

Uncaught handler: thread main exiting due to uncaught exception

android.content.res.Resources$NotFoundException: String resource ID #0x7f040002
</code></pre>

<p>I noted that <code>0x7f040002</code> refers to the <code>"menu_insert"</code> string in <code>R.java</code></p>
