Android : check wether action button (home,back, etc.. ) is inside the screen or not? -
Android : check wether action button (home,back, etc.. ) is inside the screen or not? -
i explain in more detail,
some of android device have action button this,
while of device have like,
in first case action button outside screen while in sec case action button given bottom of screen(inside screen)... how can observe action button present? have no thought it..!!
check official android docs : http://developer.android.com/reference/android/view/keycharactermap.html#devicehaskey%28int%29
the method devicehaskey solve problem. (use keycodes keycode_menu, keycode_home, keycode_back). hope helps.
android android-layout android-activity
Comments
Post a Comment