Go Back   xda-developers > Diamond > Themes, Applications and Software

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th July 2008, 02:53 AM
Koush Koush is offline
Senior Member
 
Join Date: Sep 2007
Posts: 562
Exclamation [REF]Managed HTC Light Sensor SDK released (with source)

I published the HTC Accelerometer SDK a while ago, and have been spending some time off and on trying to find out how to get access to the Nav API. No luck there yet, but I did figure out how to access the light sensor.

The updated API and source is available at:
http://www.koushikdutta.com/2008/07/...ensor-sdk.html

Koush
Reply With Quote
Sponsored Links

  #2  
Old 13th July 2008, 03:49 AM
R4nd0m R4nd0m is offline
Junior Member
 
Join Date: Feb 2007
Posts: 25
Default

can you give us compiled exe?
Reply With Quote

  #3  
Old 13th July 2008, 03:52 AM
DOMin8or DOMin8or is offline
Senior Member
 
Join Date: Oct 2003
Posts: 159
Default

where are the lightsensor? is it the front/back cam?
how often will auto light adjust update?
alltime? once per power on switch? once per minute?
when the autolight is not set, and it will be done by frontcam, we can safe cams energy, by switching off automatic backlighht adjust. cameras are needing a lot of power.
can anybody confirm that?
Reply With Quote

  #4  
Old 13th July 2008, 04:00 AM
Sergio PC's Avatar
Sergio PC Sergio PC is offline
Senior Member
 
Join Date: Jun 2008
Location: Santiago
Posts: 1,259
Default

WooooWWW this keeps getting better!
Thanks HTC
__________________
High Tech Computer Corporation Hero -Rooted-
ROM:MoDaCo Custom ROM Core 2.9

Some asshole stole my Fuze! I hope you choke!!
I miss my Nokia7710. -ºHome from Sattº-
Reply With Quote

  #5  
Old 13th July 2008, 06:33 AM
Reason4444's Avatar
Reason4444 Reason4444 is offline
Senior Member
 
Join Date: Oct 2006
Posts: 200
Default

Please.. Somebody will make a "really" adjustable light settings util with this SDK.. I want to set min backlit level to lower for totaly dark enviroments... because default one is too much than required..

Sorry for my poor English..
Reply With Quote

  #6  
Old 13th July 2008, 07:04 AM
Koush Koush is offline
Senior Member
 
Join Date: Sep 2007
Posts: 562
Default

Sure, I'll make a utility to do that. Give me a bit though, I'm coding up the Nav sensor SDK right now.
Reply With Quote

  #7  
Old 13th July 2008, 08:07 AM
SecureGSM's Avatar
SecureGSM SecureGSM is offline
Senior Member
 
Join Date: Sep 2006
Location: Melbourne
Posts: 504
Default

feature request

disable light sensor when call is in progress.
enable light sensor back after call was terminated.
__________________
Himalaya / Typhoon / Wizard/ Tornado / wizard/ Universal / Star Trek / Hermes / Breeze / Oxygen / Excalibur / Trinity / Artemis / HP hw6965 / Herald / Cavalier/ Treo 750 / Vox / Elf / Niki / Polaris / Pharos/ Juno / Wings / Kaiser / Sedna / Diamond / Rafael (soon)
------------------
Securing the future of communication
http://www.securegsm.com
Reply With Quote

  #8  
Old 13th July 2008, 08:54 AM
2395 2395 is offline
Member
 
Join Date: Sep 2007
Posts: 63
Default sensor option

Thank you,
I have noticed on the new Bang & Ollefson and another new highend phone [not iphone] they are set so that when the display is away from the air is is visable...against ear off......thus...

when you are looking at the display it is visable
when phone is covered by ear...display is off
take phone away from ear....display comes back on
back to ear display goes off....etc...


This is a fantastic feature and has a wow factor as a sales tool.
Reply With Quote

  #9  
Old 13th July 2008, 02:31 PM
Reason4444's Avatar
Reason4444 Reason4444 is offline
Senior Member
 
Join Date: Oct 2006
Posts: 200
Default

Quote:
Originally Posted by 2395 View Post
Thank you,
I have noticed on the new Bang & Ollefson and another new highend phone [not iphone] they are set so that when the display is away from the air is is visable...against ear off......thus...

when you are looking at the display it is visable
when phone is covered by ear...display is off
take phone away from ear....display comes back on
back to ear display goes off....etc...


This is a fantastic feature and has a wow factor as a sales tool.

This is exactly happen what i saw a few days ago..

iGo2008 running, a phone call received and i'm noticed display on & off with light sensor working !!!! I'm looked at the display it is visible (...from 10-15cm distance from my ear..) , when phone is covered my ear...display is off... I'm tried over and over again... still worked at the end of conversation... But when i'm closed iGO2008 and tried again... Not happen again...

Any ideas ???

Last edited by Reason4444; 13th July 2008 at 03:50 PM..
Reply With Quote

  #10  
Old 13th July 2008, 03:42 PM
Furbious Furbious is offline
Senior Member
 
Join Date: Jun 2007
Posts: 118
Default

Quote:
Originally Posted by 2395 View Post
Thank you,
I have noticed on the new Bang & Ollefson and another new highend phone [not iphone] they are set so that when the display is away from the air is is visable...against ear off......thus...

when you are looking at the display it is visable
when phone is covered by ear...display is off
take phone away from ear....display comes back on
back to ear display goes off....etc...


This is a fantastic feature and has a wow factor as a sales tool.
Nice work Koush - and I completely agree with the above quote. I'm surprised HTC didn't have this already included, having to press a button to wake the display is kind of stupid since it gets turned off by the light sensor
Reply With Quote

Reply

Tags
accelerometer, htc, light, sensor

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:19 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.