Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10228] Android: Can't build app with support for xlarge screens

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-08-06T22:34:31.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid, Tooling
Labelsandroidbuild, cb-verified
ReporterDavide Cassenti
AssigneeChris Barber
Created2012-07-30T05:22:31.000+0000
Updated2017-03-21T21:46:25.000+0000

Description

Problem description

When an app is built for a tablet, at the startup of the app the system gives a warning that this app has not been made for the tablet device, and that it will stretch the contents to fit the screen. Also, there is an icon in the status bar to change this behavior to "zoom to fill screen" where everything looks pixelated.

Steps to reproduce

1. Create an app 2. Run it on a tablet (e.g. Samsung Galaxy Tab 10.1) or use the emulator with WXGA800 resolution.

Note

Looks like you can avoid this issue by setting support for xlarge screens in AndroidManifest.xml: However, setting this makes the build fail, as this is supported only from SDK v9 and above, while our AndroidManifest.xml contains v7: target=android-7

Customer ticket

http://support.appcelerator.com/tickets/APP-264512

Comments

  1. Ricardo Arguello 2012-07-30

    I added this to my tiapp.xml: http://schemas.android.com/apk/res/android"> 10 And that did the trick! I am not sure this is actually a bug, since in android 2.2 the support for xlargeScreens did not exist. Thanks!
  2. Eric Merriman 2012-07-30

    @Davide, what Titanium SDK version are you using?
  3. Davide Cassenti 2012-07-30

    Closing as invalid. The issue can be avoided by adding the following line inside in tiapp.xml: 10
  4. Maria Mercedes wyss Alvarez 2012-08-31

    This bug not is closed, the sentence android:xlargeScreens="true" is invalid. [ERROR] Application Installer abnormal process termination. Process exit value was 1 [ERROR] /Users/itrjwyss/Documents/BancoInternacional/svn/Apps/Appcelerator/trunk/Version1/build/android/AndroidManifest.xml:2: error: No resource identifier found for attribute 'xlargeScreens' in package 'android' [ERROR] Error generating R.java from manifest flag this error.
  5. Neeraj Gupta 2012-09-02

    @Maria - What is the SDK version you are using?
  6. Amuktha Akkinepally 2012-12-20

    We have another customer facing similar issue as Maria, They are using Ti SDK 2.1.3GA. Any idea about the issue?
  7. Amuktha Akkinepally 2013-01-14

    Console Log

       [DEBUG] /Users/newmedia/Entwicklung/android-sdk/platform-tools/aapt package -m -J "/Users/newmedia/Entwicklung/Titanium/Suedostschweiz/Mobile/Suedostschweiz Mobile/build/android/gen" -M "/Users/newmedia/Entwicklung/Titanium/Suedostschweiz/Mobile/Suedostschweiz Mobile/build/android/AndroidManifest.xml" -S "/Users/newmedia/Entwicklung/Titanium/Suedostschweiz/Mobile/Suedostschweiz Mobile/build/android/res" -I /Users/newmedia/Entwicklung/android-sdk/platforms/android-8/android.jar
       [ERROR] /Users/newmedia/Entwicklung/Titanium/Suedostschweiz/Mobile/Suedostschweiz Mobile/build/android/AndroidManifest.xml:12: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'
       [DEBUG] /Users/newmedia/Entwicklung/android-sdk/platform-tools/aapt package -f -M AndroidManifest.xml -A "/Users/newmedia/Entwicklung/Titanium/Suedostschweiz/Mobile/Suedostschweiz Mobile/build/android/bin/assets" -S res -I /Users/newmedia/Entwicklung/android-sdk/platforms/android-8/android.jar -I "/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA/android/titanium.jar" -F "/Users/newmedia/Entwicklung/Titanium/Suedostschweiz/Mobile/Suedostschweiz Mobile/build/android/bin/app.ap_"
       [ERROR] AndroidManifest.xml:12: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'
       
       
       
  8. Davide Cassenti 2013-02-04

    When keeping a custom AndroidManifest.xml, you must anyway specify this in tiapp.xml:
       <android xmlns:android="http://schemas.android.com/apk/res/android">
       	<tool-api-level>10</tool-api-level>
       </android>
       
  9. Chris Barber 2013-08-06

    Unable to reproduce this with Titanium SDK 3.1.1.GA using android-10 (2.3).
  10. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source