Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MainActivity extends ActionBarActivity {
- @Override
- public void onClick(View view) {
- Intent intent = new Intent(this, Anotherctivity.class);
- intent.putExtra("KEY", "content");
- startActivity(intent);
- }
- }
- // in another activity
- public void onClick(View v) {
- finish(); // completely destroy current activity
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement