Click here to Skip to main content
15,912,457 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi Friends,
I have developed a windows application in C#. is there a short and comprehensive way to switch my c# code for android. Or is there some way I can develop Android OS 2.2 or 2.3 applications using Visual Studio.
I can understand Windows and Android have different origins. I am to rewrite all the codes in Java. Can you please suggest the best approach to solve this difficulty.
Thanks for help
Posted
Updated 27-Mar-11 12:28pm
v4

You cannot use the .NET Framework on Android. You might be able to try Mono[^], but you cannot use Visual Studio .NET do do the developement work. I've never heard of anyone using Mono on Android, but it's the open source Linux implementation of CLI.
 
Share this answer
 
Comments
J imran 27-Mar-11 18:55pm    
Thank you Dave,
Can you suggest Mono will work for Android. I am not aware of android fully. I know it is Linux based. Do Linux programs run free in android.
Hope I can make sense for you.
Thank you so much for the help.
Sergey Alexandrovich Kryukov 27-Mar-11 19:22pm    
Dave, I do use Visual Studio on Windows to create application which I run on Linux with Mono, so I don't see why not doing the same on Android.
(I did not vote.)
--SA
Dave Kreskowiak 27-Mar-11 20:22pm    
Because Android is not a full blow implementation of Linux. Unless you test it, there's no way of knowning if it's going to work.
Sergey Alexandrovich Kryukov 27-Mar-11 20:28pm    
I don't care how full is Unix support, to me it was enough to look at Mono platform compatibility page. Android is supported, no matter how.
--SA
Sergey Alexandrovich Kryukov 27-Mar-11 19:30pm    
Please see my Answer.
--SA
Did you remove your previous Question?

I referred to platforms supported by Mono: http://www.mono-project.com/Supported_Platforms[^]. It says you can use Mono with x86 and ARM architectures on Android.

If you can install Mono, you can use Visual Studio (use target platform 3.5 or earlier) for development and run the applications on Android. You have to confine your development by standard libraries or those supported by Mono without recompilation. For example, I develop my applications using System.Windows.Forms and run them on Linux with Mono, even though this library is not standardized with ECMA.

By some reason, my previous Answer disappeared, I have no idea why.

—SA
 
Share this answer
 
Comments
Manfred Rudolf Bihy 27-Mar-11 20:45pm    
This is a not so seldom phenomenon here on CP and has already been targeted in the "Site and Suggestions" forum. Deletion of a question that has already been answered should not be possible to delete if the editor score of OP wouldn't allow for deletion of anybody else's posts.
Besides that it is just "bad form" to delete a question one already received an answer on.
Sergey Alexandrovich Kryukov 27-Mar-11 22:25pm    
Thank you, Manfred.
It remains unknown who did that in each case, and I almost never faced such situation. In some rare situations the page deletion would be a good solution, in case of extremely rude behavior of one of participants which happens from time to time. In one case administration (probably) removed a question on my report of extremely rude behavior of OP; I did not feel comfortable to make this decision myself...
--SA
You also can use xamarin for android development.

http://xamarin.com/platform[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900