Optimize for tablets

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Optimize for tablets

Post by Jellobus » Tue Oct 01, 2019 8:31 pm

Hello,

I made a standalone that dynamically resizes its width and height for tablet screens but the developer console indicates that the .apk file should include custom drawable assets for tablet screens.

I got the alert: "Your APK should include custom drawables assets for common tablet screen densities."

If you see the manifest file in LC below, all screen supports are set to true. What should I modify to include custom drawable assets for tablets?

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="${IDENTIFIER}"
          android:versionCode="${VERSION_CODE}"
          android:versionName="${VERSION_NAME}"
          ${INSTALL_LOCATION}>
${PUSH_PERMISSIONS}
${USES_PERMISSION}${USES_FEATURE}
  <uses-sdk android:minSdkVersion="${MIN_SDK_VERSION}" android:targetSdkVersion="${TARGET_SDK_VERSION}"/>
  <supports-screens
      android:largeScreens="true"
      android:normalScreens="true"
      android:smallScreens="true"
      android:anyDensity="true" />
  <application android:label="${LABEL}" ${ICON} android:debuggable="false">
    <activity android:name="${NAME}"
      android:theme="${THEME}"
      android:screenOrientation="${ORIENTATION}"
      android:configChanges="${CONFIG_CHANGES}"
      android:windowSoftInputMode="stateHidden"
      android:launchMode="singleTask"
      android:hardwareAccelerated="${HARDWARE_ACCELERATED}">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
      ${NFC_FILTER}
      ${CUSTOM_URL_FILTER}
    </activity>
    ${PROVIDER}
    ${SERVICE}
    ${RECEIVER}
    ${PUSH_RECEIVER}
    ${AD_ACTIVITY}
  </application>
</manifest>

Post Reply

Return to “Android Deployment”