Programming in Java for Android looks and feels very similar to other Java platforms. The basic syntax is the same, and as I’ll describe most of the Java’s core APIs work just like they do elsewhere. But there are some critical differences. And that’s because the version of Java you use in Android isn’t exactly the same as Oracle’s version.
- View Offline
- [Voiceover] Programming in Java…for Android apps looks and feels…very similar to other Java platforms.…The basic syntax is the same, and most of Java's…core APIs work just like they do elsewhere.…But there are some critical differences.…And that's because the version of Java…that you use in Android isn't exactly…the same as Oracle's version.…The version of Java in Android…is based on Apache Harmony,…an open-source implementaion of Java…that was created by the Apache Foundation…as a clean room implementation.…
Harmony, itself, was discontinued in late 2011.…But Google still maintained its custom…implementation that was based on Harmony.…And that's the implementation of Java…that you're using up through the current…version of Android, as of the time…of this recording, Android 6.0 Marshmallow.…Google announced in December 2015,…that the next major version of Android,…currently known as Android N, would replace…this custom implementation of Java with OpenJDK,…Oracle's own open-source implementation…of Java that it licenses freely.…
Watch these Java tutorials to learn smarter, more efficient methods for Android app development.
- Preparing the development environment
- Packaging and running Android apps
- Optimizing Java code for Android
- Implementing event handler interfaces
- Defining custom callback methods
- Working with the Android SDK's Java packages
- Storing data
- Reading text files
- Parsing JSON and XML data
- Managing device sensors
- Playing audio