Note that there are some explanatory texts on larger screens.

plurals
  1. POAIR application crash on Android
    text
    copied!<p>I develop an application for Android using Adobe AIR and FlashDevelop. Unfortunately my app crashes after start (standard "process has air.HelloWorld stopped" message) and I can't setup debugger (freeze on "waiting for Flash Player to connect to debugger"). </p> <p>When I try to start it in FlashDevelop - it works. The problem arises when I install .apk on emulator and try to start it.</p> <p><strong>Main.as</strong></p> <pre><code>import flash.desktop.NativeApplication; import flash.events.Event; import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.ui.Multitouch; import flash.ui.MultitouchInputMode; public class Main extends Sprite { public function Main() : void { stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; stage.addEventListener(Event.DEACTIVATE, deactivate); // touch or gesture? Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; // entry point var main : FlixelMain = new FlixelMain(); addChild(main); } private function deactivate(e:Event) : void { // auto-close NativeApplication.nativeApplication.exit(); } } </code></pre> <p><strong>FlixelMain.as</strong></p> <pre><code>import org.flixel.*; public class FlixelMain extends FlxGame { public function FlixelMain() { FlxG.mobile = true; super(480, 800, MenuState, 1, 60); } } </code></pre> <p><strong>application.xml</strong></p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;application xmlns="http://ns.adobe.com/air/application/3.1"&gt; &lt;id&gt;air.HelloWorld&lt;/id&gt; &lt;versionNumber&gt;0.1&lt;/versionNumber&gt; &lt;supportedProfiles&gt;mobileDevice&lt;/supportedProfiles&gt; &lt;filename&gt;HelloWorld&lt;/filename&gt; &lt;name&gt;HelloWorld&lt;/name&gt; &lt;android&gt; &lt;manifestAdditions&gt;&lt;![CDATA[&lt;manifest android:installLocation="auto"&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch" /&gt; &lt;/manifest&gt;]]&gt; &lt;/manifestAdditions&gt; &lt;/android&gt; &lt;initialWindow&gt; &lt;title&gt;HelloWorld&lt;/title&gt; &lt;content&gt;HelloWorld.swf&lt;/content&gt; &lt;visible&gt;true&lt;/visible&gt; &lt;fullScreen&gt;true&lt;/fullScreen&gt; &lt;!--&lt;autoOrients&gt;false&lt;/autoOrients&gt;--&gt; &lt;!--&lt;aspectRatio&gt;landscape&lt;/aspectRatio&gt;--&gt; &lt;renderMode&gt;cpu&lt;/renderMode&gt; &lt;systemChrome&gt;standard&lt;/systemChrome&gt; &lt;aspectRatio&gt;portrait&lt;/aspectRatio&gt; &lt;/initialWindow&gt; &lt;icon&gt; &lt;image72x72&gt;icons/icon_72.png&lt;/image72x72&gt; &lt;image114x114&gt;icons/icon_114.png&lt;/image114x114&gt; &lt;image512x512&gt;icons/icon_512.png&lt;/image512x512&gt; &lt;/icon&gt; &lt;/application&gt; </code></pre> <p><strong>Exported APK file</strong></p> <p><a href="http://dynax.boo.pl/HelloWorld.apk" rel="nofollow">http://dynax.boo.pl/HelloWorld.apk</a></p> <p>If anyone could check this file on his device or knows this problem I will be grateful :) Greetings.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload