Back to project page MobileCodeGenerator.
The source code is released under:
GNU General Public License
If you think the Android project MobileCodeGenerator listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package it.polimi.valtellina; // w w w. ja va 2 s . c o m import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.MenuItem; public class MenuActivity extends Activity { @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.descriptionItem : startActivity(new Intent(this, DescriptionActivity.class)); break; case R.id.turismLocationItem : startActivity(new Intent(this, TurismLocationsListActivity.class)); break; } return true; } }