Intent intent = new Intent(this, typeof(SecondActivity)); ArrayList myList = new ArrayList(); myList.Add("Apple"); myList.Add("Banana"); intent.PutStringArrayListExtra("fruits", myList); StartActivity(intent);
Intent intent = new Intent("com.example.ACTION_MY_BROADCAST"); ArrayList myList = new ArrayList(); myList.Add("Hello"); myList.Add("World"); intent.PutStringArrayListExtra("messages", myList); SendBroadcast(intent);In this example, an intent object is created to send a broadcast message. An array list of messages is added to the intent with the key "messages". The broadcast receiver can retrieve this list using the same key to access the value. Package library: Android.Framework