Archos 101 Internet tablet: is it possible to hide the standard Android buttons (software)

I am developing an Android application for the Archos 101 Android tablet (link: http://www.archos.com/products/ta/archos_101it/index.html ). The tablet is running Android 2.2 and, as you can see here http://blogote.com/wp-content/uploads/2010/11/android_101_tablet.jpg , the Android buttons (Home, Menu, Back and Search) are soft buttons and not hardware buttons, as on most other Android devices.

My question is: is it possible to hide these soft buttons in my application? IMHO, should there be something like an adapted SDK for tablet devices ?!

Technically, the tablet seems to support this functionality, because some standard (pre-installed) applications, such as a video player, do this when showing full-screen video.

In my application I use

this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);

to install the application in full screen, but of course this does not hide the soft keys.

+3
source share
3 answers

I have found a solution. After adding

<uses-permission android:name="archos.permission.FULLSCREEN.FULL" />

in AndroidManifest.xml. The code:

this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);

shows the application in full screen mode and hides the Android buttons (software). Of course, it is recommended that you introduce user interface elements that allow users to exit the application.

+5
source

Do I need to hide soft buttons for just one action?

, , , ( , , ). , .

+1

maybe this may help you:

http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html

hideSoftInputFromWindow (IBinder windowToken, int flags, ResultReceiver resultReceiver)

0
source

Source: https://habr.com/ru/post/1779243/


All Articles