Android to listen Connectivity Changes

Changes in connectivity, including the bandwidth, latency, and availability of an Internet connection, can be significant signals for your application. In particular, you might choose to suspend recurring updates when you lose connectivity or to delay downloads of significant size until you have a Wi-Fi connection To monitor changes in connectivity, register a Broadcast Receiver … Read more

Monitoring Device State Changes Using Broadcast Intents

Monitoring the device state is an important part of creating efficient and dynamic applications whose behavior can change based on connectivity, battery charge state, and docking status. Android broadcasts Intents for changes in each of these device states. The following sections examine how to create Intent Filters to register Broadcast Receivers that can react to … Read more

Native Broadcast Intents in Android

Many of the system Services broadcast Intents to signal changes. You can use these messages to add functionality to your own projects based on system events, such as time-zone changes, data-connection status, incoming SMS messages, or phone calls. The following list introduces some of the native actions exposed as constants in the Intent class; these … Read more

Android Contact picker app

If you’re looking to create Android Contact picker app then here you can see the complete code of Android Contact picker app Create a new ContactPicker project that includes a ContactPicker Activity: Modify the main.xml layout resource to include a single ListView control. This control will be used to display the contacts Create a new … Read more

Pending Intents in Android

The PendingIntent class provides a mechanism for creating Intents that can be fi red on your application’s behalf by another application at a later time A Pending Intent is commonly used to package Intents that will be fi red in response to a future event, such as a Widget or Notification being clicked. The PendingIntent … Read more

Local Broadcast Manager in Android

The Local Broadcast Manager was introduced to the Android Support Library to simplify the process of registering for, and sending, Broadcast Intents between components within your application Because of the reduced broadcast scope, using the Local Broadcast Manager is more efficient than sending a global broadcast. It also ensures that the Intent you broadcast cannot … Read more