Copy link to clipboard
Copied
Hi,
I think since the Pie update, the app I've made with Adobe AIR is not in "fullscreen" anymore (Galaxy S8). I can see 2 blacks borders at the top and the bottom of my app.
I've put this code when my app is launching :
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
stage.scaleMode = StageScaleMode.EXACT_FIT;
Should I do something else in oder to put my app in fullscreen ?
<android>
<colorDepth>16bit</colorDepth>
<manifestAdditions><![CDATA[
<manifest android:installLocation="auto">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="27" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="
...Copy link to clipboard
Copied
Thx. I added the line but I can still see the 2 blacks borders.... Any other idea ?
Copy link to clipboard
Copied
I've read that I should also put
<activity android:resizeableActivity="false"></activity>
But I don't know where...
When I put this line here :
<android>
<manifestAdditions><![CDATA[<manifest>
<activity android:resizeableActivity="false"></activity>
<meta-data android:name="android.max_aspect" android:value="2.50"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
</manifest>]]></manifestAdditions>
</android>
I've got this error in Flash :
Any idea where should I put the line <activity android:resizeableActivity="false"></activity> ? (and if this line will fix my problem)
Copy link to clipboard
Copied
Try to add it inside the <application> scope
Copy link to clipboard
Copied
You mean here ? :
<application xmlns="http://ns.adobe.com/air/application/32.0">
<activity android:resizeableActivity="false"></activity>
<id>nc.cocogeek.mareeNC</id>
<versionNumber>6.4.1</versionNumber>
<filename>Marees NC</filename>
<description/>
<name>Marees NC</name>
<copyright/>
<initialWindow>
....
EDIT : apparently not... I've got an error when I put this line here...
Copy link to clipboard
Copied
<application android:enabled="true">
<activity android:excludeFromRecents="false" android:hardwareAccelerated="true" android:resizeableActivity="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
Copy link to clipboard
Copied
In <android> ?
EDIT :
Here's my xml file :
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!--
Usage:
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>
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>
-->
<application xmlns="http://ns.adobe.com/air/application/32.0">
<id>nc.cocogeek.mareeNC</id>
<versionNumber>6.4.1</versionNumber>
<filename>Marees NC</filename>
<description/>
<name>Marees NC</name>
<copyright/>
<initialWindow>
<content>mareess_mobile%20android3.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>true</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>cpu</renderMode>
<autoOrients>false</autoOrients></initialWindow>
<icon>
<image29x29>icons4/29.png</image29x29>
<image57x57>icons4/57.png</image57x57>
<image114x114>icons4/114.png</image114x114>
<image512x512>icons4/512.png</image512x512>
<image48x48>icons4/48.png</image48x48>
<image72x72>icons4/72.png</image72x72>
<image50x50>icons4/50.png</image50x50>
<image58x58>icons4/58.png</image58x58>
<image100x100>icons4/100.png</image100x100>
<image144x144>icons4/144.png</image144x144>
<image1024x1024>icons4/1024.png</image1024x1024>
<image40x40>icons4/40.png</image40x40>
<image76x76>icons4/76.png</image76x76>
<image80x80>icons4/80.png</image80x80>
<image120x120>icons4/120.png</image120x120>
<image152x152>icons4/152.png</image152x152>
<image180x180>icons4/180.png</image180x180>
<image60x60>icons4/60.png</image60x60>
<image75x75>icons4/75.png</image75x75>
<image87x87>icons4/87.png</image87x87>
<image167x167>icons4/167.png</image167x167>
<image36x36>icons4/36.png</image36x36>
<image96x96>icons4/96.png</image96x96>
<image192x192>icons4/192.png</image192x192>
</icon>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<supportedLanguages>fr</supportedLanguages>
<versionLabel/>
<android>
<manifestAdditions><![CDATA[<manifest>
<meta-data android:name="android.max_aspect" android:value="2.50"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
</manifest>]]></manifestAdditions>
</android>
<extensions>
<extensionID>com.milkmangames.extensions.EasyPush</extensionID>
<extensionID>ru.flashpress.FPMessages</extensionID>
<extensionID>com.freshplanet.ane.AirDeviceId</extensionID>
<extensionID>com.milkmangames.extensions.CoreMobile</extensionID>
<extensionID>com.myflashlab.air.extensions.permissionCheck</extensionID>
<extensionID>com.myflashlab.air.extensions.zipManager</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.androidSupport</extensionID>
<extensionID>com.myflashlab.air.extensions.dependency.overrideAir</extensionID>
</extensions>
</application>
Copy link to clipboard
Copied
I'm trying to put the lines you gave me everywhere I can but everytime I've got a descriptor error...
Can you help me to find where should I put those line in my xml please ?
Copy link to clipboard
Copied
I would change your "android" section to look like this instead (changes in bold):
<android>
<manifestAdditions>
<![CDATA[
<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<application>
<meta-data android:name="android.max_aspect" android:value="2.16" />
</application>
</manifest>
]]>
</manifestAdditions>
</android>
Copy link to clipboard
Copied
<android>
<colorDepth>16bit</colorDepth>
<manifestAdditions><![CDATA[
<manifest android:installLocation="auto">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="27" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-configuration android:reqFiveWayNav="true"/>
<supports-screens android:normalScreens="true"/>
<uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
<application android:enabled="true">
<activity android:excludeFromRecents="false" android:hardwareAccelerated="true" android:resizeableActivity="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
]]></manifestAdditions>
</android>
Copy link to clipboard
Copied
descriptor error?
Copy link to clipboard
Copied
Will it work for IOS device too ?
Copy link to clipboard
Copied
For iOS you just need to include the right splash screens for each type of device. See this article:
Launch Images on iOS with Adobe AIR | Adobe Developer Connection
Copy link to clipboard
Copied
GPU render mode would perform betters long as you don't have too many large images.
Using EXACT_FIT for the scale mode will stretch the stage to fill the height of the screen.