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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:02:27+00:00 2026-05-26T05:02:27+00:00

I am having a problem with HDPI screens (tested on Samsung Galaxy S2). I

  • 0

I am having a problem with HDPI screens (tested on Samsung Galaxy S2).

I have a texture map which I use in conjunction with the OES_draw_texture 1.1 extension. This works fine for MDPI screens, big and small (tested on HTC Legend and Asus Transformer tablet). The texture map is cropped correctly and the texture is displayed correctly.

However, on the Galaxy S2 (and presumably all HDPI devices), the texture map is not cropped correctly. The texture map is located in the /drawable/ directory, and the minSdkVersion is set to 4, so Screen Compatibility will not be on. If screen compatibility is turned on (by setting minSdkVersion to 3), it works correctly even on the S2 because it’s emulating an MDPI screen.

I was under the impression that if you were to access a drawable resource “a”, Android would look in the specific density folder (in this case /drawable-hdpi/) and if not found, fall back onto /drawable/ or /drawable-mdpi/. I have not been able to find documentation to support this however.

My questions are as follows:

  • What is the behaviour of Android’s resource searching? Does it actually fall back onto mdpi if it cannot find the resource in hdpi? Source?
  • Why is OES_draw_texture GL-ES1.1 extension failing to crop correctly? I suspect it has to do with px and dp; draw_texture typically uses direct pixels, but Android may be trying to use dp and therefore multiplies all crop positions by 1.5 since the resource is located in the /drawable/ folder?
  • Is there a way to force an HDPI device to emulate MDPI without using screen compatibility?

Any knowledge into this would be appreciated.

  • 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-26T05:02:28+00:00Added an answer on May 26, 2026 at 5:02 am

    From here. (When loading your texture)

    // This will tell the BitmapFactory to not scale based on the device's pixel density:
    // (Thanks to Matthew Marshall for this bit)
    BitmapFactory.Options opts = new BitmapFactory.Options();
    opts.inScaled = false;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having problem in my UIscrollView ,this is what I have done: Whenever a
I'm having problem with datagrid view. I have attached an image with the code
hello I am having problem related to https:// . I have used FB.getLoginStatus(function(response) function
m having problem in passing parameter to controller action, i have done the following
Hi I'm having problem refreshing my listview after Async operation. I have a simplecursoradapter,
I am having problem in using this font in my Application. I have imported
I having problem figuring howto preserve the present state ...Let say I have selected
Im having problem with cordova xcode app. I already have my html page setup.
Im having problem's adding map markers to gmaps using jquery. Here is my code
am having problem in Saving some data in my Java code. I have like

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.