Developing Android Applications with Adobe AIR

Errata for Developing Android Applications with Adobe AIR

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Printed, PDF, Safari Books Online, Other Digital Version
Page 2
Middle of the page

Flash Builder 4.5 is no longer in beta nor available on Adobe Labs. It is now available for purchase. This paragraph: "Burrito is the code name for the new version of Flash Builder, in public beta at the time of this writing. You can download from the Adobe Labs website at (url). Burrito has templates for both Flex Mobile and Actionscript Mobile projects." should now read: "The last version of Flash Builder, Flash Builder 4.5 now supports mobile development and has templates for both Flex Mobile and Actionscript Mobile projects."

Véronique Brossier
Véronique Brossier
O'Reilly Author 
May 08, 2011 
Printed, PDF, Safari Books Online, Other Digital Version
Page 7
Top of the page

Flash Builder 4.5 is no longer in beta nor available on Adobe Labs. It is now available for purchase. This paragraph: "Development, packaging and debugging can all be done using Flash Professional CS5.5 or Flash Builder (codename Burrito), available in the Adobe labs at the time of this writing." should now read: "Development, debugging, packaging and installation can all be done using Flash Professional CS5.5 or Flash Builder 4.5."

Véronique Brossier
Véronique Brossier
O'Reilly Author 
May 08, 2011 
Printed, PDF, Safari Books Online, Other Digital Version
Page 51
bottom

Page 51, the sentence "The following creates a sprite of 10x10 inches, or 100x100 pixels" is incorrect. The point of converting millimeters (or inches) to pixels using Capabilities.screenDPI is to vary the pixel value depending on the device. For instance, using the following: toPixels(10); function toPixels(mm:Number):int { return Math.round(Capabilities.screenDPI*(mm/25.4)); } returns the following values on various devices: 66 pixels // Samsung Galaxy Tab - 168 dpi 99 pixels // Macbook Pro - 252 dpi 100 pixels // Nexus One - 254 dpi

Véronique Brossier
Véronique Brossier
O'Reilly Author 
May 15, 2011 
Printed, PDF, Safari Books Online, Other Digital Version
Page 52
top

For the sentence, "For an object whose registration is in the middle, the x and y position do not need an offset (see Figure 5-2)". The current code is incorrect: box.x = stage.stageWidth; box.y = stage.stageHeight; It should be: box.x = stage.stageWidth*0.5; box.y = stage.stageHeight*0.5; or box.x = stage.fullScreenWidth*0.5; box.y = stage.fullScreenHeight*0.5; (if the application is set to full screen)

Véronique Brossier
Véronique Brossier
O'Reilly Author 
May 15, 2011 
PDF
Page 94
last paragraph

"Use trace catch to capture any errors" should be "Use try catch to capture any errors"

Note from the Author or Editor:
The error is actually on page 68 in the paragraph called "Choosing between synchronous and asynchronous mode".

Hyun Seok, Yang  Apr 28, 2011 
Printed, PDF, Safari Books Online, Other Digital Version
Page 131
Bottom of page

For the Google Dynamic Map example, I left out one of the import to add a marker with style: Just add it to the list of imports: import com.google.maps.styles.FillStyle;

Véronique Brossier
Véronique Brossier
O'Reilly Author 
Jun 06, 2011 
Printed, PDF, Safari Books Online, Other Digital Version
Page 134
top function

i happened to pulled from my android phone a picture taken in San Francisco the coordinates are as follows 37,47,13 N N and 122,24,29 W when i used the function shorten, i had to modify part of the condition from reference == "E" to reference == "W" as it was before taking me to the sea near China having 37.786944444444444, 122.40805555555556 but then when fixed it took me to the right location 37.786944444444444, -122.40805555555556

Note from the Author or Editor:
Hello Juan, Thank you for taking the time to submit the error. The code for this example got all mixed up for some reason. I will post the code sample to clarify any confusion under the "download example code" section. As you noted, var exif:ExifInfo = reader.exif; Should be var exif:ExifInfo = exifLoader.exif; var parts:Array; is not part of this code example and should be deleted. degree * -1 should be degree *= -1; "E" should be "W Sorry for the confusion.

Juan Jose Mendez  May 26, 2011 
Printed, PDF, Safari Books Online, Other Digital Version
Page 166
Bottom of the page

To read a video from the SD Card, the correct path should be defined as follows: stream.play(videoPath.url + "/" + videoName);

Véronique Brossier
Véronique Brossier
O'Reilly Author 
Jun 07, 2011 
Printed, PDF, Safari Books Online, Other Digital Version
Page 178
bottom of page

function onError(event:ErrorEvent):void { trace("not able to reach the location:", event.location); } Should be: function onError(event:ErrorEvent):void { trace("not able to reach the location:", event.target.location); }

Véronique Brossier
Véronique Brossier
O'Reilly Author 
Jun 07, 2011 
Printed, PDF, Safari Books Online, Other Digital Version
Page 179
bottom of the page

webView.load(event.location) Should be webView.loadURL(event.location);

Véronique Brossier
Véronique Brossier
O'Reilly Author 
Jun 07, 2011 
PDF
Page 205
last sentence

Typo, the protocol names are reversed. "RTMP is faster than RTMFP, but does not guarantee perfect message ordering and delivery." SHOULD BE "RTMFP is faster than RTMP, but does not guarantee perfect message ordering and delivery."

None  Apr 26, 2011