Android :: Disable Light Sensor During Call
Nov 24, 2010
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);
View 2 Replies
Feb 8, 2010
I have a HTC Hero here, and when I tried to get the list of available sensors on the device by calling ((SensorManager) getSystemService (Context.SENSOR_SERVICE)) .getSensorList(Sensor.TYPE_ALL); I get only the following sensors: D/SensorManager( 6302): found sensor: BMA150 3-axis Accelerometer, handle=0 D/SensorManager( 6302): found sensor: AK8973 3-axis Magnetic field sensor, handle=1 D/SensorManager( 6302): found sensor: AK8973 Orientation sensor, handle=2 D/SensorManager( 6302): found sensor: AK8973 Temperature sensor, handle=3 According to the specs, there should be a light and a proximity sensor on the Hero, and I've seen it in action (the automatic screen brightness adjustment) - so at least the ambient light sensor is definitely there. My question is then, why doesn't the getSensorList return for me the light and the proximity sensors?
View 8 Replies
View Related
May 20, 2010
I'm having some troubles with the light sensor on the Nexus One.
AFAIK, the proper way to read the measures of a sensor is registering a SensorListener through the SensorManager and then wait for the readings on the onSensorChanged method.
My main problem is that the light sensor don't seem very accurate (the readings jump a lot) and I don't get the first reading until the lighting conditions change. I have to change the phone orientation, go outdoors or hide the sensor with my fingers or otherwise I don't receive any value. Is there any way to increase the accuracy or, even more important, to force an initial reading?
BTW, I have tried with SensorManager.SENSOR_DELAY_FASTEST but I haven't noticed any change.
View 2 Replies
View Related
Feb 15, 2010
I am writing a program and I am able to get the light sensor value and current battery level, but only the light value changes and when the battery level changes. Is there a way to get these two values anytime? Like when a user runs my program, I would like to grab the current values right away instead of having to wait for them to change.
View 2 Replies
View Related
Aug 13, 2010
I´m trying to read the values of the Light Sensor of my Nexus One, but I´mgetting only following values:
10.0
225.0
And in a few cases some values much higher.
The used code:.........................
Does anybody have experience with the light sensor on the Nexus One or another Android device? Is my code the correct way to read the values? How can I get better and more accurate values?
View 1 Replies
View Related
Aug 9, 2009
I've seen claims that the Hero has a light sensor, and I see the "automatic" backlight enabled in Settings, but I'm not seeing much in the way of backlight adjustment occurring.
Even in an otherwise dark room, the backlight seems very bright. Occasionally I see the backlight go dim and then almost immediately come back up.
View 4 Replies
View Related
Apr 23, 2010
I've got an HTC Desire from a T-Mobile store 3 weeks ago. The ambient light sensor has never worked and it's enabled on the display settings.
I went back to the T-Mobile store and they tried a brand new unit. Unfortunately, that one also seem to have the same issue. Then I called the HTC technical support and they say there are no reports on such kind of issue.
If not, does the display brightness get adjusted quickly or slowly?
View 4 Replies
View Related
May 6, 2010
Where is the ambient light sensor located?
View 4 Replies
View Related
Jul 22, 2010
I have milestone for 3 days good phone,camera performance surprised me expecting worse but...when i am making call display turns off and non of buttons work even i can hear ringing or person who i call then i have to slide phone slightly or fully to switch display-phone on.it wasn't working since the beginning but when i installed task manager it was working properly almost one day,next day again bad.the same story after hard reset.
View 16 Replies
View Related
Jun 10, 2010
Have an Issue. Whenever i am in a call if i take the phone away from my ear the screen doesnt turn on. It does this 98%of the time or only when i need to use the keypad during a call. It does this in stock form and also using open home. I always keep the screen clean. Is there a fix for this? I am not able to get my bh2 to connect to a pc so i cant root or install custom roms. Also the keyboard lag is rediculous. I tried better keyboard and it was just as bad if not worse.
View 3 Replies
View Related
Aug 7, 2013
i bought a mtk6577 clone s3. My problem is sometimes i rebooted phone, after opening proximity and light sensor doesn't work. screen don't turn off in call and doesn't call the person displayed on screen when i take ear. And battery drains too much. (example: when proximity and light sensor works with %90 battery, when it doesn't work after reboot plummets to %50).Another issue is when i reboot phone, boot animation doesn't show when proximity and light sensors don't work.
View 2 Replies
View Related
Dec 30, 2009
I've noticed that when viewing the screen in a darkened room that the screen is actually too dark. Yet in a normal setting that the screen is correctly lit. I've tried increasing the intensity to maximum with the sensor enabled and it's still to dark in the darkened room. Now, I've disabled the sensor entirely and the screen just runs wide open all the time - day or night.
Has anyone else felt that it was too dark in the darkened setting? I'm wondering if there is a setting (probably not yet written for the phone/OS) to vary how linear the light sensor is at darker levels? Maybe a 'minimum darkness' adjustment?
View 4 Replies
View Related
Nov 7, 2009
I am not sure which is the culprit, but while playing back video or even at random times, the screen shifts lighter or darker seemingly at random, and one time during a video playback on the TV.com app, it went black altogether. I am not sure whether it is the timer or the ambient light sensor, but I am tempted to turn the sensor off and push the timer back a lot.
View 1 Replies
View Related
Aug 12, 2010
Is there a way that a ROM could disable the proximity sensor during a call? I have a huge problem where I constantly hang up on people (usually my girlfriend) and that doesn't go very well . If its possible for the end buttonor volume button to wake the screen instead of the proximity, that would save me a lot of hassle. Is this doable, either standalone or through a rom setting?
View 1 Replies
View Related
Apr 23, 2010
Is there any way to disable it? I put a body skin on it and its barely off center off but its enough to cover the sensor so when i'm in a call its constantly black and i can't do anything . I would just take the skin off and put it back on but i was stupid enough to put it over my invisible shield and im to paranoid to put any more water on my phone and wait another 24 hours. So is there anyway to disable it or do anything?
View 10 Replies
View Related
Jul 5, 2013
My phone (Xperia mini pro) unlocks itself way too often when it's sitting in my pocket. I was using a MIUI ROM for some time and there was that cool feature that didn't allow to unlock the screen when the proximity sensor sensed something in its... proximity. I really miss it, but I don't feel like switching from CM to MIUI just for it.
I know there are lots of apps like Gravity Screen Off or Cover Algorithm, but they don't do exactly what I wan't to have (or I didn't explore them enough), as I don't want to lock/unlock my phone by the sensor or anything. just a simple thing:
0. the screen is locked and turned off
1. the home/power button is pressed
2. the app checks the proximity senor's state
2a. if something's covering the sensor (e.g. my pocket's inside), the touchscreen is disabled (and some message appears to say so)
2b. if nothing's covering the sensor, then unlocking the screen is allowed
Something like that in Play Store?
View 2 Replies
View Related
Dec 27, 2013
I'm using the CM11 4.4 Kitkat on my Galaxy S4 and recently found out that my proximity sensor isn't working (when I dial the screen goes black and won't turn on until the call is over). all I want now is to disable it but there isn't such option in the Cyanogenmod. Is there anyway to disable it, like with a terminal or something?
View 5 Replies
View Related
Jun 8, 2010
I've experienced the problem that when the desire is in my pocket and I receive a notification, the screen gets accidentally unlocked and the phone starts doing things that I don't want it to do. I know I can add an unlock pattern so that it won't unlock as easily but this is at the expense of me having to enter it even in situations I would not have needed it. So I thought that maybe we could use the proximity sensor to tell the phone to never unlock the screen if an object is close to the phone. Quickly looking at the android docs, it seems that the support for this is in the SDK, but I was wondering if anyone had created an application that does this. If time permits, I might even have a look at doing it myself, but as I'm very new to Android development, it will take me quite a long time to get to a usable state, hence my question about an existing app that does this.
View 49 Replies
View Related
Nov 18, 2010
i just discovered somehthing pretty cool. You know when your on a call the screen is black, and then when you move it from your ear the screen turns on? Well i thought the screen was triggered by accelerometer movement. Its not. Theres a motion sensor right below the front speaker. I tested by being on a call, then i pulled the fone away from my ear and saw the screen turned off, then i waved my finger over the sensor and the screen would turn on and off. Or does everyone already know this?..lol Try it, its pretty cool.
View 5 Replies
View Related
Jun 14, 2010
I am a Droid user at the moment, but am considering moving to the EVO next month, and I have a question regarding the LED's on the phone. My wife has to have complete darkness in the room at night and even a charging light bothers her she says (wtf, I just close my eyes and I cant see it, but whatever).
Anyway, on the Droid there is a program called LEDs hack that allows us to turn off all the notification and soft-button LED's when charging, so I am wondering if anything similar is available for the EVO yet. Also, can the charging light itself be disabled? It could not on the droid, but the home dock covered that one completely, so no big deal.
View 2 Replies
View Related
May 25, 2010
Somehow I keep managing to hang up on calls/call other people during calls. The proximity sensor does work but i think I must inadvertently move the sensor away from the screen, activating the screen. Is there an app that requires the screen to be unlocked during a call when the screen re-activates?
View 16 Replies
View Related
Mar 2, 2010
Is there anyway to disable the blinking green light that flashes when GPS is enabled? It's more of an annoyance then anything else, just curious if there is a way to turn that off while I leave GPS using programs on. I guess if not I could always draw a small black dot over the top of it!
View 6 Replies
View Related
Mar 29, 2012
How do I Adjust Proximity Sensor during a call, the screen comes on and off. and its the proximity sensor that needs to be calibrated. how can i adjust it? what file do i adjust this in?
View 2 Replies
View Related
Jan 15, 2010
Can anyone tell me where the light sensor is positioned on the Nexus One? One of the reasons I returned the Droid was I hated how the light sensor was positioned in the upper right corner. My fingers would frequently block it causing the auto-brightness to change unnecessarily and annoyingly. I know on the Droid Eris it is on the left and I'm hoping HTC did the same with the Nexus One.
View 3 Replies
View Related
Jul 13, 2010
Anyone know if there is a way to fix this? Not being able to bring the screen back up during a call pretty much makes it impossible to call any automated line, or even delete voicemail messages.I really love this ROM but this particular issue is causing me quite a headache
View 6 Replies
View Related
Nov 2, 2010
Does anyone know the difference between the orientation sensor and magnetic field sensor on Android?Since I've read that magnetometer is synonymous with digital compass I'm a little bit confused. What are they really?
View 1 Replies
View Related
Apr 17, 2012
I want Gmail notifications to show in the notification bar, but I don't want the green blinking light on my Droid because it's woken me up sometimes at night while in the dock. How do I disable the green blinking light while leaving all the other notifications?
View 5 Replies
View Related
Oct 30, 2009
Or it's just some virtual sensor the uses the data provided by the accelerometer and the magnetic field sensor to calculate the orientation?
View 7 Replies
View Related
Nov 18, 2009
Can some one point towards any documentation/resources/ threads that can explain how a new sensor support can be added in android sensor framework?
View 2 Replies
View Related
Feb 18, 2010
My home icon is way less responsive than the back icon which seems to be perfectly normal. Sometimes I have to "press" the home icon twice to get the "buzz" and have it move the screen. However the back icon works 99% of the time on the first press. IS there any adjustment I can make or should I bring the phone back. I have had it now for 2 weeks.
View 9 Replies
View Related