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. FrameLayout and WebView

Hi,

I have been trying to implement the demo API "3d Transition" to switch
between a custom View of mine and a WebView, and it's working fine,
but while scrolling on the WebView, the parts of the WebView that was
not on screen at the first place is replaced by a blanck...

It's just as if that was the FrameLayout that was scrolling instead of
the WebView.

I used the same code that is in the classes "Transition3d.java" and
"Rotate3dAnimation.java", only changing the Views types.

Here is my XML file:

<FrameLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/container" android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:scrollbars="none">
        <WebView android:id="@+id/imwebview"
                android:layout_width="fill_parent"
android:layout_height="fill_parent"
                android:visibility="gone" />
        <com.android.jell.MyMainView android:id="@+id/imview"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent" />
</FrameLayout>

Could you give me some advice?

--~--~---------~--~----~------------~-------~--~----~

2. Symbian goes open source

Congratulations.

http://www.nokia.com/A4136001?newsid=1230416
--~--~---------~--~----~------------~-------~--~----~

3. How set transparent in "WebVIew" ?

4. What are all the Mobiles that support Android ???

5. Should I use AlarmManager or ScheduledExecutorService? (pros/cons?)

6. How to change image on focus and unfocus

7. How to store database information at common places.