Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package android.activity;
- import android.os.Bundle;
- import android.app.Activity;
- import android.content.Intent;
- import android.view.View;
- import android.view.View.OnClickListener;
- import android.widget.Button;
- import android.widget.EditText;
- import android.widget.TextView;
- public class MainActivity extends Activity
- {
- @Override
- protected void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- final TextView Show = (TextView) findViewById(R.id.KQ);
- final Button Click = (Button) findViewById(R.id.TBC);
- Click.setOnClickListener(new OnClickListener()
- {
- @Override
- public void onClick(View v)
- {
- Intent myIntent = new Intent(getApplicationContext(), TrungBinhCong.class);
- startActivity(myIntent);
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement