Home Features Current 10 things every Android developer needs to know - 3. Java
10 things every Android developer needs to know - 3. Java
Written by Carl Whalley   
Friday, 20 November 2009 09:00
Article Index
10 things every Android developer needs to know
1. Support
2. An IDE
3. Java
4. Graphic design
5. XML layouts
6. The Market
2. An IDE
8. OS Versions
9. The App Lifecycle
10. DDMS
All Pages

3. Java

It doesn't get any easier than this.

In the olden days, programmers using C and C++ to develop their apps used to spend up to 80% of their time on memory management issues. They were so complex that crazy little workarounds had to be implemented to fix things Java has been able to sail through from the start - like cleaning up memory after an exception, for example. Even multithreading was done differently according to which flavour of library you used because it wasn't core to the language. For system code, doing your own memory management gives a higher level of optimisation and control so has its place, but for Apps with the massive performance increases in the JVM and ultra-efficient auto garbage collection, it just seems so '90's to have to spend any time doing it yourself.

As far as writing apps on smartphones goes, Java is the slam dunk no-brainer when it comes to ease of use. Just to be clear, we are talking the flavour of Java which Android has implemented, aka "Dalvik". Don't let that name worry you though, it's totally compatible and most definitely not the abomination known as J2ME - a version of Java cut down so severely it was practically useless.

Not only is it as easy as it gets, but this harks back to the support point mentioned earlier. There is literally well over a decade of expertise out there, from best practices to optimisation to reusable libraries.

You have to know Java, sure, but this is nothing like the pain of the alternatives.



 

Comments  

 
0 #5 cousinHub 2009-12-10 06:54
I liked this part in part 8 (OS versions):

Android releases are named after desserts, so we had Cupcake (1.5), Donut (1.6) and Eclair (2.0), the next two are rumoured to be Flan and Gateaux - in case you hadn't spotted it, there's an alphabetic progression there
Quote
 
 
0 #4 Robert Lilly 2009-12-09 16:26
Awesome article. Now I'm really glad I learned to develop on Android for my augmented reality app instead of some other mobile system. And today I'm going to an interview for an Android developer position.
Quote
 
 
0 #3 Matt Kanninen 2009-12-04 01:32
Preach it brother!
Quote
 
 
0 #2 André 2009-11-24 06:31
Thanks for this article :) I'm sure this will help a lot of Android fans to start their own little project.

For graphics I'm a fan of Inkscape now. It's an awesome piece of software. Especially for doing games and similar stuff. All graphics of my own game Puzzle Blox have been created with Inkscape. Thumbs up!
Quote
 
 
+2 #1 Jeff Watson 2009-11-20 22:10
Great article. I found item #8 Dalvik Debug Monitor Server very useful!
Quote
 

Add comment


Security code
Refresh


Copyright © 2010 Android Academy. All Rights Reserved. Privacy statement. Sitemap.
Android Academy is not associated with Google in any way. All trademarks acknowledged.