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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -