Source attachment does not contain the source for the file MenuInflater.class
<h2>My code is as follows:</h2>

<pre><code>package chapter.seven;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;

public class UserInterface extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

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

<hr>

<p>when I run it through the emulator, I keep getting the following error:</p>

<p>Class File Editor
Source Not Found!</p>

<p>The source attachment does not contain the source for the file MenuInflater.class
You can change the source attachment by clicking change Attached Source below:</p>

<p>I don't understand why it cannot find the MenuInflater.class. I have looked all over the internet and cannot find a solution. Please help!</p>
