[solved] qwerty keyboard detection?

Put your problem here if it does not fit any of the other categories.

[solved] qwerty keyboard detection?

Postby Jompe71 » Fri Oct 23, 2009 1:44 pm

How do I query the device for if it has physical keyboard or if I need to code a virtual one?

hasPhysicalKeyboard = getResources().getConfiguration().keyboard == Configuration.KEYBOARD_QWERTY;

...should do the trick. I must be better in searching before asking, sorry! :?
There is no school like old school gaming.
Experienced Developer
Experienced Developer
Posts: 69
Joined: Sat Oct 25, 2008 2:21 pm
Location: Stockholm Sweden


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 3 guests