Android :: Light Sensor On Nexus One Returns Only Two Distinct Values
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
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
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
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
Jun 18, 2010
Has anyone tried returning their evo to a sprint store due to light leakage?I noticed it last night for the first time and you can see that the bottom part of the screen is raised about the bezel while the top screen is recessed.I had to exchange my wifes EVO because it went all haywire on us and even though it went haywire with the rep, it wasnt any fun at the sprint store so i'm worried about how hard its going to be to exchange mine for this problem.Are Sprint employees aware of the situation for the most part?
View 49 Replies
View Related
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
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 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
Jul 8, 2010
Just started messing around with the auto brightness setting. After reading up about it I see a lot of people are having problems with it. Mine too seems way too dim.Anyway I figured I'd give it one last shot and was wondering where exactly is the sensor? Im wondering if my case is covering it or something.Similar topic is there anything wrong with keeping the brightness at about 33% for most of the time? Burn in? Or is it just battery drain?
View 3 Replies
View Related
Feb 22, 2010
What would be a sensible way to add DISTINCT and/or GROUPBY to ContentResolver- based queries. Right now I have to create custom URI for each special case. Is there a better way?
(I still program for 1.5 as lowest common denominator)
View 1 Replies
View Related
Sep 24, 2010
Is it possible to have multiple Shared Preferences per app? If you create a PreferenceActivity, the values by default are persisted to /data/data/[PACKAGE_NAME]/shared_prefs/[PACKAGE_NAME]_
preferences.xml
Is there a way to have multiple such files and which one to use for a given PreferenceActivity?
View 1 Replies
View Related
May 13, 2010
How can I control the trackball light in a nexus one ? I found something with NotificationManager but the samples do not work for me.
View 1 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
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
Jul 3, 2010
Last night my Trackball changed from white to blue and refuses to turn off. I don't have bluetooth on and have been using 2.2 build frf83 for about a week and yesterday while watching tv i noticed the change. Has anyone else encountered this problem. oh yeah if the phone rings then it starts flashing white but after i hang up it will return to the constant blue.
View 5 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
Aug 28, 2010
Just flashed CM 6.0.0-N1 and all went well, except there is no 720p option in camera quality settings. Can anyone shed some light on this?
I'm running the new baseband 32.41.00.32H_5.08.00.04 from the korean rom if that makes a difference.
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
Dec 15, 2012
How can I change the system default light blue color? I'd like to make it some sort of green. I'm talking about the light blue in such icons in the attached screen shots as the battery icon, the keyboard words, and the bottom bar when pulling down the notification tray. I assume it's just one setting somewhere because it's all the same blue. I am using Nova Launcher and would prefer not to root but might if necessary. I'm using the latest version of Jelly Bean on a Nexus 4
View 3 Replies
View Related
Feb 11, 2014
So I upgraded to the nexus 5 and sold my phone to a friend yesterday. He claims that he has not deleted anything and that is froze and just stopped working.
I have the phone connected to my computer where the phones LED notification light is red but will not turn on or even boot into recovery. My computer isn't recognizing it as a device either.
Nexus 4
CM11 (latest update)
recovery is CWM
What may have caused this. and if its bricked how to unbrick it if possible?
View 8 Replies
View Related
Jul 5, 2010
I had to remove my sim card, which means that I had to remove my battery. After doing so, I put my sim card back in, followed by the battery, and after pushing the power button, the battery indicator started flashing green and orange.
The screen isn't turning on, and absolutely nothing is happening.
I've been pouring over google trying to find a solution, but haven't found any that worked.
One suggestion suggested that I hold the power button for 10-15 seconds, then plug it into power, then add battery. This did not work.
Another suggested the opposite- hold power for 10-15 seconds, add battery, then add power cord, still no luck.
I freaking love this phone. I really, really, really want to fix it. If there are any, ANY suggestions as to what I could do to fix this, it would be greatly appreciated. I tried to call HTC for support, but, wouldn't you know it, couldn't get to a phone before EXACTLY one minute before they closed.
View 9 Replies
View Related
Apr 9, 2014
I want to ask where does the defaults values of memory min-free values of a Rom reside? I mean what file I would have to edit to edit those values?
View 1 Replies
View Related
Oct 26, 2010
These packages are alternative gapps. These Gapps should improve performance. On top of that all apps are up to date (like YouTube). Ultra Light version will also remove unnecessary preinstalled apps like yaam, DSP Audio Manager and so on (and some more gapps of course).
View 13 Replies
View Related