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 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

Okay, since it is impossible to talk to anyone on the phone or get
Phone Information: Droid Bionic Android 2.3.4 USB Debugging Enabled I am looking into writing
Description My application record sound from phone microphone. I am using android standard classes
instead of talking let me talk with code: Dim Contact = Context.Contacts.Include(Phones) Dim phone
All the talk on WP7 resolution = 800x480. I can create more than 480
I'm working on a project where a program running on the mobile phone needs
I'm looking for a slider that can autoscale the images, to a specific screen
I want to build a REST Client on an android phone. The REST server
When we talk about security we have the following requirements: authentication integrity Non-repudiation Isn't
The Apple guidelines talk about using a source list - how do I create

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.