Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How compatible is the Java implementation of Android exactly?

Tags:

java

android

Is there any definition that states which standard class libraries are supported on Android?

Let's assume we build a jar library and compile it using JavaSE. This library will maybe used by a JavaSE server application and/or on a JSP Server.

Are there any means to know beforehand if Androids dex will be able to compile this Library into Dalvik bytecode? Other means than Trial&Error i mean :).

like image 360
mibollma Avatar asked Dec 11 '10 19:12

mibollma


People also ask

Is Java compatible with Android?

Current versions of Android use the latest Java language and its libraries (but not full graphical user interface (GUI) frameworks), not the Apache Harmony Java implementation, that older versions used. Java 8 source code that works in latest version of Android, can be made to work in older versions of Android.

Is Java enough for Android development?

Java is best suited for creating Android apps since it is platform-independent, and as a result, Java apps work on any platform. Java has its own runtime environment, Java Runtime Environment, as well as an API.

Is Java still used for Android development 2022?

Building Android Applications Its main competitor for application development is Kotlin, but it is compiled to the byte code JVM executes, and we can say it is just a “cleaner” version of Java. And by the way, Java is compatible with the most popular tool for Android apps - Android Studio.

What is Android compatibility?

The Android Compatibility program defines technical details of the Android platform and provides tools for OEMs to ensure developer applications run on a variety of devices. The Android SDK provides built-in tools for developers to clearly state the device features required by their applications.


1 Answers

You can look at the Android class library and make sure you only use classes and methods that are listed there.

However, there is no substitute for actually trying it.

like image 102
CommonsWare Avatar answered Nov 14 '22 23:11

CommonsWare