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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:24:44+00:00 2026-06-18T14:24:44+00:00

I am developing an sensor based app to unlock & lock device using sensors.

  • 0

I am developing an sensor based app to unlock & lock device using sensors.
I am able to lock the device using Device Administrator API.

But, Unfortunately I am unable to find any code to unlock the screen programmatically. I have searched over Google & other Android Development sites too.
Then, too I didn’t find any solution.

Tried several tricks like wakelock but it doesn’t work for some devices & eats battery
Then, I tried KeyguardManager but it removes the lockscreen but not does not unlock the device

I am trying to use Receiver for receive screen on/off events but I don’t know how to make
it

Hope, Any one can help me

I already had thorough search but no hopes

Thanks 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-18T14:24:45+00:00Added an answer on June 18, 2026 at 2:24 pm

    I think this post will resolve your problem. You need to make use of PowerManager.

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

Sidebar

Related Questions

In a Qt based application I'm developing I'm using a QGraphicsView to display sensor
I am developing an app which uses a accelerometer + compass sensor and I
I am developing an app using android OS for which I need to know
I am developing one application for reading sensor data from an Android device through
I am currently developing an app in Android which will record sensor data for
I am developing a project with light sensor, but my problem is that light
I have been developing an Android application and testing the orientation sensor using SensorSimulator
I'm developing an android app that uses Sensors and I would like to know
I'm developing a project that has a number of hardware sensors connecting to the
I'm working on developing an application that talks to a family of USB sensors.

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.