protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); stockServiceIntent = new Intent ("com.xamarin.StockService"); stockReceiver = new StockReceiver (); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.StockView); _stockServiceIntent = new Intent(StockService.IntentFilter); _stockReceiver = new StockReceiver(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); _button = FindViewById <Button>(Resource.Id.MyButton); _button.Click += delegate { _button.Text = string.Format("{0} clicks!", _count++); }; _listView = FindViewById <ListView>(Resource.Id.StockItemView); _stockServiceIntent = new Intent(ApplicationContext, typeof(StockService)); _stockReceiver = new StockReceiver(); }