5 Replies Latest reply on Aug 11, 2011 10:59 AM by joshua_shizny

    Underlying adt command in cs5.5 ... for AIR Android

    jo_sh Level 1

      Hello,

       

      I am trying to submit my app to the amazon market.  I got back a message from them that says I need to override the air download url by using the adt to package my app.  So, I found a couple links on how to do this and did it.  Problem is that when I try to use adb and install the apk on my phone (with the amazon version) it installs ok then I just get a blank screen when my app loads.  So, I'm assuming I have something wrong with my adt command and was wondering if there is anyway to see what cs5.5 actually passes to adt and just copy that command.  Is that possible.  Also, here is my adt command and my adb command.  Any help would be great. 

       

      adt command:

       

      "C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR2.6\bin\adt" -package -target apk -airDownloadURL  http://www.amazon.com/gp/mas/dl/android?p=com.adobe.air -storetype pkcs12 -keystore keys.p12 -storepass whatwhat superKaleidoscope.apk superKaleidoscope-app.xml superKaleidoscope.swf newThumb36.png newThumb48.png thumb72.png

       

      I get back this weird "test" word like below

      test

       

      then to install it I do :

      "C:\Users\J\Downloads\android-sdk_r11-windows

       

      \android-sdk-windows\platform-tools\adb.exe" install superKaleidoscope.apk

      1669 KB/s (160722 bytes in 0.094s)

              pkg: /data/local/tmp/superKaleidoscope.apk

      Success

       

      Am I missing something?

        • 1. Re: Underlying adt command in cs5.5 ... for AIR Android
          jo_sh Level 1

          Ok, I've got new info from Amazon.... When I try to publish with adt (it doesn't work) logcat says

           

          couldn't save which view has focus because the focused vie com.adobe.air.AIRWindowSurfaceView@45d8c4b0 has no id".

           

          Does anybody know how / why I'm getting this error?

          • 2. Re: Underlying adt command in cs5.5 ... for AIR Android
            jo_sh Level 1

            Just tried using AIR 2.7  ... Same deal Surface Error.  Can somebody from Adobe tell me what is wrong with my adt command or.... is there some way to change what cs5.5 uses when it packages the apk file?  'Cause it works when I use cs5.5, but the airDownloadURL it writes to the apk file is incorrect and I can't get it through Amazon's review process.

             

            Thanks,

            Josh

            • 3. Re: Underlying adt command in cs5.5 ... for AIR Android
              jo_sh Level 1

              Thought maybe it's some problem with my app xml file, but I don't think so.  Here is what I've got... Anybody, anybody at all got any ideas?

               

              [CODE]

               

              <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
              <application xmlns="http://ns.adobe.com/air/application/2.7">

               

                <id>app</id>

               

                <versionNumber>1.0.4</versionNumber>

               

                <filename>app</filename>

               

                <description/>

               

               

                <!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->

               

                <name>App</name>

               

               

                <!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->

               

                <copyright/>

               

                <initialWindow>
                  <content>app.swf</content>
                  <systemChrome>standard</systemChrome>
                  <transparent>false</transparent>
                  <visible>true</visible>
                  <fullScreen>true</fullScreen>
                  <aspectRatio>landscape</aspectRatio>
                  <renderMode>auto</renderMode>
                  <autoOrients>false</autoOrients>
                </initialWindow>

               

                <icon>
                 
                  <image48x48>newThumb48.png</image48x48>
                  <image72x72>thumb72.png</image72x72>
                  <image36x36>newThumb36.png</image36x36></icon>

               

                <customUpdateUI>false</customUpdateUI>

               

                <allowBrowserInvocation>false</allowBrowserInvocation>

               

                <android>
                  <manifestAdditions>

                    <![CDATA[<manifest>
              <uses-permission android:name="android.permission.INTERNET"/>
              <uses-permission android:name="android.permission.CAMERA"/>
              <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
              <uses-permission android:name="android.permission.WAKE_LOCK"/>
              </manifest>]]>
                  </manifestAdditions>
                </android>

                <iPhone>
                  <InfoAdditions>

                    <![CDATA[<key>UIDeviceFamily</key><array><string>1</string></array>]]>
                  </InfoAdditions>
                  <requestedDisplayResolution>standard</requestedDisplayResolution>
                </iPhone>

              </application>

              [/CODE]

              • 4. Re: Underlying adt command in cs5.5 ... for AIR Android
                jo_sh Level 1

                I'm using Pixel Bender in my project... Is there something I could be missing in the adt call that would reference the pixel bender file that I embed with [EMBED] in the fla file?

                • 5. Re: Underlying adt command in cs5.5 ... for AIR Android
                  joshua_shizny

                  Here is the answer I was looking for, from a post just a couple up from mine...  

                  For me works editing of Markets.xml file at:

                  "C:\Program Files\Adobe\Adobe Flash CS5.5\en_US\Configuration\Android\Markets.xml"

                  and replacing of Amazon Appstore key to

                  <market name="Amazon Appstore" url="http://www.amazon.com/gp/mas/dl/android?p=com.adobe.air"/>