The following is a popup message I get on an Android Emulator running 1.5 -->
The application Android Sample Mobile App (process com.mycompany.mobile.android) has stopped unexpectedly. Please try again.
This occurs when I click on the device's menu button; the menu comes up with an exit icon...which does the following when selected..
public boolean onOptionsItemSelected(MenuItem item) {
// Handle item selection
switch (item.getItemId()) {
case R.id.exit:
this.finish();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
In other Android versions this code works fine.