Copyright (c) 2011 Doron Katz. All rights reserved. DoronKatz registered under ABN 68 954 062 611. Apple, the Apple logo, iPod, iPod touch, and iTunes are trademarks of Apple Inc., registered in the U.S. and other countries. iPhone is a trademark of Apple Inc. App Store is a service mark of Apple Inc. Theme by Cory Watilo

Filed under: Flex

Review of Developing Android Applications with Adobe AIR | Véronique Brossier

The first android book that I am going to review, but this book in particular is on how to develop Android applications with Flex, more specifically. The book, titled Developing Android Applications with Adobe Air by Véronique Brossier is the book I have been waiting for a while. While there are tons of resources on developing droid applications natively with Java and the Android SDK, a book for Flex developers on how to leverage their existing skills has been quite scarce, or at least non-centralised.

This book aims to achieve this centralisation, and covers a wide range of features, accessing device-hardware components such as camera, to gestures and saving data on the device with SQLite. And even though this book states android, you may also be able with Flash Builder 4.5 to target Blackberry and iOS devices as well, with some caveats.

I found the book to be easily understood, as a Flex developer but for non Actionscript developers, I think they may find this book quite hard to follow, without the fundamentals of AS, in which case they would need to read some Flex development books.

I am not sure when I will start developing android apps, but having this handy book with me, on my iPad, I can look at extending my iOS applications into having sister Android apps at a later stage, and this book will give me that guide. 

Developing Android Applications with Adobe AIR

"Java Space Error" Fix for Flex Developers

I thought I had to write this, at least for my benefit, but for others as well, who are trying to scour the internet to find the solution to this. The problem is, when using ANT and MXMLC, to compile your Flex projects, you get a "java heap space" error, similar to:

[mxmlc] Error: Java heap space 
[mxmlc] java.lang.OutOfMemoryError: Java heap space

 Everyone on the internet is talking about fixing it via changing Eclipse settings (well I don't use Eclipse) or via export console settings, like java .... but the simplest way I found, was to add the following (see red) in your ant build.xml file.

<mxmlc file="${src.dir}/${input.file}"
output="${build.dir}/${automation.file}"
actionscript-file-encoding="UTF-8"
keep-generated-actionscript="false"
keep-all-type-selectors="true"
fork="true" maxmemory="512m">