Get Started With Xamarin.Android App Using Azure Mobile Services

Prerequisites

  • Xamarin Studio or Visual Studio Community Edition
  • Azure account.

Now let's get started with the following steps:

Create a new Azure mobile app backend

Step 1: Sign in to the online Microsoft Azure Portal.

Step 2: In the Jumpbar, click New, then click Web + Mobile, and then Mobile App.



Step 3


In the Mobile App account blade, specify the desired configuration for the Mobile App account (Name, & Resource Group). Click Create button at the bottom of the screen to create the Mobile App.

   
 
Step 4 

In the
Settings blade for the new Mobile App backend, click Quick start > your client app platform (Xamarin.Android) > Connect a database.
 


Step 5
 

In the
Add data connection blade, click SQL Database, then Create a new database, type the database Name, choose a pricing tier and then click Server and New server blade, type a unique server name in the Server name field, provide a secure Server admin login and Password.

 
Configure the server project

Step 1: Back in the Mobile App backend settings, click Quick start > your client platform (Xamarin.Android).

Step 2: Under Create a table API, select your Backend language, either C# or Node.js,



Download and run the Xamarin.Android app

Click Browse All, Mobile Apps, then the backend that you just created. In the mobile app settings, click Quickstart, then Xamarin.Android. Under Configure your client application, click Download. This downloads a complete Windows project for an app pre-configured to connect to your backend and Open the project using Xamarin Studio or Visual studio Tools and ‘Run App' button to build the project and start the app in the emulator.


Similar Articles