Android :: Light Sensor Value And Battery Level

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.

Android :: light sensor value and battery level


General :: MTK6577 S3 Battery / Light And Proximity Sensor

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

Android :: No Light Sensor / Proximity Sensor Detected On Hero?

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

Android :: Light Sensor On The Nexus One

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

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

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

HTC Hero :: Ambient Light Sensor

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

HTC Desire :: Ambient Light Sensor Not Working

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

HTC Incredible :: Ambient Light Sensor Located

May 6, 2010

Where is the ambient light sensor located?

View 4 Replies View Related

Motorola Milestone :: Light Sensor Not Working

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

Samsung Behold 2 :: Front Light Sensor

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

Sprint HTC Hero :: Light Sensor And Screen Intensity Linearity

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

Motorola Droid :: Light Sensor Or Timer Dims Screen Up And Down During Video Playback

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

Android :: Need A Application For Battery Level

Sep 25, 2010

Can anyone suggest me a nice app to see the battery level?

View 10 Replies View Related

Android :: How To Get Remaining Battery Level?

Feb 9, 2010

Searching old posts reveal that no one knows a way to get the current battery level without using intents. Is this true? There's no method to just return the current battery level?

View 4 Replies View Related

General :: API Level Differences - App Works In Level 10 But Not In Level 7?

Jul 2, 2012

I'm having trouble developing an app, while it works in API level 10, it does not in API level 7. I wondery why and I've been looking for a site that summarizes the differences, or the new features from one API level to another and cannot find it.

09-04 04:24:21.485: E/AndroidRuntime(6834): Uncaught handler: thread main exiting due to uncaught exception
09-04 04:24:21.510: E/AndroidRuntime(6834): java.lang.VerifyError: [code]....

There seems to be a problem with an uncaught exception and reflection, although....why does it work on API level 10?

View 1 Replies View Related

Android :: How To Get Current Battery Level Of Device?

Feb 18, 2009

Is there a way to get the current battery status of the device (battery level and if the battery is currently charging). The only way I found so far is by using a Broadcast receiver to "listen" for battery status changes. Is there a way to get the battery status using a direct API call? I my case, I would like to check if the battery has sufficient charge (or is being currently charged) before starting the download of some (potentially large) files.

View 2 Replies View Related

Motorola Droid X :: Android System Sensor Usage - Possible Battery Hog

Aug 5, 2010

I just got my droid x about 2 days ago, and I've gone through about 2 full cycles. So far I haven't been able to squeeze more than 6 hrs of use on it, so I installed spare parts to see if the GPS bug was affecting it.

Going through some usage information, I found that the "Android System" sensor usage was huge! Since 1hr 29min unplugged the Sensor has been on for 1hr 36min...weird.

Checking the total time since boot the sensor has been on 19 hrs. I have autobrightness turned off and I haven't come across any other posts that explain what uses the sensor.

View 4 Replies View Related

Nexus :: Light Sensor Position In Nexus One

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

Android :: Difference Between Orientation Sensor / Magnetic Field Sensor

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

HTC Incredible :: Battery Level Accurate / Not?

Sep 21, 2010

New Incredible user just looking for some feedback, my battery stats are the following:
Uptime: 12:06
Awake time: 2:58
Battery use:
-Android system: 34%
-Cell standby 29%
-Phone Idle 22%
-Display 8%
-Voice calls 4%
-Maps 3%
I've been reading all other posts and their android system is significantly lower is there something draining my battery?

View 1 Replies View Related

HTC Desire :: Battery Level Drops To 89% Instead Of 100%?

Oct 24, 2010

Android Version: 2.2 (but also happened on 2.1). My phone's battery level will suddenly drop to 89% even though it is still on charge. It's annoying because sometimes you'll start the day with only 89% charge instead of 100%. My friend also has a Desire but is not experiencing this problem - the only difference between them is the version of kernel. I read somewhere that is was the kernel that was the problem and somebody found a fix - xda developers - View Single Post - [DEV] Desire GSM/CDMA kernel 2.6.32 Google / 2.6.34/35 Cyanogen Mod.

View 4 Replies View Related

Android :: Is Orientation Sensor A Physical Sensor Different From Accelerometer?

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

Android :: Possible Duration Of Idle Time Of Phone Based On Current Battery Level

Aug 18, 2010

I am new to the android programming environment. I am currently working on a project which deals with the user's phone battery level.I am showing the current battery level left on the phone.now i want to display the amount of duration of "idle time, talk time, video playback, audio playback and web surfing" that can be done based on the current battery level. What kind of approach shall i follow.(or) What available API shall i use to get those.

View 2 Replies View Related

HTC Desire :: Want A Shortcut To Exact Battery Level?

Oct 12, 2010

I was just wandering if there is a shortcut to find the exact battery level on my Desire? I know you can go the 4636 route but thats slightly long winded, and most battery widgets/notification bar icons actually seem to use battery (i have properly tested this!). I know you can go into 'about phone' and do it that way but that just shows it as a series of bars, not as an actual figure.

View 5 Replies View Related

HTC Droid Eris :: How To Know Exact Battery Level?

May 27, 2010

I notice you see your exact battery percent when charging, is it possible when not?

View 3 Replies View Related

Motorola Droid X :: Battery Level Reset?

Jul 20, 2010

so I decided to pull my battery out of my phone to check something.the battery level was at 30. I then put it back in and now its at 70. its been 20 minutes and its still at 70. Any insight on why this is happening?

View 1 Replies View Related

HTC Incredible :: Battery Charging / Level Issues

Sep 28, 2010

Strange..My phone had 15% battery. I went into adb and started deleting apps for about 20 minutes. I turn the phone back on and it says it is fully charged.

View 7 Replies View Related

General :: Bluetooth Headset Battery Level App?

Mar 9, 2012

One of my friends with an iPhone showed me how a battery level meter is next to the bluetooth symbol when his headset is connected(new feature in iOS5 from what I found online). He was also using a cheap Motorola headset too. Is there an app or widget that does the same thing on Android?

View 12 Replies View Related

General :: How To Show Phone Battery Level On PC

Nov 24, 2013

Is there any way to show my smartphone battery level on my computer? Synced via internet.

It will be sweet to have those two bars (notebook and smartphone battery level) next to each other on the taskbar (win 8). I tried to google it, but unsuccessfully.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved