Ask HN: How much Java do you need to know to write Android apps?
My goal is to develop mobile apps, starting with Android.
My background is only perl/bash/SQL - just scripting.
I know you need to know Java to do Android, but my question is... how much? I'm going through a Deitel "Java - How to Program, 9th ed." book. I'm wondering how much of this is relevant to Android.
Should I be starting from the Android tutorials and working backwards first? In other words, learn things from the Android side, and when something explicitly Java-related is required... go back and fill in the holes?
I'm trying to figure out the most efficient way to get proficient... but do it right. I'd like to establish good programming habits, from the start.
Thank you for your time!
7 comments
[ 5.1 ms ] story [ 26.9 ms ] threadYou don't have to go through the entire book cover to cover, but enough of it that you are at least familiar with basic java concepts and syntax. With that, proceed immediately to Android specific programming.
I had suggested some resources for starting out with Android development which you may want to look at: https://news.ycombinator.com/item?id=7016067
Then build an awesome app :)
Some further food for thought:
> I know you need to know Java to do Android
There are several languages and tools that codegen to the JVM, and more specifically, Dalvik, the special version of the JVM used for Android, so you don't have to learn Java per se.
For example, there's Clojure, a flavor of lisp that targets the JVM and supports Android/Dalvik.
> My goal is to develop mobile apps, starting with Android.
There's already at least one non-Java language/tool I know of that not only codegens to Android but also iOS and other platforms. So you can write code once and just push a button to have it run on Android, push another and it runs on iOS. I'm not going to mention the language/tool because it's controversial (eg it's not open source), but I'd be surprised if there aren't open source equivalents either already in existence or set to arrive soonish.
> My background is only perl/bash/SQL - just scripting.
The "Are We There Yet?" Perl 6 codegens to multiple platforms including the JVM. Unfortunately a key piece of their current codegen strategy doesn't work with Dalvik so I'd say Android's probably out for Perl 6 for at least a year or ten.