2

How can one get information on the status of items such as LED? I know how to set LED via notifications, but what I need to know is how to determine if it is on/off etc before making any adjustments. What I am looking for is a simple request or API that will tell me if the LED is on/off.

Thanks

4

1 に答える 1

1

NDK に関するこのスレッド ( http://groups.google.com/group/android-ndk/browse_thread/thread/10ade03e7bb7d0dc )によると、これは利用できないようですが、最後にいくつかのコメントがあります。 LED が利用可能で、ファイル パス: を提供している可能性があります。/sys/class/ledsそれ以外の場合は、これを追加するように依頼することをお勧めします。

NDK に慣れていない場合は、ドイツで開催された Google Developer Day のビデオ シリーズで、NDK を使用してゲームを作成する方法をご覧ください。

http://www.youtube.com/watch?v=UbsE-yA431c&feature=related

于 2011-01-25T00:30:37.820 に答える