A day with .Net

My day to day experince in .net

Archive for the ‘Android c#’ Category

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

Posted in Android c# | Tagged: , , | 3 Comments »