Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,042 members, 7,956,885 topics. Date: Monday, 23 September 2024 at 09:30 PM |
Nairaland Forum / Science/Technology / Programming / No Java Required: Write Android Apps In C# (7629 Views)
Creating Apps In Kivy By Dusty Phillips. Ebook Download / Some Amazing Apps In The MTN Nextapp Store / [problem] Write A Program In C++ That Finds The Hcf Of 2 Numbers Without Using A Recursive Function (2) (3) (4)
No Java Required: Write Android Apps In C# by Beaf: 2:52pm On Jul 09, 2012 |
[size=14pt]No Java Required: Write Android Apps in C#[/size] XobotOS is a Xamarin-developed project that translated millions of lines of Java to C#. By Keith Ward 05/11/2012 Java is the underlying code for the Android OS. But one company has changed all that, ripping out most of the Java and replacing it with C#. That means .NET developers can code in a familiar language and produce apps that leverage C#'s advantages, including speed increases. It started as a skunkworks project for Xamarin. Xamarin's claim to fame is Mono, an open-source framework allowing Android and iOS apps to be built using C# running on top of Java. Now, with what the company calls the XobotOS Research Project, the Java layer has been removed via a "machine translation of Android from Java to C#," according to a blog post from Xamarin CTO Miguel de Icaza. Building XobotOS involved converting more than a million lines of Java code into C#, de Icaza wrote. A tool called Sharpen was used to help in the translation, and the project resulted in an improved version of Sharpen, de Icaza says. Most of Androids layouts and controls, de Icaza says, have been converted, and to demonstrate, the post includes a Java-free screenshot of XobotOS running on a Linux desktop. In terms of speed improvements, the blog includes a bar chart of a benchmark from a simple binary tree implementation in Java and C#. The chart shows a huge increase in performance between the two languages. Xamarin has made XobotOS available on github. de Icaza says that XobotOS won't be "a focus" going forward, as the company wants to put its efforts toward its core products, Mono for Android and MonoTouch. One other possible benefit of using XobotOS for Android development is that it would eliminate the kind of potential legal entanglements that Google finds itself in with Oracle, the patent-holder for Java. Replacing Java with C# would, of course, inoculate developers from the clutches of Oracle's lawyers. http://visualstudiomagazine.com/articles/2012/05/11/no-java-required-write-android-apps-in-c-sharp.aspx 3 Likes |
Re: No Java Required: Write Android Apps In C# by Beaf: 2:54pm On Jul 09, 2012 |
...And C# casts its conquering eye to the deep ends of the horizon. Nice! Get your copy of the C# Android bundle, here: https://github.com/xamarin/XobotOS/ 1 Like |
Re: No Java Required: Write Android Apps In C# by whoelse(m): 11:28pm On Jul 09, 2012 |
Would have been nice. Problem is its not a focus going forward so we're still kinda stuck with java android. |
Re: No Java Required: Write Android Apps In C# by xterra2(m): 8:55am On Jul 10, 2012 |
Thuis is bad news to me Am a big java fan Java over .NET anyday,anytime 1 Like |
Re: No Java Required: Write Android Apps In C# by Nobody: 2:37pm On Jul 10, 2012 |
2 Likes |
Re: No Java Required: Write Android Apps In C# by xterra2(m): 6:25pm On Jul 10, 2012 |
Well I want users who want to write android app to use java, by force by force Anyway, this doesn't make c# better than java Java all the way 1 Like |
Re: No Java Required: Write Android Apps In C# by gsmcoder: 7:07pm On Jul 10, 2012 |
Java and delphi remains my preferred languages both for mobile and reverse engineering. |
Re: No Java Required: Write Android Apps In C# by pally212(m): 7:12pm On Jul 10, 2012 |
I love java |
Re: No Java Required: Write Android Apps In C# by gsmcoder: 7:16pm On Jul 10, 2012 |
yea, the xamarin seems interesting. playing around with it now. |
Re: No Java Required: Write Android Apps In C# by prodam(m): 7:25pm On Jul 10, 2012 |
yahoo!!! thank God, I have a hope as a .NET developer |
Re: No Java Required: Write Android Apps In C# by betrani(m): 7:41pm On Jul 10, 2012 |
whoelse: Would have been nice. Problem is its not a focus going forward so we're still kinda stuck with java android.Java bit-code developed android in the first instance! By my understanding Sharpen converted Java scripts to C#! I still think programmers would do a lot of coding wit Java which would ve to be converted to C#! C# as a programming language for nw I won't say would alone develop Android OS! I c the scenario of combinin it with Java as is d case with web designin! Php with asp.net, java, html,xml xhtml etc! |
Re: No Java Required: Write Android Apps In C# by Nobody: 7:43pm On Jul 10, 2012 |
i mean it should be possible to write android programs with C# becos java and C# looks a little bit familiar in syntax, but i dunno why Microsoft will allow someone to tamper with c# compiler or license to benefit Google , when its not a windows application or window mobile app, am sure you will have to do a lot of work. i have some questions to ask though? Will this C# support Android XMl integration. What about google api's. how many resources will C# carry. Is there a vast website that shows you how to use this new tool. is there a virtual android where i can run my program for test. 1 Like |
Re: No Java Required: Write Android Apps In C# by lasunray(m): 8:25pm On Jul 10, 2012 |
pls guys, how can I learn JAVA? I'd appreciate positive responses. |
Re: No Java Required: Write Android Apps In C# by xterra2(m): 8:51pm On Jul 10, 2012 |
::gsmcoder::: Good let me know how it goes Please keep me informed prodam: yahoo!!!Have hope, but somethings you can't do with c# you'll have to use java |
Re: No Java Required: Write Android Apps In C# by raynold17(m): 9:27pm On Jul 10, 2012 |
please I use an android phone and I don't understand what u guys are saying should I be worried or what. please translate to English. |
Re: No Java Required: Write Android Apps In C# by prodam(m): 10:41pm On Jul 10, 2012 |
xterra2 If I hear. |
Re: No Java Required: Write Android Apps In C# by Beaf: 11:40pm On Jul 10, 2012 |
xterra2: Well I want users who want to write android app to use java, by force by force I think this argument only takes place in 9ja these days. Lol! C# has risen from being a better Java to becoming the defacto standard for programming languages, Java will never catch up - Oracle is more interested in hounding people over patents. Anyway, every man has his favourite weapon. |
Re: No Java Required: Write Android Apps In C# by Beaf: 11:43pm On Jul 10, 2012 |
I'm really happy about the XobotOS library. It is left for the community to pick it up and run with it; personally, it is going to be of immense benefit to me. I wonder if it will make some .NET GUI portable to the Android platform. .NET GUI tools tend to be much better than anything else out there. |
Re: No Java Required: Write Android Apps In C# by Javanian: 11:49pm On Jul 10, 2012 |
@Beaf i wonder what will be your faith if windows should fall ... |
Re: No Java Required: Write Android Apps In C# by Beaf: 12:02am On Jul 11, 2012 |
Javanian: You mean what would be the Worlds fate. Windows powers 95% of PC's, there is a Windows machine in every home. Simply put, its not gonna happen. |
Re: No Java Required: Write Android Apps In C# by ektbear: 12:17am On Jul 11, 2012 |
Java and C# are quite similar, from what I hear. And Java is pretty easy to pick up, if you are familiar with and C or C++ syntax language. Does it translate your C# source into Java bytecode or something? If not, then you lose access to most of the existing Android libraries. Or have to wait for them to be rewritten. Honestly, not sure how much of an impact this will have. |
Re: No Java Required: Write Android Apps In C# by oshoppy: 12:33am On Jul 11, 2012 |
I am working on a project that requires me to develop an app....please if we have developers in the house that can do this and get paid...please contact me and we can discuss buiz. nice thread. |
Re: No Java Required: Write Android Apps In C# by xterra2(m): 12:48am On Jul 11, 2012 |
ikp4succes: i mean it should be possible to write android programs with C# becos java and C# looks a little bit familiar in syntax, but i dunno why Microsoft will allow someone to tamper with c# compiler or license to benefit Google , when its not a windows application or window mobile app, am sure you will have to do a lot of work. i have some questions to ask though?yes there is a virtual android where you can test your apps i have it installed on my system to test an android app i made note that it is very sluggish, people hate it so i use a friend's phone to test it you can get it by downloading the android sdk, configuring it for the version youre targeting and setting up the avd (android virtual device) and you can test your app raynold17 :You're and android user not a developer you shouldn't worry about it Oya comot for this thread Beaf: I'm really happy about the XobotOS library. It is left for the community to pick it up and run with it; personally, it is going to be of immense benefit to me.I do agree .NET GUI tools are superiod to that of java Chei, beaf so you're among the lazy devs who use GUI ? We did a mysql + java project recently one guy was using code literraly setsize(400,400); e.t.c and I used GUI chei I think sey you be correct programmer so you be lazy programmer like me Nawawo I have seen people using eclipse(no java GUI) for desktop applications :O somebody don kolo Beaf:Except th windows I have in my house is only for visual studio and sql server java, dreamweaver, even browsing all done on a mac Windows is a crappy OS, windows is beyond rubbish, Mac is the way I have visual stuido 2010 ultimate as a startup program go to the windows partition and boom visual studio is open,only for thay I can't use crappy windoze ekt_bear: Java and C# are quite similar, from what I hear. And Java is pretty easy to pick up, if you are familiar with and C or C++ syntax language. I find c# harder than java, I hate it I don't why its harder but c# is hard Sweet java is multi platform, my app ade in windows 7 with java, I copied the .jar file to mac worked, to ubuntu & fedora still worked love java Anyway let me not turn this to a java vs c# |
Re: No Java Required: Write Android Apps In C# by xterra2(m): 12:51am On Jul 11, 2012 |
oshoppy: I am working on a project that requires me to develop an app....please if we have developers in the house that can do this and get paid...please contact me and we can discuss buiz. nice thread. Nawawo You should have provided more info Tell me a summary of the project and the language involved so I can know what am dealing with Okay ? |
Re: No Java Required: Write Android Apps In C# by Nobody: 12:59am On Jul 11, 2012 |
Or you could just use Mono.net, which builds for ios and android. But I hate c# for not allowing me to dynamically implement abstract classes and interfaces. E.g can't do Thread interfaceObj = new Thread(){ public void run(...) { //stuff you want this thread to do } }.start(); |
Re: No Java Required: Write Android Apps In C# by Beaf: 1:50am On Jul 11, 2012 |
^ Dude, what you have just done is attempted assault, ra'pe, burglary, defamation... Make I continue? Lol! C# (or .NET) can do a thousand and one more powerful things than the piece of code you wrote (has nuff powerful parallel/threading libraries) Also, you can dynamically implement abstract classes, interfaces, modules, any type. You can also load and create and assemblies on the fly. ...In short, with C#, you can raise the dead. |
Re: No Java Required: Write Android Apps In C# by Beaf: 2:16am On Jul 11, 2012 |
Excerpts from the Xamarin blog: [size=14pt]Android Ported to C#[/size] [size=14pt]The XobotOS Research Project[/size] http://blog.xamarin.com/2012/05/01/android-in-c-sharp/ |
Re: No Java Required: Write Android Apps In C# by ektbear: 2:17am On Jul 11, 2012 |
xterra2: I'm surprised that you find c# hard, yet know java. |
Re: No Java Required: Write Android Apps In C# by lasunray(m): 3:31am On Jul 11, 2012 |
confuse!!! yet I want to learn JAVA |
Re: No Java Required: Write Android Apps In C# by lasunray(m): 3:32am On Jul 11, 2012 |
confuse!!! yet, I want to learn JAVA |
Re: No Java Required: Write Android Apps In C# by question(m): 7:02am On Jul 11, 2012 |
lasunray: confuse!!! yet, I want to learn JAVAIf you have the time, patience, will-power and intellect go to http://www.javavideotutes.com/lessons OR http://javalessons.com/ There are many other similar websites that you can learn from. Good luck. |
Re: No Java Required: Write Android Apps In C# by gsmcoder: 7:06am On Jul 11, 2012 |
Beaf: ^ could you share the formula to raise the dead? needed in jos asap 1 Like |
Programming Videos And Books For FREE / The Story Behind Openvr, The Voters Registration Software / A Site That Requires No Internet Connection To Surf!
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 62 |