JAVA Posts on XDA

Android Development Basics: How to add Kotlin to an existing Java Android project

Kotlin is pretty great. It's got a whole bunch of useful language features, and the syntax is generally clean and simple. It's also cross-platform, and the base language can compile to a whole bunch of different languages and platforms. Kotlin for Java (called KotlinJVM) compiles to the same thing Java compiles to — JVM bytecode for...

Android Development Basics: How to add View Binding to an Android Gradle project

Most Android developers are probably familiar with the classic findViewById() method. Pass it an ID of one of the Views in your XML layout and it'll return a reference to the inflated version of that View. That's all assuming you passed the right ID though, and that the View actually exists. findViewById() has no checks...

Supreme Court sides with Google over Oracle in Java API copyright dispute

Nearly 11 years after the dispute began, Google v Oracle seems to have finally come to an end. In a 6-2 decision delivered by Justice Breyer, the U.S. Supreme Court reversed the decision of the U.S. Court of Appeals for the Federal Circuit, granting Google victory in the over decade-long dispute over copyright infringement. Shortly after...

[Update 3: Oracle’s response] Oracle’s lawsuit over Google’s use of Java in Android has been revived

The Google-Oracle feud has been ongoing since 2010. Java was created by Sun Microsystems back in the 1990s and Oracle acquired the company in 2010. A few months later, Oracle accused Google of using its copyrighted APIs and patents to develop Android and filed a lawsuit. Since then, we have seen the two companies wage...

Square announces their In-App Payments SDK for Android, Flutter, and iOS

Many of you have probably heard of Square Inc. They're a company that specializes in financial services, especially when concerning mobile payments and point-of-sale systems. You've probably seen their card readers at restaurants, retail stores, or even outdoor events. However, managing payments isn't the only thing Square does. The company also has an entire website dedicated...

This Ultimate Coding Bundle is Free

If you're just getting started with learning Ruby, Java, Javascript or Google Go Lang, this is a great place to start. Before purchasing one of the more in-depth bundles from the XDA Depot, check out this one for free. This collection of beginners coding courses is valued at $737. If you get it through the...

Tensorflow RC 1.0 Released, Android Optimizations Among New Features

Feature Image Displays Picture A in the Style of Famous Paintings B,C, and D - Image Credit: Google Research Blogs Tensorflow – an open-source neural network platform from the Google Brain team – has made available the release candidate for version 1.0 of its increasingly popular machine learning platform. Some of the most exciting new features include pre-made...

Tasker Pro: Tag New Photos with the Current Calendar Event

Automation is supposed to be about simplifying everyday tasks to give you more precious time doing the things you love. At XDA, we've shown you how you can use Tasker to secure your device, improve productivity, or make driving safer, all a part of our series called 'Tasker Week.' But the fun doesn't end there. If...

Create an External Settings App for SystemUI.APK

Unlike most other mobile OSes, Android allows users to modify its source code to make the most of it. This is accomplished by editing code from the AOSP or AOSP-derived projects before compiling. However, not all of us build our own ROMs from source. Thus, there's the world of decompiling and Smali editing. Here on XDA,...

Meet JOdin3: A Web Tool that Flashes Your Samsung Device

Odin and Heimdall were pretty badass gods in the Nordic mythology. But to Samsung device owners, these are important and powerful tools designed to flash stock ROM files, much like Flashtool on Sony phones. In short, they are an essential part of Samsung Android development here at XDA. Many times in the past, we've talked about XDA...

Direct Smali to Java Converter Makes Smali More Developer Friendly

Android is meant to be open source. And most components, despite being covered by the Apache license, have publicly available source code. Unfortunately, the sad truth is that only Nexus devices owners can do Java modifications without digging into Smali assembler language, which is not simple and needs much more effort than Java. Also, decompiled...

GetJava Helps You Convert APKs into Java Projects

Android is an operating system that uses a lot of programming languages. The most common languages are Java (or Android Java if you prefer), C, XML, Bash, as well as a few more. Android applications can be decompiled by APKTool and a few similar tools, and their output is Smali. I know that many of you will disagree with...