-1

My question is very simple. I want to send from an activity (A) an intent that containing another intent and retrive data on activity (B).

I look this post, but is not explained how get information.

EDIT: For better comprehension, I get this intent result from ActivityResult and i want to pass it to another. I post the code:

 public void onActivityResult(int request, int response, Intent data) {
        super.onActivityResult(request, response, data);
        Intent i = new Intent(this,RoomActivity.class);
        //How to put the extra data intent?
        startActivity(i);
       //How get data in RoomActivity ?
Community
  • 1
  • 1
giuseppe trubia
  • 142
  • 1
  • 13

1 Answers1

0

Write a pojo class to save your data and make it Parcelable then putExtra("yourKey",dataObject) in Activity A. Use getIntent().getExtras().getParcelable("yourkey") to get your object in Activity B.

Tony Zai
  • 26
  • 1
  • 5