This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 4th, 2012  |  syntax: Java  |  size: 0.80 KB  |  views: 91  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package com.testing.blockinvasion;
  2. import android.app.Activity;
  3. import android.content.Intent;
  4. import android.os.Bundle;
  5. import android.view.View;
  6.  
  7.  
  8. public class mainmenu extends Activity {
  9.        
  10.         /** Called when the activity is first created. */
  11.            @Override
  12.            public void onCreate(Bundle savedInstanceState) {
  13.               super.onCreate(savedInstanceState);
  14.               setContentView(R.layout.main);
  15.              
  16.            }
  17.            
  18.            
  19.            public void launch(View v)
  20.            {
  21.                         Intent i = new Intent();
  22.                         i.setClassName("com.testing.blockinvasion", "com.testing.blockinvasion.game");
  23.                         startActivity(i);
  24.            }
  25.            
  26.            public void howto(View v)
  27.            {
  28.                         Intent i = new Intent();
  29.                         i.setClassName("com.testing.blockinvasion", "com.testing.blockinvasion.howto");
  30.                         startActivity(i);
  31.            }
  32.            
  33. }
clone this paste RAW Paste Data