Java to C# - Eee Pad Transformer General

http://blog.xamarin.com/2012/05/01/android-in-c-sharp/
Interesting project
Sent from my Transformer TF101 using XDA Premium HD app

Oooh that is interesting.
Ive recently learned C#, but dont know jack-**** about java (ok I looked at it, and it didnt look super-different from C# so its probably easy to learn...), so that would be awesome for me

LOL
We all will be porting over EXE in no time LOL

It would be a lot more interesting if it wasn't a big commercial for their overpriced Mono for Android SDK.
Not to mention the not-so-subtle scare tactics they employed in the incipit of the article quoting the Oracle v. Google case (I doubt that the CLR VM is not encumbered by any Java-related IP - at least, that's what Jonathan Schwartz told Gates/Ballmer to scare them away when they tried to strong-arm Sun into entering an IP licensing agreement for OpenOffice).

I'd like to see it run on an Android device. Have them cook up a ROM that does their C# .NET CLR thing instead of Dalvik.
From what I can gather it's sort of an emulator for use in development at the moment?

Personally I was not thinking of roms. I realize android is young and dalvik is young or whatever but they are constantly improving so unless they could show a bench mark with a 200% increase set in stone I wouldn't flinch.
I was personally thinking this could be a great start to porting more things over to android and maybe stealing some apps that would otherwise only run on windows or ios etc
I don't know I just thought it was interesting that the more android grows the more projects like this seem to branch out and make more and more things possible.
Sent from my Transformer TF101 using XDA Premium HD app

Related

programming ON device

Hi,
i wonder if it's possible to code right ON an android device, such as the upcomming tablets?
plz correct me if i'm wrong, but i'm dreaming of coding and compiling direct on the tablet. (on my old wm6 device i did so by using basic4ppc, but it would be great to do so without using fring.)
Is this realistic or am i simply dreaming?
thanks for any reply to my silly noob question
your's
pedro
P.S.: by the way,do you gurus think there will be things like video-editing (similar functionality to pinnacle studio/vegas) and vst support for android?
No reply at all??
PLZ boys....can JDK and eclipse be run on an android device????
The only thing I'm aware of at the moment is the project (formerly) known as "Android Scripting Environment"
http://code.google.com/p/android-scripting
Among other things, it gives you Perl
Sent from my SPH-D700 using XDA App
Well, Eclipse is a Java application, so in theory it should be port-able onto an Android device. However, I imagine there would be so many things to fix/work-around that it just wouldn't be worth it. For example, I don't think Android has the Swing/AWT components, which Eclipse probably uses, so you'd have to rewrite all the UI display classes to use the Android libraries.
Much more realistic would be simply a syntax-highlighting text editor, which would let you write (but not compile, of course) on the go. I looked around for one of those a while ago but couldn't find one. I started writing one, but then decided that my urge to program on my phone wasn't strong enough for the amount of effort it would take to write such a program...
NEWS
i've read today good news..... basic4android (basic4ppc) announced a basic4android version (early beta) and "maybe" an on-device-programming version
infantilo said:
i've read today good news..... basic4android (basic4ppc) announced a basic4android version (early beta) and "maybe" an on-device-programming version
Click to expand...
Click to collapse
Hello,
it will probably be no version to program with B4A on the device. The IDE runs in conjunction with windows. Net.
Cu
Amalkotey
Basic4Android-Betatester
Steven__ said:
Well, Eclipse is a Java application, so in theory it should be port-able onto an Android device. However, I imagine there would be so many things to fix/work-around that it just wouldn't be worth it. For example, I don't think Android has the Swing/AWT components, which Eclipse probably uses, so you'd have to rewrite all the UI display classes to use the Android libraries.
Click to expand...
Click to collapse
These issues are not the only issue i see...
What about javacc wouldn't this need to be ported as a java application as well?
Which i dont see how you can develop a java compiler in java if you can i'll be amazed.
we'd have to wait for the native library imports to do that from my current knowledge
Please someone correct me if im wrong
I know this thread is old, but if anyone come across this thread search for Aide in the play store.
i think AIDE is the best way to coding ON the tablet/phone!
Try AIDE It's free on Google Play.
AIDE is a good choose if you can buy premium key. I personally did and I'm satisfied. I use aide when I'm away of my PC and get an idea
Free version allows only projects with 5 or less java files. Excluding R.java and BuildConfig.java that's 3. I doubt that anyone can write anything serious with 3 java files.
Sent from my Evo 3D GSM using Tapatalk 2
pedja1 said:
AIDE is a good choose if you can buy premium key. I personally did and I'm satisfied. I use aide when I'm away of my PC and get an idea
Free version allows only projects with 5 or less java files. Excluding R.java and BuildConfig.java that's 3. I doubt that anyone can write anything serious with 3 java files.
Sent from my Evo 3D GSM using Tapatalk 2
Click to expand...
Click to collapse
+1 for AIDE you can't go wrong with premium especially if your projects are big (lots of files)
AIDE also supports ssh git and dropbox sync last I checked. It also features an auto complete kinda like in eclipse.
Although I always begin my projects on a computer especially for the ui design (I'm a noob this way)
as for C there is C4droid although I'm not sure if its possible to link it with android java code.
But c4droid beats having to set up the proper toolchains if your creating a pure native application.
Sybregunne said:
+1 for AIDE you can't go wrong with premium especially if your projects are big (lots of files)
AIDE also supports ssh git and dropbox sync last I checked. It also features an auto complete kinda like in eclipse.
Although I always begin my projects on a computer especially for the ui design (I'm a noob this way)
as for C there is C4droid although I'm not sure if its possible to link it with android java code.
But c4droid beats having to set up the proper toolchains if your creating a pure native application.
Click to expand...
Click to collapse
+1 for AIDE
I has AIDE+PasGUI+C4Droid on my device and I quite satisfied with it, though it's difficult to manage with interface
DoR2 said:
+1 for AIDE
I has AIDE+PasGUI+C4Droid on my device and I quite satisfied with it, though it's difficult to manage with interface
Click to expand...
Click to collapse
pasGUI - will try that now. Thanks

[Q] building android based apps

Hey guys i am new to xda but not to android so basically i am trying to learn on how to build application to make for honeycomb etc.. but i would like a little how to guide on how to get this started and going hoping someone has a video link of some sort, it will be worth it in the end i promise
I would recommend starting here with the android SDK, then install eclipse (an IDE), and then get the android plug-in for eclipse, and off you go
there are tons of tutorials about how to get your first hello, world program going. they all involve using Eclipse. I would say skip Eclipse and get the Community Edition of IntelliJ IDEA. it is the best Java ide, hands down. and they have integrated Android Dev to the heart of it, not just a plugin. Just one mans opinion. im sure others will disagree.
I agree IDEA, is a better ide imho, for android then eclipse, it just feels better.
Sent from my GT-I9100 using XDA App

Inferno on Android/AOSP

Just became aware of this, thought it's pretty cool. not eye-candy for most, i agree. Also, projects like this just shows how flexible Android can be. First port is running on Nexus S and Nook Color, but devs of the project recommend Cyanogenmod as base. Maybe this could come in to sgs too
What are your thoughts on this? I'm a big fan of tiling window managers on linux, so i would definately would try this.
hellaphone src
utube demo on nexus s
The geek factor is high I must say.
jose.celestino said:
The geek factor is high I must say.
Click to expand...
Click to collapse
aren't we all
there are those who run debian on our phones! this is more mobile oriented i think. i don't know nothing about java, but i read Google is trying to push javascript away from website programming, bringing instead a language they call Dart. If this works out, they could bring it in to Android? Even though java makes part of Android code...

[Concept] XobotOS (ICS C#) for Galaxy Note

Anyone interested in comitting?
Here's the intro to the pros and cons [1]
Github [2]
I won't have time to work on this until next year, after a few classes. So I'm just putting this out there to spark some intrigue.
This is the definitive way to leave the ssssslow java and go to the "performer" C#!
I know a number of people who don't buy any Android phone because thay know very well that it is "slow" inside.
Java and its VM cannot compete with the speedness of windows phone 7, that is written in C#.
When i look at my friend's wp7 with a 1GHz processor i can't believe how quick it is, compared to ANY android phone.
I hope that this project will have a bright future.
adario73 said:
This is the definitive way to leave the ssssslow java and go to the "performer" C#!
I know a number of people who don't buy any Android phone because thay know very well that it is "slow" inside.
Java and its VM cannot compete with the speedness of windows phone 7, that is written in C#.
When i look at my friend's wp7 with a 1GHz processor i can't believe how quick it is, compared to ANY android phone.
I hope that this project will have a bright future.
Click to expand...
Click to collapse
Interesting. I didn't know that Java was something that was slowing down Android.
Java slows down everything. It's way too high level a language for what it wants to accomplish to do. I suspect Google takes to closely with it's Stanford roots. Stanford teaches java in intro to computer science classes. Whereas, in unis like MIT one would start with python then C.
If it is slow, the problem is not comming from java and c# is not better or worst, the two languages are very similar. The diference is between the VMs Dalvik and Mono. Dalvik, which run java code, is not yet enougth mature .
I confirm, wp7 runs realy faster than Ics. I had a htc mozart with 1ghz and it was as fast as my current Note with it's dual core 1.4
co2gaz said:
If it is slow, the problem is not comming from java and c# is not better or worst, the two languages are very similar. The diference is between the VMs Dalvik and Mono. Dalvik, which run java code, is not yet enougth mature .
I confirm, wp7 runs realy faster than Ics. I had a htc mozart with 1ghz and it was as fast as my current Note with it's dual core 1.4
Click to expand...
Click to collapse
WP7 is a much more lightweight OS, so of course it is faster. Java certainly isn't helping, though...
Java ain't slow
MIght be some confusion, but how come the biggest international
market makers (stocktraders) use Java code to actually make the transactions with the stock exchange ?
I've been told that java is the fastest code out there to handle those tasks.
They are trying to gain microseconds, not milliseconds.
I will ask for some more info about it.
lucid said:
MIght be some confusion, but how come the biggest international
market makers (stocktraders) use Java code to actually make the transactions with the stock exchange ?
I've been told that java is the fastest code out there to handle those tasks.
They are trying to gain microseconds, not milliseconds.
I will ask for some more info about it.
Click to expand...
Click to collapse
Both C# and Java compile down to a bytecode which runs inside a virtual machine (VM). The speed at the code runs is dependant on the speed of the VM. The Dalvik VM used by android is completely different to the Java VM used in desktop machines and has different performance characteristics. I wouldn't be suprised to find the Mono VM quite a bit faster, it's much more mature.
Java is certainly not the fastest programming language out there, C# is roughly the same speed while natively compiled languages such as C, C++, Delphi etc are typically 50% - 100% faster.
Thread moved to General
This is not development yet.
reinbeau said:
This is not development yet.
Click to expand...
Click to collapse
Please move it back to development!
The developers (and most of the users) don't go to the General section. This have been for years in every device forum here on XDA! I myself used the General section only one or two times and that was before I bought the Note just to see what the people think of it. There is almost no useful info there and this thread have some potential! There it will be forgotten...
lucid said:
MIght be some confusion, but how come the biggest international
market makers (stocktraders) use Java code to actually make the transactions with the stock exchange ?
I've been told that java is the fastest code out there to handle those tasks.
They are trying to gain microseconds, not milliseconds.
I will ask for some more info about it.
Click to expand...
Click to collapse
I don't know why they chose Java specifically, but I imagine the Java VM those stock traders use are much faster than Google's Dalvik.
The stock brokers only use Java for some clients - I promise you their servers and back end doesn't run Java!
Sent from my superior GT-N7000 using Tapatalk
OrionBG said:
Please move it back to development!
The developers (and most of the users) don't go to the General section. This have been for years in every device forum here on XDA! I myself used the General section only one or two times and that was before I bought the Note just to see what the people think of it. There is almost no useful info there and this thread have some potential! There it will be forgotten...
Click to expand...
Click to collapse
I guess we'll need you to bump it every few days forever to keep it alive...until some actual work is created.
OrionBG said:
Please move it back to development!
The developers (and most of the users) don't go to the General section. This have been for years in every device forum here on XDA! I myself used the General section only one or two times and that was before I bought the Note just to see what the people think of it. There is almost no useful info there and this thread have some potential! There it will be forgotten...
Click to expand...
Click to collapse
I do go more often in General than Development...
That being said, I still wish there was a fully native Android experience. All apps written in C/C++, cross-compiled directly for ARM, and BANG : 5000x faster.
Zamboney said:
The stock brokers only use Java for some clients - I promise you their servers and back end doesn't run Java!
Click to expand...
Click to collapse
Just my thought too. I've been working professionally as a software developer for almost 15 years, and I'd definitely pick something else than Java for anything performance critical. Back in the days we used to joke that if you're a fast typer, you can run your Java app while coding it.
Anyhow, I'd be thrilled to see more C# support for Android - it's just so much more comfortable to code. In hindsight I think Microsoft clearly did the right thing to ditch backwards compatibility for the new and improved features such as generics.
Lets get manufacturer release data sheet and then lets start coding in assembly will blow everything out of water (if you can write a 500 line of code for your hello world program ) ,
Java and c# are very different language,Java is slower but its getting faster, although I'd love to see android in c#.
Sent from my GT-N7000 using xda premium
Definitely want to see this fine, would run it in a heartbeat
Sent from my GT-N7000 using Tapatalk 2
awesome-member said:
Lets get manufacturer release data sheet and then lets start coding in assembly will blow everything out of water (if you can write a 500 line of code for your hello world program ) ,
Java and c# are very different language,Java is slower but its getting faster, although I'd love to see android in c#.
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Java is getting faster, Dalvik isn't.
Android Audio Latency
Will this potentially improve Androids audio latency issue?
Actually a big time discussion was taking place,which sometimes went out of proportion:
http://www.engadget.com/2012/05/04/Xamarin-XobotOS-ports-Android-to-C-Sharp/

Maybe someone can shed some light on this?

After reading and watching multiple demonstrations of the Ubuntu phone os. I just can't seem to find features that I can't already do on my android. The notifications drawer is pretty neat in that you can pull it down at different places, but other than that, it just seems like a lightly modded android.
Sent from a galaxy far far away.
luc.highwalker said:
After reading and watching multiple demonstrations of the Ubuntu phone os. I just can't seem to find features that I can't already do on my android. The notifications drawer is pretty neat in that you can pull it down at different places, but other than that, it just seems like a lightly modded android.
Sent from a galaxy far far away.
Click to expand...
Click to collapse
I think for most users, they may not find value in this yet (until more apps are available and/or cheaper phones come out), but for those familiar with linux it will make a lot of sense.
I have been a linux developer for 3 years now (as a full time job) and I am just imagining all the cool stuff I can do with this device (at home and at work).
For one thing, you will likely be able to develop (native) apps on the phone itself instead of having to have a separate computer to do it. It might even be possible to develop Android apps!
It's basically a PC in your pocket so the apps will not be as limited as Android and iOS apps. There is still software out there that is not available on Android and iOS because those systems are designed for phones and tablets and don't fully support a desktop style interface. The appeal to an Ubuntu phone is that it can function as both, and you can develop software that will be interchangeable as both.
Thanks for your reply.
I'm not a developer (yet) so I can't say much on the subject. But I do know that you can develop apps directly on an Android device. There's even a Linux terminal Window.
I guess I'll just have to wait and see what people can make out of the phone. till then, I'll just stick to my beloved android
Sent from a galaxy far far away.
If you love linux, this *could* be a game changer if it's done right. As BukaKing mentioned, the ability to run native apps on the OS is a huge plus, as you would then be able to make the most of the hardware presented rather than utilising a java engine.
Customisation I am assuming will also be a huge factor - Ubuntu Desktop can be so heavily customised, to function exactly how you want it to, so I am *assuming* that Ubuntu for Phones will be similar. So, just because the OS behaves a particular way on those video's circulating, does not necessarily mean that is how it is destined to remain. Once it's out there in the wild, I would even assume people unhappy with the lack of soft buttons may find them re-appear, as gnome/unity has the ability to create custom panels.
The oportunities I think this OS presents to smartphones is amazing, but in the end it comes down to 2 things for me. Will it be completely open source? If yes, then there could be a bunch of forks/derivitives explode around the webs where teams have customised the OS the way they want it. Developing for it would be far easier, so i'd expect if popularity gets high enough, apps will appear from everywhere. And, implimentation - will it be as easy for a non-linux user to pick up and use, as it will be for a linux user? Hopefully, that answer is yes too.
According to Shuttleworth, it will be 100% opensource! I can't wait till the code is released and we can all play with this. Since it will be using an android kernel and drivers I'm hoping it won't be to hard to compile from source for my phone.
onlychevys said:
According to Shuttleworth, it will be 100% opensource! I can't wait till the code is released and we can all play with this. Since it will be using an android kernel and drivers I'm hoping it won't be to hard to compile from source for my phone.
Click to expand...
Click to collapse
Helllooo! This what i was waiting for....Open source! so that ports can be made for devices that cant be officially supported by ubuntu. For those who keep saying ubuntu cant on GT-$5660 just STFU! No offense but Samsung said ICS or JB cant fully run properly on gio! and look it runs almost perfectly! So a bit of tweaking ubuntu for my device and we can run this!
Sent from my GT-S5660 using xda premium
batman38102 said:
Helllooo! This what i was waiting for....Open source! so that ports can be made for devices that cant be officially supported by ubuntu. For those who keep saying ubuntu cant on GT-$5660 just STFU! No offense but Samsung said ICS or JB cant fully run properly on gio! and look it runs almost perfectly! So a bit of tweaking ubuntu for my device and we can run this!
Sent from my GT-S5660 using xda premium
Click to expand...
Click to collapse
:banghead: :banghead: No.. It won't work on the S5660... Ubuntu phone is not android... Have you ever wrote a program? Compiled software? The binary is compiled using the arm hard float v7 instructions, you will need to recompile the kernel, the OS and every damn app.. the native apps are made with C++ not java ... You may be able to get a running build on a arm v6 like the S5660 but you can't install 3rd party apps from the store or proprietary apps unless the developer thought about that and supports it .. Likely not, they will be natively for arm v7 hf only...
If canonical would have chosen soft float instead of hard float then it would have worked, but it will be freaking slow and laggy..
Getting JB on that device is something else, it and android apps are running of a virtual machine .. That is the good thing about managed code and virtual machines and the reason sun Microsystems invented java in the first place ...
QML and c++ is not running off a virtual machine.. Its 100% native ...
Sent from my Galaxy Nexus using xda premium
I'm wondering if native C++ Apps will not only be more efficient than Java on Android but if Ubuntu can take more advantage of multi-core systems than Android does. At least I have heared that Android isn't that optimized for multi-core phones.
jscurtu said:
:banghead: :banghead: No.. It won't work on the S5660... Ubuntu phone is not android... Have you ever wrote a program? Compiled software? The binary is compiled using the arm hard float v7 instructions, you will need to recompile the kernel, the OS and every damn app..
Click to expand...
Click to collapse
Why does it have to be him that has to do that, some one else could do it and provide an image.
the native apps are made with C++ not java ...
Click to expand...
Click to collapse
Yeah, who ever heard of making native apps in java!
The Ubuntu Phone OS equivalent to java will be HTML5.
You may be able to get a running build on a arm v6 like the S5660 but you can't install 3rd party apps from the store or proprietary apps unless the developer thought about that and supports it .. Likely not, they will be natively for arm v7 hf only...
Click to expand...
Click to collapse
You go from saying "No.. it won't work" to saying "You may be able to get a running build", nice!
And what proprietary apps are there right now? The only apps that I have seen are either HTML5 or the one native app (the gallery app) that Canonical made which will be open source and can be rebuilt for any device.
Also this same problem exists for Android native app (android has a lot of them), the developers have to build binaries for the different Android devices. So you can port Android to an x86 device but you will not be able to run a lot of games unless they include binaries that support it. Games built with Unity 3D are native apps, games built on Adobe Flash/Air are native apps. Native apps *can be* more efficient in performance, memory and battery than Java apps. Also C++ in the case of mobile devices is more cross platform than Java, since it can be used on both iOS and Android, and the libraries in Android Java are not available on other platforms with Java.
QML itself is not technically native, it depends on how it is used. QML is a mix of objects/widgets and javascript (similar to HTML5), but native C++ code can access QML objects/widgets through Qt.
But that said, if Canonical doesn't officially support a device I would steer clear of updates. I just spent the weekend trying to update my HP Envy from Ubuntu 10.10 to 12.10 and I had a ton of problems, and while it works now, my USB is disabled for some reason (even though internal USB devices work). This isn't the first time this has happened to me with Ubuntu updates.
I wouldn't worry about it for the Galaxy Nexus since it is an officially supported device, but for devices that are ported too by some one else, I would avoid updates coming from Canonical.
Valve is testing Steam games for Ubuntu so we could be playing some real games on our phones soon.
Sent from my SGH-T999 using xda app-developers app
getrdy said:
Valve is testing Steam games for Ubuntu so we could be playing some real games on our phones soon.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
ARM != x86 .....
blackout23 said:
ARM != x86 .....
Click to expand...
Click to collapse
What about those x86 based phones?
Sent from my Galaxy Nexus using xda premium
Lesicnik1 said:
What about those x86 based phones?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
The smartphone GPU drivers and chips probably don't support OpenGL 3.0 like Steam games require.
Smartphones never had full blown OpenGL only OpenGLES (Embedded System).
Desktop PCs are still waaay more powerful than any smartphone. Any cheap Celeron CPU for 40 bucks will obliterate your Intel Atom powered smartphone.

Categories

Resources