Skip to main content
Participant
March 6, 2011
Question

Convert Air Desktop Application to Android apk Please help!

  • March 6, 2011
  • 1 reply
  • 3807 views

I developed an Air Desktop Application by using Flash Builder 4, it's a pure ActionScript 3 application. I used a few PNG image files and mp3 audio files in the application. After I build it, I got the swf file, xml file and all the image mp3 files in the bin-debug folder. If I run the swf file with all other files (png and mp3 files) in the bin-debug folder, it works great. If I run the swf standalone, the application will miss the images and sounds.

Now I'm converting the swf to apk, and run it on android device, it will NOT show the images or Doesn't play the sounds. I was wondering if there is a way to merge the png and mp3 files into the swf when I build/compile it? Or is there some other way to convert to apk which includes all the image and audio files? Please help.

This topic has been closed for replies.

1 reply

March 6, 2011

Please see adt -package command here

http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffb.html

in this example icons folder is packaged along with swf and app xml.

What you can do is that specify each of the mp3 and image files one by one separated by space at the place where icons is used in examples.

In this case you will find all mp3 and image files in same directory as your swf when you run on android.

Make sure you use app:// urls for accessing those files