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

  • Home
  • SEARCH
  • 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 7951393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:32:48+00:00 2026-06-04T02:32:48+00:00

I have a problem. So I just put my first game on Google Play.

  • 0

I have a problem. So I just put my first game on Google Play. It’s a simple bridge building game.

Myself I have Samsung Galaxy S Plus running on Android 2.3.6. The game worked well on my phone, Sony Xperia Ray, HTC Gratia and Samsung Ace.

After putting my game on the market I got few responses telling me that players see nothing but white boxes which means textures don’t work for some reason. These phones were LG Optimus Black and Samsung Galaxy S running on 4.0.4. So Android 4.0.4 is custom for Samsung Galaxy S because they didn’t release official one.

What to do? All my images are 24 bit PNG and all are power of 2.

Here’s how I load them:

/** @return texture ID
*/
public int loadTexture(int resource)
{
    int[] temp = new int[1];
    gl.glGenTextures(1, temp, 0);

    Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(),
            resource);
    gl.glBindTexture(GL10.GL_TEXTURE_2D, temp[0]);
    gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);
    gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);
    GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);

    // recycle the bitmap
    bitmap.recycle();

    return temp[0];
}

And here’s the link: https://play.google.com/store/apps/details?id=com.fizzicsgames.trainthemtocrosslite

  • 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-06-04T02:32:50+00:00Added an answer on June 4, 2026 at 2:32 am

    Oh, I’m so stupid. So the problem was caused by placing textures in drawable folder instead of drawable-nodpi. Textures worked correcly on MDPI devices and on devices which support non power of 2 textures (like my Galaxy S Plus). Even though textures were power of 2, they got scaled depending on the screen. So always place your textures in drawable-nodpi if you don’t want to create a copy for each of the resolutions.

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

Sidebar

Related Questions

I have just put the first step in android,and just started with hello android
i have a problem just as title, and the http-status is 302 Moved Temporarily.
I have the problem I just installed the new Monodevelop 2.2.2 on Windows but
I have this problem and i just cannot find a solution to it. I
I just started a graphical C++ course and I have problem getting an overview
I have tried troubleshooting this problem and just ended up with nothing, I hope
I have a problem with my WCF Data Service, and this one is just
I just started working with Android and I have a problem with my map.
I have a problem, i have a query that just simply displays the user
I am having a problem that just started happening in OS 3.1. I have

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.