Forum Xamarin Xamarin.Android

How to attach a complex data to the Intent

TripleDoubleTripleDouble BGMember ✭✭✭
edited May 2017 in Xamarin.Android

Hi.
I did the Hello, Android Multiscreen: Deep Dive demo. There is attach a simple list of strings(_phoneNumbers).

var intent = new Intent(this, typeof(CallHistoryActivity));
intent.PutStringArrayListExtra("phone_numbers", _phoneNumbers);
StartActivity(intent);

I need to a attach a list of object( from class Customer) to another activity.
How can i do this and is there another way ?

Tagged:

Best Answers

  • TripleDoubleTripleDouble BGMember ✭✭✭
    Accepted Answer

    Thank you for your answer.
    I am passing the properties which are needed for an object to new activity (because they are strings and int) and there make the object.
    Json is a good idea too.

Answers

  • TripleDoubleTripleDouble BGMember ✭✭✭
    Accepted Answer

    Thank you for your answer.
    I am passing the properties which are needed for an object to new activity (because they are strings and int) and there make the object.
    Json is a good idea too.

Sign In or Register to comment.