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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:21:01+00:00 2026-05-18T08:21:01+00:00

When you talk on the phone in Android the light sensor is working. If

  • 0

When you talk on the phone in Android the light sensor is working.
If you cover the top left corner of the screen, the display turns black and you can’t see anything.

I would like to cancel that feature and I tried working with Android Sensors and the Light Sensor but it is not working.

This is my code:

 senMgrLight=(SensorManager)getSystemService(Context.SENSOR_SERVICE);
    senMgrLight.registerListener(onSensorListener,
            senMgrLight.getDefaultSensor(Sensor.TYPE_LIGHT),
                SensorManager.SENSOR_DELAY_FASTEST);

Thanks.

  • 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-18T08:21:01+00:00Added an answer on May 18, 2026 at 8:21 am

    The sensor you need to work with is the proximity sensor,
    try this, this will let you know if the sensor is hidden or not (and it works while your on a call)

       SensorManager sm = (SensorManager)getSystemService(Context.SENSOR_SERVICE);
            sm.registerListener(new SensorEventListener() {
    
                @Override
                public void onSensorChanged(SensorEvent event) {
                    Log.i(TAG,"sensor: " + event.sensor.getName() + ", values: " + Arrays.toString(event.values));
    
                }
    
                @Override
                public void onAccuracyChanged(Sensor sensor, int accuracy) {
                    Log.i(TAG,"accuracy change: " + sensor + ", accuracy: " + accuracy);
    
                }
            }, sm.getDefaultSensor(Sensor.TYPE_PROXIMITY),SensorManager.SENSOR_DELAY_FASTEST);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

instead of talking let me talk with code: Dim Contact = Context.Contacts.Include(Phones) Dim phone
Okay, since it is impossible to talk to anyone on the phone or get
I'm working on a project where a program running on the mobile phone needs
Is it possible to make a cell phone transmit arbitrary radio waves at a
Introduction I am attempting to replace an on-call cell phone which is carried by
I want to make a windows mobile 6 cellphone application. This application will talk
I have the following element: <div id=#block-block-1> <p>KAREN LANCEL:<br> lancel(at)xs4all.nl<br> phone 0031 (0)624873424</p> <p>HERMEN
Apple's developer website describe 3 types of background services an app can use, music,
I have a Windows Mobile application using the compact framework (NETCF) that I would
I have an application in the app store. I have submitted 3 updates to

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.