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

From wizarPOS
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/display-full-screen-android-api}}")
Tag: Replaced
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Overview ==
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/display-full-screen-android-api}}
This guide describes how to use Android's immersive mode to hide the status and navigation bars, enabling third-party applications to achieve a full-screen display.
== Key Points ==
* '''Using Immersive Mode:'''
** Immersive mode is a feature provided by Android that allows applications to hide the status bar and navigation bar for a full-screen experience.
* '''Limitation of Standard Immersive Mode:'''
** In standard immersive mode, users can still pull down the status bar to view notifications and system messages.
* '''Enhancing Functionality with Permissions:'''
** To prevent the status bar from appearing even when pulled down, you can enhance the immersive mode by adding specific permissions to your application.
** After adding these permissions, the status bar will remain hidden, maintaining the full-screen mode without interruption.
== 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!