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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:07:08+00:00 2026-05-25T20:07:08+00:00

I have a few people complain that pressing the screen does nothing in my

  • 0

I have a few people complain that pressing the screen does nothing in my game.

My game, which is all 3D in openGLES2, uses the onTouchEvent to get screen presses and then converts them to 3D cords based on the screen resolution of the default display.

I am calling getHeight and getWidth, which I now notice are deprecated.

Now I could, and will, switch to getSize, but as my users will not comeback and test it again, and none of them are good enough to email so I can check with them, just negative comments on market I thought I’d check on here incase I am doing something else wrong.

So, I want to find the size of the display, is getWindowManager().getDefaultDisplay().getSize() a good and reliable way of doing this?

Or is it possible that I am not even receiving the onTouchEvent for some reason (I am reacting to getAction() == ACTION_DOWN inparticular).

The devices I know about with problems are:

Droid Charge, and
LG P500 (LG Optimus One)

Thanks,

Alan

  • 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-25T20:07:09+00:00Added an answer on May 25, 2026 at 8:07 pm

    I think my error was to save off the MotionEvent from the onTouchEvent so that I could process it in the opengl thread.

    But they appear to be recycled. So solution was to take a copy of the data I wanted (getRawX and getRawY) and not to use the MotionEvent outside onTouchEvent.

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

Sidebar

Related Questions

I have heard a few people make the comment that the default controller/provider for
I have heard a few people say that deploying a portlet war file (or
Recently I have seen a few people telling others that if they need to
I noticed a few people have tried to do similar things that I am
I have a special url which I would want only few people to have
Firstly, Modifying may be the wrong term, I see a few people have posted
I have seen a few times people using -1 as opposed to 0 when
I have few graphic effects on image which i am able to run on
I have an AIR/Flex app I made, I have a few people testing it
This seems to be quite a common theme and a few people have given

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.