How to reuse existing C# code in Android? -


i have c# network protocol library (about 5000 loc) want reuse in android app. protocol change in future.

what way this?

  • port library java/android?
  • use sort of c# java converter this. build java library source , use in android app?
  • build android service xamarin.android (monodroid) , write native android app uses service?
  • other options?!

if looking make android app , using java isn't requirement, xamarin.android solution. way build app pretty same java. still have resource files , axml files, etc. main difference use c# instead of android.

there has been anecdotes .net vm runs faster android's dalvik jvm. possible c# code run faster java port.

the alpha channel of xamarin studio has initial support pcls if have library pcl may turn out easy plug in.

you may want check out discussion sense of pros , cons of c# vs. java: monodroid vs java in android development?

you can use website scan lib see how mobile friendly is: http://scan.xamarin.com/


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -