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

From wizarPOS
(Created page with "For hiding the status bar and navigation bar, android provide the '''Immersive Mode'''. Use this way, the third-party app can implement full screen. == Permission == android...")
 
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/display-full-screen-android-api}}")
Tag: Replaced
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
For hiding the status bar and navigation bar, android provide the '''Immersive Mode'''. Use this way, the third-party app can implement full screen.
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/display-full-screen-android-api}}
== Permission ==
  android.permission.CLOUDPOS_REAL_FULLSCREEN
The app declares the permission in the manifest.
 
== Snippet code ==
<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 [ftp://sdkuser:wizsdkar@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!