开发者

Is regular Java the same as the Java for Android [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

开发者_如何学C

Closed 4 years ago.

Improve this question

Is regular Java the same as the Java for Android?

If yes - from where can I download a good java reference?

Looking for something like: Command | small sample | short Explanation


Yes it is. The syntax is exactly the same and you can use the same methods that are available in Java SE. Android has its own SDK (Software Development Kit) which is specific Java classes and methods for Android, i.e. dealing with click events and user interface.

However, although Java and Android Java is the same, certain libraries you add for extra functionality may or may not work. I.e. the MySQL Connection library if you try and import that for use with Android it will display an error and your android app will not compile until the MySQL library is removed from the project.

Hope this makes sense to you


Java lanaguage is basically the same for android. I think its the api's that are modified a bit to work with the dalvik vm.

Dalvik, optimized for embedded execution, and one that has its own binary format (Dalvik Executable), and does not use the Java bytecode format.

Java classes on android are based on Apache Harmony. (Wikipedia and some other forums.)

Yo should read this post Has some information that I've heard for the first time.


Is regular Java the same as the Java for Android?

Yes it is. With a few tweaks.

http://developer.android.com/reference/


Java Coding and the Syntax is the same. But the SDK is very different from regular Java JDK. The "only" thing you need to do is download Android SDK install the plugin in Eclipse and know how to use the SDK. There are tons of books that introduces you to the Android SDK.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜