Showing your app full screen

Android 4.4 (API 19) introduced a UI feature called Immersive Mode. Unlike the previous full screen flag, your app receives all the touch events while in Immersive Mode. This mode is ideal for certain activities, such as reading books and news, full-screen drawing, gaming, or watching a video. There are several different approaches to full screen, and each have a best use case:

  • Reading books/articles, and so on: Immersive Mode with easy access to the system UI
  • Game/Drawing app: Immersive Mode for full screen use but minimal system UI
  • Watching video: Full screen and normal system UI

The key difference between the modes is how the System UI responds. In the first two scenarios, your app is expecting user interaction, so ...

Get Android Application Development Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.