[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?

Edit:
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.
Jompe71
Experienced Developer
Experienced Developer
 
Posts: 69
Joined: Sat Oct 25, 2008 2:21 pm
Location: Stockholm Sweden

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 25 guests