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 6749297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:40:24+00:00 2026-05-26T12:40:24+00:00

i am attempting to get my android app to work on both phone type

  • 0

i am attempting to get my android app to work on both phone type devices and tablets. for the layouts i have layout-normal and layout-large and i place my xml files inside each and it seems to select the correct one for each device (layout-normal for phones and layout-large for tablets).

however the problem arises for the drawable folders. i have drawable-hdpi, drawable-mdpi and drawable-ldpi. the tablet is taking its images from the drawable-mdpi, and the phone is taking its images from the drawable-hdpi. from the reading i have been doing this seems to be backwards??? this seems to happen on both the emulator and real devices, could i be doing something wrong? am i mixing something up?

  • 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-26T12:40:25+00:00Added an answer on May 26, 2026 at 12:40 pm

    Clayton,

    drawable-hdpi and drawable-mdpi is not related to the size of the screen itself, but to the resolution of the display.

    It’s probably easy to think in terms of the iPhone 3GS and 4 for this (bear with me please). The 4 has retina display, hence a much higher resolution. Using the same sprites you’d use with the 3GS would result in a blurry display.

    Android phones are, if anything, much more diverse in terms of screen options.

    If you want to be able to aim different layouts at different resolutions, please try putting the layouts into /layout-xlarge, /layout-large, etc…

    You can find more here:

    http://developer.android.com/guide/practices/screens_support.html

    There are some changes that you can see for Android 3.2 and above:

    Beginning with Android 3.2 (API level 13), the above size groups are
    deprecated and you should instead use the swdp configuration
    qualifier to define the smallest available width required by your
    layout resources. For example, if your multi-pane tablet layout
    requires at least 600dp of screen width, you should place it in
    layout-sw600dp/. Using the new techniques for declaring layout
    resources is discussed further in the section about Declaring Tablet
    Layouts for Android 3.2.

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

Sidebar

Related Questions

I'm finally attempting to run proguard for my android app but I get the
I'm creating my first android app (or attempting to anyway) and i have a
I have been attempting to get log4net logging in my asp.net web application with
I am attempting to get my app to open a settings menu screen and
I am attempting to update my android application to look better for tablets running
I'm attempting to implement a binary tree for an Android app, and I want
I'm attempting to port an iphone app to the android. Inside of the app
I was putting the finishing touches on my app today. I created a layout-large
I'm attempting to use a custom Android vertical scrollbar widget that seems to work
While attempting to get an old svn dump of a project under git control,

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.