How to Implement Full Screen Mode Using Android APIs: Difference between revisions

From wizarPOS
No edit summary
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/display-full-screen-android-api}}")
Tag: Replaced
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
To hide the status bar and navigation bar, Android provides immersive mode. In this way, third-party applications can achieve full screen. But use Android method, it still can pull-down to show the status bar and the notice messages, so we use the permission to enhance the function, after add the permission, the status bar can not show when pull-down.
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/display-full-screen-android-api}}
== Permission ==
  android.permission.CLOUDPOS_REAL_FULLSCREEN
The application declares permissions in the manifest.
 
== Code snippet ==
<syntaxhighlight lang="java">
//statusBar,navigationBar are all not display
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN);
 
//statusBar is display, navigationBar is not display
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_VISIBLE);
</syntaxhighlight>
 
== Download ==
Please download the [http://ftp.wizarpos.com/RealFullScreenSample.zip whole demo].

Latest revision as of 03:24, 8 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/display-full-screen-android-api

We're making a move! Our site's content is migrating to a new URL, to provide you with an enhanced browsing experience. Please update your bookmarks accordingly. Thank you for your continuous support!