This tutorial is about starting a mobile project with Xamarin si C#.
I used my mobile phone to test the default starting project from Visual Studio 2019.
First, you need to install Xamarin with the Visual Studio Installer software.
Then start the default project on Visual Studio 2019.
Create a new project by select Mobile from the Project type drop-down and select the Mobile App (Xamarin.Forms).
You need to agree with the Android SDK required to build projects show by a window dialog.
The next step is to configure the device: your phone or virtual device.
You can set a virtual device, see the official webpage.
I set my mobile phone and I need to set it for development mode.
I follow these steps:
- Plug your device into your computer;
- Go to the Settings screen;
- Find Build number by using the search area at the top of the settings screen;
- Tap on Build number until “You are now a developer!” pops up;
- Go back to the Settings screen;
- Try to set USB debugging on your settings phone.
- When all settings are ok, the phone will show the encrypted key for connection;
- Press the Finish button;
Now you can test the default project using build and run on mobile phone device.
You will see the result on the mobile phone.
I start the Android Device Monitor to see how this project works.
You can capture a screenshot or a dump with your application, see the next screenshot with the default dump project: