A day with .Net

My day to day experince in .net

Android development with c#

Posted by vivekcek on February 5, 2012

Software Requirements
———————

1. Visual studio 2010

2. If you have previous installation of android SDK manger update it latest version.

3. You must have API LEVEL 14 and its ARM image file installed in android SDK.

4. Go to http://xamarin.com/monoforandroid and download evaluation version of ‘mono for android’ for windows.

5. xamarin installer will install.

    a) JDK 1.6.
    b) ANDROID SDK(if installed earlier,the installer will skip SDK installation).
    c) GTK C#.
    d) Mono develop(an alternative for visual studio).
    e) Mono for android.

6. Xamarin will install all the above components, If anything went wrong you can found setup’s in C:\Users\vivek \AppData\Local\Temp.

Apply a date modified sort in your temp folder to get .exe for all individual software’s.

CREATE AN EMULATOR
——————

1. Open Visual Studio 2010.

2. Click On Tools, Select ‘Start android emulator manager’.

3. On the emulator manager ensure API 14 SDK and ARM EABI V7a image are installed.

4. On the emulator manager click Tools and select ‘Manage AVDs’.

5. Create a new AVD with API LEVEL 14 and 512 MB ram.

6. Start newly created AVD.

CREATE APPLICATION
——————

1. Ensure your emulator is running.

2. In visual studio create new project using template ‘MonoAndroidApplication’.

3. The template will create an Activity.cs file.

4. Click debug, select emulator

It will take some time to install mono framework and your app to deploy in emulator


STEPS WITH PICS

—————

1. Create AVD

a) Open emulator

b) Manage AVD

c) Create AVD

2. Create Visual studio project

3. Checking package API 14 components

4. Final

Advertisements

3 Responses to “Android development with c#”

  1. justinvtom said

    Good Job…
    Thanks a lot For the information-sharing…

  2. fireydude said

    You have said, ‘download evaluation mono for android’. What are the limitations of the evaluation version.

    There is not much point in using this if you cannot deploy it onto google Play.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s