Detect if phone has physical keyboard

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

Detect if phone has physical keyboard

Postby sandis84 » Fri Oct 30, 2009 10:43 am

Well, I guess the title say it all. If I can be sure that no virtual keyboard will pop up, then I want to load some graphical excess. Is there a way to get this information?

Thanks,
Per Sandström
sandis84
Experienced Developer
Experienced Developer
 
Posts: 78
Joined: Fri Aug 07, 2009 3:54 pm

Top

Postby Rahul » Fri Oct 30, 2009 12:30 pm

try using this method

getResources().getConfiguration().keyboard

If you get 2 as the output then its a QWERTY keyboard if its 1 then it should be a virtual keyboard
Rahul
Experienced Developer
Experienced Developer
 
Posts: 89
Joined: Wed Oct 01, 2008 11:16 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 11 guests