True. keyboard != Configuration.KEYBOARD_NOKEYS. I guess KEYBOARD_12KEY (and any other future keyboard configs) are still a valid keyboards.
Thanks again! On Apr 28, 11:16 am, Dianne Hackborn <hack...@android.com> wrote: > You probably don't want to check for that, but rather that the value is not > the constant for there being no keyboard. > > > > On Mon, Apr 27, 2009 at 5:55 PM, CraigsRace <craig...@gmail.com> wrote: > > > Thanks Dianne. I misunderstood what: > > getResources().getConfiguration().keyboard == > > Configuration.KEYBOARD_QWERTY > > would do. I thought it was talking about the layout configuration of > > the keyboard QWERTY/AZERTY, not whether a keyboard was present or not. > > > Cheers. > > > On Apr 28, 3:12 am, Dianne Hackborn <hack...@android.com> wrote: > > > getResources().getConfiguration() -- the Configuration object has all of > > > this info. > > > > On Mon, Apr 27, 2009 at 4:51 AM, CraigsRace <craig...@gmail.com> wrote: > > > > > Hi all, > > > > > Does anyone know how to detect if the phone has a physical keyboard, > > > > and not an on screen software keyboard? The reason I need to do this > > > > is because my app needs multiple keys pressed simultaneously, and this > > > > isn't possible with an on screen keyboard. > > > > > Thanks! > > > > Craig. > > > > -- > > > Dianne Hackborn > > > Android framework engineer > > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > > provide private support, and so won't reply to such e-mails. All such > > > questions should be posted on public forums, where I and others can see > > and > > > answer them. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---