Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (27 sloc) 0.904 kb
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace HelloMultiScreen
[Activity (Label = "SecondActivity")]
public class SecondActivity : Activity
protected override void OnCreate (Bundle bundle)
base.OnCreate (bundle);
// Load the UI defined in Second.axml
SetContentView (Resource.Layout.Second);
// Get a reference to the TextView
var label = FindViewById<TextView> (Resource.Id.screen2Label);
// Populate the TextView with the data that was added to the intent in FirstActivity
label.Text = Intent.GetStringExtra("FirstData") ?? "Data not available";
Jump to Line
Something went wrong with that request. Please try again.