protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); RequestWindowFeature(WindowFeatures.ActionBar); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); ActionBar.SetIcon(Resource.Drawable.appiconaction); settingsFragment = new SettingsFragment(); settingsFragment.OnSettingsChanged += Synchronize; FragmentManager.BeginTransaction() .Replace(Resource.Id.fragment_container, settingsFragment) .Commit(); googleClient = new GoogleApiClientBuilder(this) .AddApi(WearableClass.Api) .AddConnectionCallbacks(this) .AddOnConnectionFailedListener(this) .Build(); googleClient.Connect(); }
protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); RequestWindowFeature (WindowFeatures.ActionBar); // Set our view from the "main" layout resource SetContentView (Resource.Layout.Main); ActionBar.SetIcon (Resource.Drawable.appiconaction); settingsFragment = new SettingsFragment (); settingsFragment.OnSettingsChanged += Synchronize; FragmentManager.BeginTransaction () .Replace (Resource.Id.fragment_container, settingsFragment) .Commit (); googleClient = new GoogleApiClientBuilder (this) .AddApi (WearableClass.Api) .AddConnectionCallbacks (this) .AddOnConnectionFailedListener (this) .Build (); googleClient.Connect (); }