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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:09:25+00:00 2026-05-29T21:09:25+00:00

After releasing my product, I’ve started getting complaints that a certain screen was not

  • 0

After releasing my product, I’ve started getting complaints that a certain screen was not working for some phones. After a lot of research and a lot of attempts to fix this issue, I found out that phones that are controlled by heat instead of pressure have this issue. Unfortunately I have only identified the problem. What is happening is the mouse up and mouse move motion events seem to be the same motion. Here is how my code works:

if(event.getAction()==MotionEvent.ACTION_MOVE)
{
    lockdown=true;
}
else if(event.getAction()==MotionEvent.ACTION_UP && lockdown==false)
{
     ...
}
else if(event.getAction()==MotionEvent.ACTION_UP)
{
    ...
    lockdown=false;
}

This code works on a pressure touch phone like mine just fine. It’s designed that while the touch is dragged certain things will not function. I could really use some insight on how to fix this issue.

  • 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-29T21:09:29+00:00Added an answer on May 29, 2026 at 9:09 pm

    after an exhuasting night of going back and forth with my testers this is what ive come up with

    // somewhere in the prior code a pressure sample is needed
    public float dwnPressure
    if(event.getAction()==MotionEvent.ACTION_DOWN)
    {
     dwnPressure=float(event.getPressure()*0.99)
    }
    

    back to the code where i had problems

    if(event.getAction()==MotionEvent.ACTION_MOVE)
    {
     if(event.getPressure>dwnPressure)
     {
      lockdown=true;
     }
    }
    else if(event.getAction()==MotionEvent.ACTION_UP && lockdown==false)
    {
     ...
    }
    else if(event.getAction()==MotionEvent.ACTION_UP)
    {
    ...
     lockdown=false;
    }
    

    this change works perfectly on some of the phones that had the problem prior. Some phones there is a significant performance improvement but is a bit finicky. I figured id at least share my hard work even if it isn’t 100%, since this question wasn’t answered as fast as im used to on stackoverflow

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

Sidebar

Related Questions

I'm new to Objective C. I see in many iPhone/iPad applications that after releasing
After releasing objects is it best to set the pointers to nil? Thats what
I'm seeking further clarification after seeing What is responsible for releasing NSWindowController objects? I'm
After some experience with functional languages, I'm starting to use recursion more in Java
After working in Eclipse for the past 3 years and memorizing all of the
After I thought that I've understood how they work, I tried this: NSString *str1
I have an object that is called from two different threads and after it
I have a strange(?) crash after releasing MKMapView. MKMapView is a subview in my
I am malloc ing an array of c strings. After releasing it, I get
RIM has released a new Blackberry JDE4.7 after releasing the Blackberry Storm. Does the

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.