Duplicate Menu Items Showing Up and One Not Showing at All; Crashing as well
<p>Okay, so I've been doing pretty well with developing my Android App but then I run into this issue. I tried to make another Menu Item to an Option Menu which I've never had problems with before but now, as described in the question, one of the items is showing up twice and another isn't showing up at all and then when I enter the Credits activity it crashes. Below is the codes for the res/menu/menu.xml And MainActivity.java (first one)</p>

<pre><code>@Override 
public boolean onCreateOptionsMenu(Menu menu) { 
MenuInflater inflater = getMenuInflater(); 
inflater.inflate(R.menu.menu, menu); return true; }

@Override 
public boolean onOptionsItemSelected(MenuItem item) { 
// Handle item selection 
switch (item.getItemId()) { 



    case R.id.quit: 
        return true; 

    case R.id.new_game: 
        Intent intent = new Intent(this, New_Game.class); 
        startActivity(intent); 
        return true; 
    case R.id.visit_site: 
        Intent inten = new Intent(this, Site.class); 
        startActivity(inten); 
        return true; 
    case R.id.stay: 
         Intent inte = new Intent(this, MainActivity.class); 
        startActivity(inte); 
        return true; 
    case R.id.credits: 
        Intent i = new Intent(this, Credits.class); 
        startActivity(i); 
        return true; 
    case R.id.exit: 
        Intent in = new Intent(Intent.ACTION_MAIN); 
        in.addCategory(Intent.CATEGORY_HOME); 
        in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
        startActivity(in); 
        finish();
        System.exit(0);
        return true; 



}return false;
}
</code></pre>

<p>Here is the XML Menu</p>

<pre><code> &lt;menu 
xmlns:android="http://schemas.android.com/apk/res/android" &gt;
&lt;item 
    android:id="@+id/visit_site" 
    android:title="Visit the Medieval Site!" /&gt; 
&lt;item 
    android:id="@+id/quit" 
    android:title="Exit"&gt;
    &lt;item
        android:id="@+id/credits"
        android:title="Credits"
    /&gt;

    &lt;menu 
        xmlns:android="http://schemas.android.com/apk/res/android" &gt;
        &lt;item 
            android:id="@+id/stay" 
            android:title="Cancel" 
        /&gt; 
        &lt;item 
            android:id="@+id/exit" 
            android:title="Exit" /&gt;
            &lt;/menu&gt;
    &lt;/item&gt;
&lt;item
    android:id="@+id/new_game"
    android:title="Start the Game"

      /&gt;


      &lt;/menu&gt; 
</code></pre>

<p>I set up the credits as just a normal "Hello World" Activity in the Java file for it Here is the Android Manifest declaration for the activity. I'm including this just in the case that the error was in there by chance.</p>

<pre><code>&lt;activity android:name=".Credits"
        android:label="Application Credits"
        android:configChanges="orientation|keyboardHidden"
        android:screenOrientation="landscape"    &gt;
    &lt;/activity&gt;
</code></pre>

<p>If anybody could please tell me where I messed up and what I need to do tof ix it. </p>

<p>Here is the Credits.java asked by Sam below</p>

<pre><code>  package com.apw.games.rpg.medieval;

import android.app.*;
import android.os.*;
import android.view.*;

public class Credits extends Activity
{


/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.credits);





}


}
</code></pre>
