0

My goal is to make an android application, which prints a "hello world" text to logcat from C#. I'm thinking of something like this in C#:

using MyLibrary;
namespace Hello
{
    public class HelloWorldClass
    {
        public HelloWorldClass()
        {
            MyLibrary.print("hello world");
        }
    }
}

then in eclipse project:

import Hello;
public class MainActivity extends Activity
{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Hello something = new Hello(); // it would print "hello world" to logcat
    }
}

how can I create that "MyLibrary"? Any related links, references or something that could help?

Gintas_
  • 4,940
  • 12
  • 44
  • 87

1 Answers1

0

Consider using Mono for Android: http://xamarin.com/monoforandroid But it has some disadvantages. Main is Extreme memory consumtion (at least two times more memory is consumed) because it starts its own VM.

Chaosit
  • 1,116
  • 7
  • 21