Is it just Java?
Asked
Active
Viewed 2,156 times
3
-
1It looks like the SO tag "nexus" refers to something else. Maybe we should make a "nexus-one" tag? – Tyler Jan 06 '10 at 01:55
-
2Doesn't the 'android' tag hint at a question _about_ Android, not one whose answer is Android? – ProfK Jan 06 '10 at 06:53
-
You can also just program using Javascript & HTML5. That's the way I roll. – hendry Jan 21 '10 at 14:42
5 Answers
13
The Android SDK is Java-based.
I am sure there is some ARM-assembly, C and C++ in the mix too for the low level stuff.

Daniel A. White
- 187,200
- 47
- 362
- 445
-
2sweet. once i finish my iPhone App I'm jumping over to the Android ;) – Zach Smith Jan 06 '10 at 01:40
8
Yes, you program in Java, but you can also program in native C with the Native Development Kit.

Adam Goode
- 7,380
- 3
- 29
- 33
3
Remember though, that even though you write Android apps in Java, the code is not compiled to normal Java bytecode. It is instead compiled to Dalvik vm code. This means that you can't use common third party JAR files that are Java bytecode class files.

Jeremy Logan
- 47,151
- 38
- 123
- 143

D.C.
- 15,340
- 19
- 71
- 102
-
-
1According to the Wikipedia article on the Dalvik VM, there's a tool to convert Java class files to the Dalvik format, so I imagine you could convert a whole compiled JAR. – Matthew Olenik Jan 06 '10 at 02:53
-
2
1
Android 2.1 SDK - Java

McAden
- 13,714
- 5
- 37
- 63
-
1It should be noted that Android is not Java. It uses the Java programming language, there is a huge difference. To call something Java implies that it is a sanctioned VM and will run other Java applications, which Android will not. They simply use their compiler/vm to build and run apps written in the Java programming language. – Jim Mitchener Jan 06 '10 at 01:52
-
2You're rather overstating the case. J2ME phones don't run any java application either, they're a different platform (albeit a Sun-sanctioned one). Android is no different; it has its own platform library, but the core Java API remains unchanged. And FWIW, it doesn't use the Sun JVM, but Google's own (Dalvik), which has its own bytecode architecture and converts from Java .class files at build time. No Sun code exists on the device. – Andy Ross Jan 06 '10 at 02:55
1
Nexus One uses Android 2.1, and to develop programs for Android, we can use the Java programming language. For advanced usage or more performance, Google provides Native Development Kit, where we can use C to write programs.

Randy Sugianto 'Yuku'
- 71,383
- 57
- 178
- 228