Android Notes: Java

As mentioned in the comments for the previous post, when writing Android apps you need to use Java. While it’s possible to code using C/C++, you really don’t want to unless making life difficult is your idea of fun.

The Java you’ll be using is plain old regular Java which can be learnt from the Java tutorials from Sun. I have bought a copy of Bruce Eckel’s Thinking in Java book (I bought the second edition for very cheap from Amazon – Thinking in Java (2nd Edition) (with CD ROM))

I’ve not done a great deal of Java programming, so there may be a few Java related posts appearing in the future. These will mostly be of the “If you’re a C++ programmer, here’s how you do things in Java” rather than aimed at beginners.

Bear in mind though, the code will be running on a mobile device with limited resources. It seems to be important to avoid triggering the Java garbage collector, and to avoid allocating RAM all the time.

The following Google I/O video has some interesting insights into creating code that runs efficiently
YouTube Preview Image

Tags:

About James

I'm just a person who likes writing software in their spare time. I'm not an "indie games developer" and am not trying to escape my day job and live in the happy world of games dev. I'm more like one of those people that used to write games in their spare time in the 80s. My stuff would be PD or Shareware if this were the 80s or 90s. It's good to comment on the posts in here :)