Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package id.aphriell_art.intent;
- import android.content.Intent;
- import android.support.v7.app.AppCompatActivity;
- import android.os.Bundle;
- import android.view.View;
- import android.widget.Button;
- public class MainActivity extends AppCompatActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- Button btnpindah = (Button) findViewById(R.id.btnpindah);
- btnpindah.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- Intent i = new Intent(getApplicationContext(),ActivityKedua.class);
- startActivity(i);
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement