The flags provided by getResources().getConfiguration().keyboard are a good way of checking which keyboard (if any) is available.
http://d.android.com/reference/android/content/res/Configuration.html j On Tue, Jun 2, 2009 at 8:07 PM, csvy <sou...@gmail.com> wrote: > > Is there any way to determine the layout of a physical keyboard (if > there is one)? > I would like to map commands to keyboard keys if there is a hardware > keyboard available, but the layout is very important. I have had > users from Germany complaining that layout is not optimized for their > phones (since the Y and Z keys are swapped). Is there any way to > automatically detect this, or am I stuck making it a setting? > > > -- Jeff Sharkey jshar...@android.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---