Guest User

Untitled

a guest
Mar 3rd, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public void onBackPressed()
  2. {
  3. //do whatever you want the 'Back' button to do
  4. //as an example the 'Back' button is set to start a new Activity named 'NewActivity'
  5. this.startActivity(new Intent(CreateClient.this,DrawingActivity.class));
  6. return;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment