protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); AndroidAppUtilities.SetContext(this); // Check if there are apps to take pictures, then create a directory for the pictures if none exists. if (AppExistsToTakePictures()) { String filename = Intent.GetStringExtra(fileNameForPictures); String dirname = Intent.GetStringExtra(directoryNameForPictures); CreateDirectoryForPictures(filename, dirname); TakeAPicture(); } }
protected override void OnRestart() { base.OnRestart(); AndroidAppUtilities.SetContext(this); }