Advertisement
nguyenvanquan7826

MainAcitivity.java

Jul 4th, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. package android.activity;
  2.  
  3. import android.os.Bundle;
  4. import android.app.Activity;
  5. import android.content.Intent;
  6. import android.view.View;
  7. import android.view.View.OnClickListener;
  8. import android.widget.Button;
  9. import android.widget.EditText;
  10. import android.widget.TextView;
  11. public class MainActivity extends Activity
  12. {
  13. @Override
  14. protected void onCreate(Bundle savedInstanceState)
  15. {
  16. super.onCreate(savedInstanceState);
  17. setContentView(R.layout.activity_main);
  18. final TextView Show = (TextView) findViewById(R.id.KQ);
  19. final Button Click = (Button) findViewById(R.id.TBC);
  20. Click.setOnClickListener(new OnClickListener()
  21. {
  22. @Override
  23. public void onClick(View v)
  24. {
  25. Intent myIntent = new Intent(getApplicationContext(), TrungBinhCong.class);
  26. startActivity(myIntent);
  27. }
  28. });
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement