FlashDevelop, AIR for android project and projector size

Hi,

recently I was trying to change default size of the projector as it was just too small in my Air for Android project, I have searched for ADL command options and found -screensize option where you specify what you wish to have.

I haven’t found other place to put it other then by editing the “Run custom command…” option from project properties. However, instead of changing this value from adl.exe; application.xml bin into this adl.exe; -screensize 480×800:480×800 application.xml bin you can set another option: -profile mobileDevice, and then the size specified in the project properties are used! very useful.

Now your custom command will look like this: adl.exe; -profile mobileDevice application.xml bin

Unfortunately I’ve double checked and you have to stick to the -screensize option, still useful though.

More details about ADL options you may find here: Device simulation using ADL

Update:
I have created batch file to help with selecting projector size when publishing. Now the custom command calls new batch in which you may chose destination size from the list, I have updated project file accordingly. This batch uses REPLY.COM created using this doc from the Microsoft site.

I have updated mine Air for Android project, you may found it here:
The AIR for Android

Note: I assume that:
Android SDK is in C:\android-sdk-windows\tools
Flex SDK is taken from the FlashDevelop settings.

This entry was posted in air for android, flash and tagged , , , , , , . Bookmark the permalink.

5 Responses to FlashDevelop, AIR for android project and projector size

  1. KaLanGO says:

    Im getting an error when creating a new project. I’m using the latest FlashDevelop. It work at home tho(i’m on work).
    The error says that it could not create the project and an exception was added because of a call path (?!?)

    • Hi,

      edit the project file and remove commented lines:

      <!–
      <option testMovieCommand=”$(FlexSDK)\bin\adl.exe; -screensize 480×800:480×800 application.xml bin” />
      –>

      this should help, let me know if it does.

      • KaLanGO says:

        It doesnt help. Tried removing the comments and the whole commented line and it failed still.

        • That is weird though, have you tried to get the Air for Android project again?

          I have FD 3.3.4 RTM, .NET 2.0 Win XP SP3, and the project works fine, also I have put the project in the application data folder i.e. C:\Documents and Settings\[USER NAME]\Local Settings\Application Data\FlashDevelop\Projects\

          I have also this set as my environment variables PATH (System Properties -> Advanced Tab -> Environment Variables -> User variables for) “C:\android-sdk-windows\tools;C:\android-sdk-windows\platform-tools;C:\Program Files\FlashDevelop\Tools\flexsdk\bin;”

          also in the C:\Documents and Settings\[USER NAME]\Local Settings\Application Data\FlashDevelop\ folder you may find the exceptions.txt and check what the problem is reported

          best regards

          • KaLanGO says:

            It works only at home. Maybe is the JDK path that is miss-set at work. Anyway works like a charm at home so i can always test it like a standart air at work and distribute the apk at home.
            Thanks for this btw, helps a lot.

Comments are closed.