Quitting an android application
<p>I get that the android application is supposed to follow the Activity lifecycle, and I'm sure I'll get to fully implementing it. For starters though, I'm just trying to close the application when the user selects quit from an options menu, without crashing. Can someone help me out? I have a </p>

<pre><code>public boolean onOptionsItemSelected(MenuItem item){
    switch(item.getItemId()){
    case R.id.quit:
        quit();
        return true;
    default:
        return super.onOptionsItemSelected(item);
    }
}
</code></pre>

<p>Right now R.id is underlined red, saying R.id cannot be resolved, event though i import us.gravebook.geomessage.R.</p>
