I’ve seen a post with a Linux solution.
I am using a Windows PC.
I have configured my Android app to hide the Status and Navigation bars.
This works when I run the app on an Android tablet.
However, when I run the app on my VIM3L, the Status and Navigation bars appear, as soon as the screen (TS050) is touched.
Is this what you mean?
This is the code that I added to the start of the java file, to hide the bars.
It is sufficient when running on a Galaxy tablet etc., but does not sufficient for running on a VIM3L.
// Hide the Status Bar (top bar) and the Navigation bar (bottom)
View decorView = getWindow().getDecorView();
int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
decorView.setSystemUiVisibility(uiOptions);
// Hide the action bar, also known as the app bar
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.hide();
}
I don’t understand your short reply.
If you are asking me where I pasted the code that I show above, I pasted it in my .java file, within the onCreate() method.
Example:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.screen_main);
// Hide the Status Bar (top bar) and the Navigation bar (bottom)
View decorView = getWindow().getDecorView();
int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
decorView.setSystemUiVisibility(uiOptions);
// Hide the action bar, also known as the app bar
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.hide();
}
After following my modifications below, compile the complete Android firmware and burn it into the device, and you can completely hide the status bar and navigation bar.
xiong@server:/users/xiong/work/amlogic/vim3/vim3_64bit/device/khadas$ git diff kvim3l/overlay/frameworks/base
diff --git a/kvim3l/overlay/frameworks/base/core/res/res/values/config.xml b/kvim3l/overlay/frameworks/base/core/res/res/values/config.xml
index f3e0e7a..3817e66 100755
--- a/kvim3l/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/kvim3l/overlay/frameworks/base/core/res/res/values/config.xml
@@ -100,7 +100,6 @@
<bool name="config_wifi_dual_band_support">true</bool>
- <bool name="config_showNavigationBar">true</bool>
<!-- disable wallpaper, which may consume too much boot time -->
<!-- cannot disable wallpaper, com.android.settings will crash! -->
<!--bool name="config_enableWallpaperService">false</bool-->
diff --git a/kvim3l/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/kvim3l/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
index 3a60108..bda91ec 100644
--- a/kvim3l/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
+++ b/kvim3l/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_enableKeyguardService">false</bool>
- <!--<string name="config_statusBarComponent" translatable="false">com.android.systemui.statusbar.tv.TvStatusBar</string>-->
- <string name="config_statusBarComponent" translatable="false">com.android.systemui.statusbar.phone.StatusBar</string>
+ <string name="config_statusBarComponent" translatable="false">com.android.systemui.statusbar.tv.TvStatusBar</string>
</resources>
There is no other way but to recompile the firmware, because this is part of the modified framework. There is no way to achieve this function without compiling the entire system.