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 ...

Get Mastering Xamarin UI Development - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.