Skip to content
Jan 14 / Sidney de Koning

Installing on Device error using ‘adt -installApp’

Today I was updating the Ant files for compiling for AIR for Android and iOS in Eclipse to make sure they can use the latest AIR SDK, 3.1.
As I was doing this I ran into the following error while using the -installApp from adt: INSTALL_FAILED_CONTAINER_ERROR

The fix is to mount your device and remove the /.android_secure/smdl2tmp1.asec file.

Unmount and remount your device,  run the ‘installApp’ command again.

Now you can install again directly to your device :)

Please consider to buying me a coffee.

Jan 12 / Sidney de Koning

‘Confessions of an Flash Addict’ is on Google Currents!

Google Currents, a new news feed organizer service ala Flipboard just released it’s ‘producer’ module. This allows you to author your content in their format. Currents is available for iPad, iPhone, Android and a standard tablet version. I think this this app is currently the most beautiful app that organizes your feeds and rearranges them in a very logical way.

As from now we can be found in it’s directory as a feed. More information about that can be found on the publishers page.

See Currents in action, then download it and install my feed :-) And tell me what you think, is this a better way of presenting information?

Please consider to buying me a coffee.

Jan 9 / Sidney de Koning

Fixing not so standard Ant errors in FDT

For this project i’m doing i needed to generate 10 different/unique class files and then compile 10 SWF’s files with those class files. Ant is perfect candidate for this.
The real test is deploying your solution to the different members of your team. Here are some Ant issues i ran into. Most of them have to do with different versions of FDT Eclipse combo’s.

  1. The use of <fdt.loadProjectProperties /> throws an error.
    Solution: use loadProjectProperties with the projectname parameter; <fdt.loadProjectProperties projectname=”Name of the project” />. Note: This worked for me and my team members. I have however seen comments online where did not do the trick.
  2. Ant throws an error: java.lang.NoSuchMethodError: org.eclipse.core.resources.IPathVariableManager.getURIValue(Ljava/lang/String;)Ljava/net/URI;
    Solution: The minimum required Eclipse version to run FDT is Helios (3.6). If you are getting this error, please make sure you have the latest version of FDT and Eclipse. Updating to only the latest version of FDT should fix this problem.

Not so much a problem I ran into but still something I want to share; Iterating in Ant.

  1. You can’t use ‘for’ or ‘foreach’ to iterate over an collection, property or values in a text file in the standard Ant 1.8 build.
    Solution: Use ant-contrib for this. Documentation can be found here for ‘for‘ and for the ‘foreach‘.
  2. When using the for task from ant-contrib i did not found a way to get the ‘step’ of ‘iteration’ value.
    Solution: I created my own. See snippet here. Note: If someone has a better way of doing this, i’d love to hear because to be quite honest; this feels like a hack…

Hope this helped you solve your problems :)

Please consider to buying me a coffee.

Jan 2 / Sidney de Koning

Adding an webbrowser to FDT / Eclipse on Mac OSX

Just found a little bug/issue in Eclipse. Turns out that if you want to add an Web browser you have to perform a little trickery. I found this out by opening the default browser value to see if I was doing something wrong.

If you want to add Firefox/Chrome/Safari/Brand X browser to Eclipse you would normally press the ‘New’ button and add a new browser in the Web browser preferences. However if you are on a Mac the normal install path does not work (Selecting the /Applications/My App.app ), you need to append “/Contents/MacOS/My App” to the file path name. This value comes from when you are in your /Applications folder and right click on any .app file -> ‘Show Package Contents’ and go to the Contents/MacOS folder. Here you will find the name of the program.

So instead of using:
/Applications/Google Chrome.app” (or the .app file for any other browser) you need to append the correct path inside the .app:
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome“.
And you are all set and can use the browser you prefer.


Becomes:

Please consider to buying me a coffee.

Dec 1 / Sidney de Koning

I’ve got a present for you!

Have you already read ‘Automating Actionscript Projects’? You should. It’s about making your coding life for AS3 easier. And faster. And build systems. And compiling for mobile devices. And a whole bunch more! Read it so you have more time to spend with your family and less at work during the holiday season :)

If you haven’t read it, I have some discount codes to give away. If you order via the O’Reilly online store you get 40% off the print version and 50%off the digital version! Its my gift to you.

While you do the checkout use the code ‘AUTHD‘ to get your discount. Go get it!

If you read it, no matter what you think, please consider posting a review on the online store.

Enjoy :)

Please consider to buying me a coffee.