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:
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?
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.
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.
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?
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.
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.
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.
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?
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.
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?
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?
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
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?
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.
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.
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.
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?
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!
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.
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
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?
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?
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.