android - How do I detect the FIXED keyboard on Droid Pro? -


i use getresources().getconfiguration().hardkeyboardhidden detect if device has sliding keyboard drawer open (like on g1).

now have droid pro, , returns 1 always, app thinks has slider open.

is there way can tell device has keyboard, , it's open ?

tia

i'm facing similar issue, in cm, phone application.

to date phone app behave that:

  • if keyboard open, screen stay on during call. proximity sensor won't used query if device on hear or not:

    mishardkeyboardopen being true leads screenonimmediately being set true also:

               boolean screenonimmediately = (isheadsetplugged()                     || phoneutils.isspeakeron(this)                     || ((mbthandsfree != null) && mbthandsfree.isaudioon())                     || mishardkeyboardopen); 

in case of fixed physical keyboard, open (not slidding, , in open position).

if keep actual code, phone app never off screen using proximity sensor.

if there's no way of guessing if keyboard fixed or slidding, i'll define new system property ro.product.has_fixed_keyboard, , set 1 in device, change code of phone app bypass keyboardopen checking in case ro.product.has_fixed_keyboard 1.

edit (11/23/2012): here implementation, merged cm7: http://review.cyanogenmod.org/#/c/11926/


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -