Method 1 of enabling activity on the horizontal screen: In androidmanyfest. add the property Android: screenorientation = "Landscape" to the XML activity. Method 2: First add import android. content. PM. activityinfo; import android. view. display; Add the following to oncreate:CodeIf (getrequestedorientation ()! = Activityinfo. screen_orientation_landscape) {setrequestedorientation (activityinfo. screen_orientation_landscape);} click and double-click the event mgesturedetector = new gesturedetector (New simpleongesturelistener () {@ override public Boolean ondoubletap (motionevent e) on the screen) {// todo auto-generated method stub return true;} @ override public Boolean onsingletapconfirmed (motionevent e) {// todo auto-generated method stub return true ;} @ override public void onlongpress (motionevent e) {// todo auto-generated method stub}