Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

8. Runtime Enhancements > Android Color Depth Setting (Mobile)

Android Color Depth Setting (Mobile)

When targeting AIR 3 for Android, we can now specify whether we want the application compiled for either a 16-bit or 32-bit color mode. To accomplish this, we will need to modify the AIR application descriptor file.

Warning

This will only work with <renderMode> set to “cpu” or “auto”. The setting is not effective in “gpu” mode since it requires a 32-bit color mode.

To specify a certain color space, be sure to first locate the <initialWindow> node and find the <renderMode> node which is nested within. Be sure that the value of <renderMode> is set to “auto” or “cpu”.

<android>
    <manifestAdditions>
        <![CDATA[

            <manifest android:installLocation="auto">

                <uses-permission android:name="android.permission.INTERNET"/>
                <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
                <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>

                <application android:enabled="true">
                    <activity android:excludeFromRecents="false">
                        <intent-filter>
                            <action android:name="android.intent.action.MAIN"/>
                            <c....<colorDepth>32bit</colorDepth>

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial