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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:08:39+00:00 2026-06-10T08:08:39+00:00

I am developing ui automation platform for android. For some reason sometimes (very rare)

  • 0

I am developing ui automation platform for android.

For some reason sometimes (very rare) click events can be dropped

When it happen I see in log

I/InputDispatcher( 2707): Dropped event because input dispatch is disabled.

Please advise what can be done to enable input dispatch.

Thank you in advance

  • 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-10T08:08:41+00:00Added an answer on June 10, 2026 at 8:08 am

    It happened only when screen was off. Click event was turning screen on, but it event was quicker than turning screen on.

    Now, I am checking if screen is off and turning it on

    //Acquire wake lock in case screen is off
    if (PermissionsUtil.checkSelfPermission(getContext(), Manifest.permission.WAKE_LOCK))
    {
        PowerManager pm = (PowerManager)getContext().getSystemService(Context.POWER_SERVICE);
        if (pm.isScreenOn() == false)
        {
            wakeLock = pm.newWakeLock((PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP), TAG);
            // 
            wakeLock.acquire();
            Log.d(TAG,"Acquiring wake lock");
         }
    }
    
    //Do my stuff
    
    //Release wake lock in case it was acquire
    if (wakeLock != null && wakeLock.isHeld())
    {
        wakeLock.release();
        wakeLock = null;
        Log.d(TAG,"Releasing wake lock");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing printing solution for MS Office 2007. Office automation is not right for
I'm developing a script generator to automatize some processes at work. It has a
Developing for Android 2.3, I have a question regarding layouts. I use a vertival
Developing a project of mine I realize I have a need for some level
When developing an RCP application against a target platform, I ( and others )
I am developing a Excel automation app that read and write to Excel spreadsheet.
I am developing an application that will automate some tasks for me. The application
In a DELPHI 2007 application that I am developing some prospect clients just found
I'm trying to get into Android app developing. My first problem is actually getting
We're building a .NET software platform for test automation for in house use in

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.