Introduction
Xamarin is a platform to develop cross-platform and multi-platform apps (Ex. Windows phone, Android, iOS). The code-sharing concept is used in Xamarin. The Xamarin Studio is available in the Visual Studio also.
How to compose and send email using Intent
Prerequisites
- Visual Studio 2015 update 3
The following steps are needed to be followed in order to send the Email using Intent in Xamarin Android app.
Step 1
Click File--> New--> Project, or click (Ctrl+Shift+N). This will open the list of all types of projects available in Visual Studio.

Step 2
Select Installed --> Templates --> Visual C# --> Android --> choose the Blank App (Android).
Next, give your Android app a name (Ex:sample) and assign the path of your project. Click OK.

Step 3
Next, go to the Solution Explorer and select Resource -->Layout. Double click to open main.axml page. Select either the Source tab or Designer tab depending on your expertise of designing the application.

Step 4
The main.axml file will open in the main page designer.

Delete the Linear Layout and default "hello world" button by removing the coding from source panel.
Step 5
Next, go to the toolbox window and scroll down until you see all the tools and controls.
Drag and drop a Button to your application.

Step 6
Next, go to the properties window and edit the Button id value and Text value.
(Ex:android:id="@+id/myButton" android:text="@string/buttonText").

Step 7
In this step, go to the Main.axml page Source Panel. Note the Button 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/myButton" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/buttonText" />
- </LinearLayout>









ROHIT SHARMAPosted Jan 2, 2018, 7:10 AM
StartActivity(email); Unhandled Exception: Android.Content.ActivityNotFoundException: <Timeout exceeded getting exception details> Function evaluation time out
Prasanna MuraliPosted Oct 22, 2016, 11:51 AM
Nice post
RajaPosted Oct 21, 2016, 8:32 AM
Good One...