[android-developers] Re: Detecting Physical Keyboard (not Cupcake software keyboard)

2009-04-27 Thread CraigsRace
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 wrote: > You probably don't want to check for that, but rather that the value is not > the constant f

[android-developers] Re: Detecting Physical Keyboard (not Cupcake software keyboard)

2009-04-27 Thread Dianne Hackborn
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 wrote: > > Thanks Dianne. I misunderstood what: > getResources().getConfiguration().keyboard == > Configuration.KEYBOARD_QWERTY > wo

[android-developers] Re: Detecting Physical Keyboard (not Cupcake software keyboard)

2009-04-27 Thread CraigsRace
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 Hack

[android-developers] Re: Detecting Physical Keyboard (not Cupcake software keyboard)

2009-04-27 Thread Dianne Hackborn
getResources().getConfiguration() -- the Configuration object has all of this info. On Mon, Apr 27, 2009 at 4:51 AM, CraigsRace 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