Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A -> B -> C -> D-> C
- Intent i = new Intent(new Intent(C.this, D.class);
- startActivityForResult(i, 0);
- Intent i = new Intent();
- i.putExtra(); // insert your extras here
- setResult(0, i);
- protected void onActivityResult(int requestCode, int resultCode,
- Intent data) {
- if (requestCode == PICK_CONTACT_REQUEST) {
- if (resultCode == RESULT_OK) {
- // A contact was picked. Here we will just display it
- // to the user.
- startActivity(new Intent(Intent.ACTION_VIEW, data));
- /*
- can also get the extra sent back through data
- using data.getStringExtra("someKey");
- assuming the extra was a String
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement