O'Reilly logo

Mobile DevOps by Jhalak Modi, Rohin Tak

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

Handling user interactions

User interaction is the most important aspect of developing a mobile application. A mobile app should be interactive and easy to use.

In this basic application, we will be writing our user interaction code in C# and it will be part of the MainActivity.cs file:

  1. Let's click on the MainActivity.cs file from the Solution Explorer on the left and open it:

It has some autogenerated code that we are going to modify in order to make our application work.

  1. We need to write our code inside the OnCreate() method of the MainActivity.cs file:

Before we start writing user interaction code, let's understand the autogenerated ...

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