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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.