Back to project page QuizGame.
The source code is released under:
GNU General Public License
If you think the Android project QuizGame 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.splineyellow.quizgame; // www .j ava 2 s .c om import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; // Copyright SplineYellow - 2014 /* Classe per la visualizzazione delle partite in corso di svolgimento. */ /* TODO Classe da implementare per ottenere quanto prefissato. */ public class ListGamesActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_list_games); setTitle("Elenco Partite"); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.list_games, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); return id == R.id.action_settings || super.onOptionsItemSelected(item); } @Override public boolean onPrepareOptionsMenu(Menu menu) { MenuItem item = menu.findItem(R.id.action_settings); try { item.setVisible(false); } catch(NullPointerException n) { n.printStackTrace(); } return super.onPrepareOptionsMenu(menu); } }