Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. package com.sstudio.gearapp;
  2.  
  3. import android.R;
  4. import android.support.v7.app.ActionBarActivity;
  5. import android.os.Bundle;
  6. import android.view.Menu;
  7. import android.view.MenuItem;
  8.  
  9. public class GameActivity extends ActionBarActivity {
  10.  
  11. @Override
  12. protected void onCreate(Bundle savedInstanceState) {
  13. super.onCreate(savedInstanceState);
  14. setContentView(R.layout.activitygame);
  15. }
  16.  
  17. @Override
  18. public boolean onCreateOptionsMenu(Menu menu) {
  19. // Inflate the menu; this adds items to the action bar if it is present.
  20. getMenuInflater().inflate(R.menu.game, menu);
  21. return true;
  22. }
  23.  
  24. @Override
  25. public boolean onOptionsItemSelected(MenuItem item) {
  26. // Handle action bar item clicks here. The action bar will
  27. // automatically handle clicks on the Home/Up button, so long
  28. // as you specify a parent activity in AndroidManifest.xml.
  29. int id = item.getItemId();
  30. if (id == R.id.action_settings) {
  31. return true;
  32. }
  33. return super.onOptionsItemSelected(item);
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement