[android-developers] Detecting navigation input method on device

2009-04-02 Thread summers

Hi all,

Does anyone know how to detect what primary non-touch navigation
method (trackball, dpad, wheel, etc) a device is using within the
code?

I know that an app can structure the /res/ folders to detect it like
this:
/res/
 drawable-nonav
 drawable-dpad
 drawable-trackball
 drawable-wheel

But what if I want my app to behave differently depending on the
navigation input method- is there a way to do this in the code?

Much appreciated!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Detecting navigation input method on device

2009-04-02 Thread summers

Hi all,

Does anyone know how to detect what primary non-touch navigation
method (trackball, dpad, wheel, etc) a device is using within the
code?

I know that an app can structure the /res/ folders to detect it like
this:
/res/
  drawable-nonav
  drawable-dpad
  drawable-trackball
  drawable-wheel

But what if I want my app to behave differently depending on the
navigation input method- is there a way to do this in the code?

Much appreciated!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---