No light sensor and/or proximity sensor detected on Hero?

by mileoresko » Tue, 09 Feb 2010 18:44:03 GMT


Sponsored Links
 Somebody? Anybody? I really need a tip on this one.
There is just no sense in this output of the getSensorList() function.
There is obviously a light sensor on the device (HTC Hero), yet I can
not programmaticaly access it. Why?

--



No light sensor and/or proximity sensor detected on Hero?

by mileoresko » Thu, 11 Feb 2010 07:49:41 GMT


 Okay, I found a 3rd party application that actually uses the light
sensor (the app is called Proximity Sensor), and it works just fine on
my HTC Hero.

This must mean that I am not dong something right in the procedure
described above.

As far as I read the SDK reference, I see that I need to pass a Sensor
object to the registerLIstener method of the SensorManager, in order
to register my implementation of the SensorEventListener. The only way
I found to get the required Sensor object is by using the
getSensorList() method - as described above.

Before this poor little thread turns into a mono-drama, someone please
provide me with some insight here. Thanks.

--


Sponsored Links


No light sensor and/or proximity sensor detected on Hero?

by Simon » Fri, 12 Feb 2010 09:13:11 GMT


 What is the result of calling
sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT) ?

-- Simon





--



No light sensor and/or proximity sensor detected on Hero?

by mileoresko » Fri, 12 Feb 2010 19:08:10 GMT


 Hi Simon,

sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT) returns: null






--



No light sensor and/or proximity sensor detected on Hero?

by Simon » Sun, 14 Feb 2010 00:02:44 GMT


 ell that may be your problem.. what makes you think the Proximity
sensor app you downloaded uses the Light sensor?





--



No light sensor and/or proximity sensor detected on Hero?

by mileoresko » Sun, 14 Feb 2010 00:09:42 GMT


 I used the ddms tool, and I am not sure what the Proximity Sensor app
uses.
As far as I can see it reads something from a file, then does some
character decoding and stuff like that, so I don't think it uses the
SensorManger API at all.

Nonetheless, I would like to use the SensorManager API to fetch data
from the Light Sensor. If that is not possible, I would like to know
why it isn't.
If there is an alternative way to access this sensor's readings, I
would appreciate if someone could share it with me.

Thanks






--



No light sensor and/or proximity sensor detected on Hero?

by Miecak » Tue, 23 Mar 2010 01:51:51 GMT


 I started fooling around with the sensors on my HTC Magic and I
noticed the same. The sensors you mentioned are the only ones I can
see while the phone specs mention a light sensor as well!

Would be great if somebody could shed some "light" on this issue ;)

Thanks!







--



Other Threads

1. Read Vcard

Is it possible to read data from vard in android 1.6?
If yes then how can it is possible please help me.

Thanks in advance

-- 

2. Animations problem/suggestion needed

Hi all,
I am having a little problem with animation. I need to perform two animation
one after the other. this is for like one view is going & another is coming
in. but how i should start the other one . like after some times of the
first one started i want to start the second.

& if the user does gestures fast i m unable to control the animations &
result is very bad ..

can u guys suggest something on this..

please
help thanks
satish

-- 

3. need help titanium backup!!

4. Mod: List Sementara Peserta X10 Launching - Seminar/Gathering Id-Android Sabtu 17 April 2010

5. How to add activity rotation animation in 2.1 when orientation changed

6. How can I test ACTION_POWER_CONNECTED event?

7. Basic Chat Application