protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.activity_main); if (bundle == null) { FragmentTransaction transaction = FragmentManager.BeginTransaction(); var fragment = new RuntimePermissionsFragment(); transaction.Replace(Resource.Id.sample_content_fragment, fragment); transaction.Commit(); } // This method sets up our custom logger, which will print all log messages to the device // screen, as well as to adb logcat. InitializeLogging(); }
protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.activity_main); layout = FindViewById (Resource.Id.sample_main_layout); if (bundle == null) { Android.App.FragmentTransaction transaction = FragmentManager.BeginTransaction (); var fragment = new RuntimePermissionsFragment (); transaction.Replace (Resource.Id.sample_content_fragment, fragment); transaction.Commit (); } // This method sets up our custom logger, which will print all log messages to the device // screen, as well as to adb logcat. InitializeLogging (); }