O'Reilly logo

PhoneGap 4 Mobile Application Development Cookbook by Zainul Setyo Pamungkas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Hooking into Native Events

In this chapter, we will cover the following topics:

  • Pausing your application
  • Resuming your application
  • Displaying the status of the device battery levels
  • Displaying network connection status
  • Creating a custom submenu

Introduction

When developing applications for mobile devices, we can create feature-rich applications that harness the functionality of the native processes and systems.

The devices themselves provide us with built-in controls and user interface elements in the form of native buttons, to which we can apply methods and functions.

We can also make use of the hidden events and manage how our applications will work when placed in the background of the device, or we can also alter states depending on network ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required