Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6806873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:45:49+00:00 2026-05-26T19:45:49+00:00

I am currently trying to test an existing application for compatibility with the soon

  • 0

I am currently trying to test an existing application for compatibility with the soon to be released Amazon Kindle Fire tablet. They say to set the emulator at 600×1024 and LCD Density to 169 (https://developer.amazon.com/help/faq.html?ref_=pe_132830_21362890#KindleFire although in email they said 160 instead of 169) and that it should report out as being “large” and not “xlarge” (this I have from a back and forth email exchange with their support team where I’m complaining it does not work).

Google seems to support this as being true in their section on testing for multiple screen sizes when they list this resolution and MDPI as being “large” (http://developer.android.com/guide/practices/screens_support.html#testing). However, anytime I include a “layout-xlarge” folder along with the “layout-large”, the emulator is always loading the “xlarge”. If I change the LCD Density to something like 240, it loads “large” instead of “xlarge”, but that is not supposed to be correct and I’m worried that means it won’t work on the final device. To test this, I took the API-10 sample of “Multi-Res” and created a series of layout folders described above and every time it loaded “xlarge” if it was there and would load “large” if there was not an “xlarge”.

So, my question is if I’m reading the documentation correctly or if my emulator is somehow messed up as the folks at Amazon are insisting it should be reporting as “large”, which if that were true it would never load “xlarge” right?

Here is what I have in the manifest in the example Multi-Res that I modified to test this:

<?xml version="1.0" encoding="utf-8"?>
<manifest
  xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.android.multires"
  android:versionCode="1"
  android:versionName="1.0">

  <uses-permission
    android:name="android.permission.INTERNET"/>

  <application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name">

    <activity
      android:name=".MultiRes"
      android:label="@string/app_name">
      <intent-filter>
        <action
          android:name="android.intent.action.MAIN"/>
        <category
          android:name="android.intent.category.LAUNCHER"/>
      </intent-filter>
    </activity>
  </application>

  <uses-sdk android:minSdkVersion="4" />

  <supports-screens android:anyDensity="true"
                    android:xlargeScreens="true"
                    android:largeScreens="true"
                    android:normalScreens="true"
                    android:smallScreens="true" />

</manifest>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:45:49+00:00Added an answer on May 26, 2026 at 7:45 pm

    This seems to be a bug in the documentation. If we look at the actual code that is used to calculate screen size, we can see that a 600×1024 screen at 160 dpi will indeed be considered as xlarge.

    Don’t take my word for it. The implementation is in WindowManagerService.computeNewConfigurationLocked() (warning for slow JavaScript). The interesting bits are as follows. The screen size in pixels is scaled based on density:

        longSize = (int)(longSize/dm.density);
        shortSize = (int)(shortSize/dm.density);
    

    For a an mdpi (160 dpi) screen, dm.density will be 1.0. For hdpi (240 dpi) it will be 1.5. In our case we have an mdpi screen. So after this code has run, longSize == 1024 and shortSize == 600. Shortly after, we reach this code:

        // What size is this screen screen?
        if (longSize >= 800 && shortSize >= 600) {
            // SVGA or larger screens at medium density are the point
            // at which we consider it to be an extra large screen.
            mScreenLayout = Configuration.SCREENLAYOUT_SIZE_XLARGE;
        } else if ( // ...
    

    which with our values of longSize and shortSize means that mScreenLayout will be assigned Configuration.SCREENLAYOUT_SIZE_XLARGE, in other words that the screen will be considered ‘xlarge’. It is interesting to note that if the screen was one pixel smaller on the short side, it would only be considered as ‘large’.

    So, you are reading the documentation correctly, but as far as I can see, the documentation is wrong and your emulator is just fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to test some code I have in a web application
I'm currently trying to get a unit test set up for an HttpServlet class
I currently trying to find a solution, how to ensure that a test fails
I'm currently debugging some fairly complex persistence code, and trying to increase test coverage
i'm trying to write an unit test for my Android's RelativeLayout. Currently, my testcode
I am trying to test drive an application feature using Robotium. One of the
I'm currently trying to reduce the time taken to compile and unit test projects
I'm currently trying to test a strcat() function that I wrote myself. Instead of
I am currently trying to test a C# client with the NMS Api .dlls
I'm currently trying to test BizTalk with BizUnit but the documentation is dreadful. At

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.