I have some useful code written in C# and I want to use it in my android app. Can I use it directly, or it is nesessary to rewrite it on Java?
6 Answers
There's a project called Mono for Android, and it gives you the ability to write android apps in C#:
3 Comments
Mono for Android wouldn't be possible.If you are looking to mix C# and Java, then it will probably be more trouble than it is worth. However using Mono for Android and reading this similar question you can find the Droid you are looking for.
Comments
Depending on how many lines of code you are talking about, I would start with one of the size limited demo versions of the several 'csharp to java' code converters available. Google 'csharp to java'. You won't necessarily get perfect, runnable, java code but it will break the back of the conversion exercise for you.
