views:

216

answers:

2

Hello, i am starting to develop Android applications and i would like to know if there are any tips for creating lightweight applications. This is my first attempt to write applications on a mobile platform but i hope that my experience in programming will help.

I have in mind the "Better, Faster, Lighter Java" book, but will this be "the" answer to my question? Are there any tips specific for the Android Platform that will allow me to build lightweight applications?

Regards,

+9  A: 

A good place to start would be the Designing for Performance and Designing for Responsiveness documents in the Android Developer Documentation.

Dave Webb
both great answers - but i will mark this one as 'the answer' since it has more votes
andreas
+3  A: 

Realize that you are coding for a platform with limited memory, so try not to allocate memory unless you absolutely have to. The last thing you want is for the garbage collector to kick in and start eating CPU cycles. Also, quite often "performance" is synonymous with "user experience" so if you have to do anything CPU intensive, do it in the background and out of the UI thread.

Here is some additional information that you might find useful:

Erich Douglass
thanks for the tips
andreas