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

Updating the MainActivity class to call the PhotoLibrary Activity

Now that we have created our PhotoLibraryActivity class and have implemented the necessary method calls, our next step is to make some changes to the MainActivity class, so that it calls our PhotoLibraryActivity class.

The MainActivity class is the main class that gets called from any Android application upon launching, so we will need to make some changes so that our PhotoLibraryActivity will be displayed when our application launches.

Let's start by updating the MainActivity class for our PhotoLibrary app by performing the following steps:

  1. Open the MainActivity.cs file, which is located as part of the PhotoLibrary group, ensure that it is displayed in the code editor, and ...

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