Share to EffectHub.com

You can earn money or coins from your share:)

Tips: you can use Sparticle for uploading away3D effects.

Tips: you can download Sparticle for uploading effects.

Tips: The ActionScript editor is supporting Away3D, Starling, Dragonbones and Flex frameworks.

Tips: paste the web page URL then click button:)

How do i debug my adobe air for android application on my device?



i tried like a 100 websites.....
none of them worked...
and some of them i could not understand..
how do i debug it on my nexus 4...using usb or remote debugging
i tried publishing from flash pro cc and flash cs6..
i am a complete newbie i am 14 .. i have been working on this app for 1 month now..
and i need to know how to publish it..

i appreciate your replies..

Tags

2317 views    1 answers

The Best Answer

0


  1. Check that your phone has debugging enabled in Settings-> Application Settings -> Development -> USB Debugging

  2. Make sure that USB storage on the phone is turned on. (These two settings are required to publish your apps onto the phone)

  3. Make sure both your computer and your device are connected to the same wi-fi network. Sounds obvious I know but sometimes my phone disconnects from the wi-fi.

  4. Within the Flash CS5 AIR Android Settings in the Deployment tab check the Device Debugging radio button.

  5. In the same settings, check Install Application on the connected Android device and uncheck Launch Application on the connected Android device.

    AIR Android debug settings

  6. Enable INTERNET_PERMISSIONS in your app by adding the following to your app’s xml config file. This should be in the same folder and have the same name as your fla file, but with the suffix -app.xml. Open it in your text editor of choice and add the following XML :

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

    Make sure you add this to the top of the XML, not the bottom! I put it between the <copyright> and the <initialWindow> definitions:

    ...    <copyright></copyright>
        <android>
            <manifestAdditions>
                <manifest>
                    <data><![CDATA[ <uses-permission android:name="android.permission.INTERNET" /> ]]></data>
                </manifest>
            </manifestAdditions>
        </android>
        <initialWindow>
            <content>MyApp.swf</content>...

    If you put it under the <initialWindow> definitions, the AIR Android extension seems to wipe it! It took me a while to work this one out, I expect they’ll fix it in the final build. I’ve also suggested that they set this permission by default if you’re publishing a debug build, it’d kinda make sense to me. :)

  7. Now you’re ready to publish the file, so hit Publish in the AIR Android Settings window. Your app will compile and get copied over to your device. But it won’t automatically run.

  8. Start remote debugging in Flash CS5: select the Debug -> Begin remote debug session -> Actionscript 3.0 menu item.

    Set up a remote debugging session

  9. And now run your app. With any luck, you should see the name of your swf in the debug output window.

    Yayz! We have AIR Android debugging!

    You may still get the Enter IP Address or Hostname dialogue box but I must admit I only ever saw this if I didn’t set up the other options correctly. But if you do see it try typing the local IP address of your computer first, then the global one.


A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2014-07-11     0 Comments

surfzsl

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2014-06-12

Public Question, everyone could view answers and download attachments.

Finish this task then you can earn 10

Task Finished


>>Back to Task List


Sponsor


You may interest with



Share

Join Effecthub.com


Or Login with Your Email Address:

Or Sign Up with Your Email Address:
This field must contain a valid email
Password should be at least 1 character

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: views/footer.php

Line Number: 6

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/task.php

Line Number: 19

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/task.php

Line Number: 84