Introduction
Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows phone, Android, iOS).
In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.
Prerequisites
- Visual Studio 2015 Update 3.
The steps, mentioned below are required to be followed in order to update the contact profile in Xamarin Android app, using Visual Studio 2015.
Step 1
Click File--> select New--> select Project. The project needs to be clicked after opening all the types of projects in Visual Studio or click (Ctrl+Shift+N).

Step 2
After opening the New Project, select Installed-->Templates-->Visual C#-->Android-->choose the Blank app (Android). Now, give your Android app; a name (Ex:sample) and give the path of your project. Afterwards, click OK.

Step 3
Go to Solution Explorer. In Solution Explorer, get all the files and sources in your project.
Select Resource-->Layout-->double click to open main.axml page. To write XAML code, you need to select the source.
You can design your app, if you want to, design and choose the Designer Window.

Step 4
After opening main.axml, file will open the main page designer. In this page, you can design the page as per your wish.
Now, delete the Default hello world button. Go to the source panel and you can see the button coding. You need to delete it.
After deleting XAML code, now delete C# button action code. Go to the MainActivity.cs page and you need to delete the button code.

Step 5
Now, go to the toolbox Window. In the toolbox Window, get all the types of the tools and controls.
You need to go to the toolbox Window. Now, scroll down and you will see all the tools and controls.
You need to drag and drop the two buttons.

Step 6
Now, go to the properties Window. You need to edit the first button's Id value and text value.
(EX:android:id="@+id/getContactsButton"android:text="@string/getContacts" ).

Step 7
Now, go to the properties Window. You need to edit the second button's Id value and text value.
(EX:android:id="@+id/updateProfileButton"android:text="@string/updateProfile").

Step 8
In this step, go to the Main.axml page Source Panel. Note, the button's Id value.
Main.axml
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent">
- <Button android:id="@+id/getContactsButton" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/getContacts" />
- <Button android:id="@+id/updateProfileButton" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/updateProfile" />
- </LinearLayout>

Step 9
In this step, open the String.xml page. Go to the Solution Explorer-->Resource-->values-->String.xml.

Step 10
After opening String.xml file, write XML code mentioned below.
String.xml
- <?xml version="1.0" encoding="utf-8"?>
- <resources>
- <string name="getContacts">Get Contacts</string>
- <string name="updateProfile">Update Profile</string>
- <string name="ApplicationName">contactinfo</string>
- </resources>











Prabhat MauryaPosted Nov 10, 2016, 2:01 AM
Hey Can you please write blog for employee directory which is having functionality like creating profile, searching profiles using name and get auto suggestions , n able to update the profile.