O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interacting with the device camera and photo album

Now that we have made the necessary changes in the AndroidManifest.xml file, we can proceed to implement the remaining instance methods in our PhotoLibraryActivity class, which will complete our PhotoLibrary application.

  1. Open the PhotoLibraryActivity.cs class, which is located in the PhotoLibrary solution, and ensure that it is displayed in the code editor window:
     namespace PhotoLibrary     {         [Activity(Label = "PhotoLibraryActivity", MainLauncher = true, Icon = "@mipmap/icon",                    Theme = "@android:style/Theme.Material.Light.DarkActionBar")]         public class PhotoLibraryActivity : Activity         {             protected override void OnCreate(Bundle savedInstanceState)             {                 base.OnCreate(savedInstanceState); // Set our ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required