Showing posts with label Monodroid. Show all posts
Showing posts with label Monodroid. Show all posts

Thursday, March 10, 2011

Hello world on monodroid

I started with monodroid recently . When you start you notice the programming structure is very different.
Droid stuff starts off with a Activity class. this is where the application starts, its like our very own program.cs.
Lets begin at the beginning
in visual studio 2010, the android template see installation instructions here : http://mono-android.net/Installation
visual studio writes a start up application for you. once you  run it http://mono-android.net/Tutorials/Hello_World
the emulator starts off and the program is deployed to the emulator.
I directly ran the code VS wrote, and it did come up with a decent looking program that had a button that counted the number of clicks.
The code in the class itself is not used for the UI, there is a Xaml file that is used for this purpose.
I will work on creating some UI and update  soon hopefully.

Monday, February 14, 2011

monodroid

Java was never my forte, I did some Java swing apps in college for academic purposes, and that was it, so I was kind of hesitant to try out Android development, I started off from this site http://developer.android.com/resources/tutorials/hello-world.html
Now there is this android development in .Net with C# :) http://monodroid.net/
and yes it can be done right from VS 2010 see here http://monodroid.net/Tutorials/Hello_World The thing is the process starts off with installing Android SDK and configuring a simulator and install the plugin see here http://monodroid.net/Installation

Mono for Android also offers the following:
  • The same OpenTK library popular among .NET developers on Windows, Linux, iPhone, allowing you to share the same OpenGL logic across platforms.
  • Support for the full JIT (unlike iOS)
  • Templates for C# (but other .NET compilers should work, if they reference MonoDroid's libraries).
  • Last, but certainly not least, MonoDroid is now supported on Mac OS X.
source : http://www.androidguys.com/2011/01/06/mono-android-open-developer-testing/