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
 
(5 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.
{{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 [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!