Guest User

Untitled

a guest
Dec 9th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. b.setOnClickListener(new OnClickListener() {
  2. public void onClick(View arg0) {
  3. Log.d("DEBUGTAG", "Trololololol");
  4. // Place code to handle Button-Click here.
  5.  
  6. Intent i = new Intent(MobScredActivity.this,
  7. SelectPersonActivity.class); /*
  8. * Send intent to the OS to
  9. * make * it aware that we
  10. * want to start *
  11. * MySecondActivity as a
  12. * SubActivity.
  13. */
  14.  
  15. Bundle b = new Bundle();
  16. b.putString(amount, "moi");
  17. i.putExtras(b);
  18.  
  19. startActivityForResult(i, 0x1337);
  20.  
  21. }
  22.  
  23. });
Add Comment
Please, Sign In to add comment