Author: Not specified Language: text
Description: Not specified Timestamp: 2013-06-17 19:27:17 +0000
View raw paste Reply
  1. package com.example.gamerandomizer;
  2.  
  3. import android.app.Activity;
  4. import android.content.Intent;
  5. import android.os.Bundle;
  6. import android.view.Menu;
  7. import android.view.View;
  8.  
  9. public class MainScreen extends Activity {
  10.  
  11.     @Override
  12.     public void onCreate(Bundle savedInstanceState) {
  13.         super.onCreate(savedInstanceState);
  14.         setContentView(R.layout.activity_main_screen);
  15.      
  16.         String aGames[] = {};
  17.         System.out.println(aGames);
  18.     }
  19.  
  20.  
  21.     @Override
  22.     public boolean onCreateOptionsMenu(Menu menu) {
  23.         // Inflate the menu; this adds items to the action bar if it is present.
  24.         getMenuInflater().inflate(R.menu.main_screen, menu);
  25.         return true;
  26.     }
  27.     public void openGames (View view) {
  28.         Intent intent = new Intent(this, GameSelection.class);
  29.         startActivity(intent);
  30.     }
  31.     public void openTags (View view) {
  32.         Intent intent = new Intent(this, TagSelection.class);
  33.         startActivity(intent);
  34.     }
  35.    
  36.    
  37. }
View raw paste Reply