应用程序意外停止(Adobe AIR / Android / FlashDevelop)

时间:2014-09-01 17:01:48

标签: android actionscript-3 air flashdevelop

编辑:原来我的Android设备与Adobe AIR兼容:(

我尝试使用Adobe AIR构建应用程序(使用FlashDevelop)在我的Android设备上运行。然而,当我在我的设备上使用goto android-test运行APK时,它立即停止并关闭消息"应用程序意外停止。"此外,当我尝试使用goto android-debug在调试模式下运行时,我只得到一个空白的黑屏。

这是我的主要课程:

package
{
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    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;
        }

        private function deactivate(e:Event):void 
        {
        }

    }

}

这是我的application.xml:

<?xml version="1.0" encoding="utf-8" ?> 
<application xmlns="http://ns.adobe.com/air/application/14.0">

    <id>ceronio.net.mobile2</id>
    <versionNumber>0.1</versionNumber>
    <supportedProfiles>mobileDevice</supportedProfiles>
    <filename>mobile2</filename>

    <name>mobile2</name>
    <description></description>
    <copyright></copyright>

    <android>
        <manifestAdditions><![CDATA[

            <manifest android:installLocation="auto">
              <uses-sdk android:minSdkVersion="8"/>
                <uses-permission android:name="android.permission.INTERNET"/>
                <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
            </manifest>

        ]]></manifestAdditions>
    </android>
    <iPhone> 
        <InfoAdditions><![CDATA[ 

            <key>UIStatusBarStyle</key> 
            <string>UIStatusBarStyleBlackOpaque</string> 
            <key>UIRequiresPersistentWiFi</key> 
            <string>NO</string>
            <key>UIPrerenderedIcon</key>  
            <true/>
            <key>UIApplicationExitsOnSuspend</key>
            <true/>

            <key>UIDeviceFamily</key>
            <array>
                <!-- iPhone support -->
                <string>1</string> 
                <!-- iPad support -->
                <!--<string>2</string>-->
            </array>

        ]]></InfoAdditions> 
        <requestedDisplayResolution>high</requestedDisplayResolution>
    </iPhone> 

    <initialWindow>
        <title>mobile2</title>
        <content>mobile2.swf</content>
        <visible>true</visible>
        <fullScreen>true</fullScreen>
        <renderMode>direct</renderMode>
    </initialWindow>

    <icon>
        <image48x48>icons/icon_48.png</image48x48>
        <image57x57>icons/icon_57.png</image57x57>
        <image72x72>icons/icon_72.png</image72x72>
    </icon>

</application>

我使用Flex 4.6.0和AIR 14.0 SDK并且FlashDevelop是最新的。

0 个答案:

没有答案