Tag Archives: NotificationManager

Geofencing in Android, A Simple Example.

What is Geofencing? Geo-fencing is a feature in a software program that uses the global positioning system (GPS) or radio frequency identification (RFID) to define geographical boundaries. A geofence is a virtual barrier. Today we will discuss how we can implement Geofencing in Android with a single location. First You need to provide the permissions in the AndroidManifest.… Read More »

Create Custom Notification in Android.

This demo explains how you can create a Custom Notification in Android old and New versions. The notification appears expanded in Versions > 16. Let’s jump into the code… Below is the MainActivity that creates the notification. You can download the complete Android Studio Source Code from here.. Send your comments to coderzheaven@gmail.com

How will you create a custom Notification in Android with a custom Layout?

This sample application does that. First create an xml for your notification. custom_notification.xml Now the java code.

Using NotificationManager in ANDROID for showing notification, sample code.

Multiple Notifications are a unique feature in ANDROID phones. This tutorial will show you how to create notification from your application. ANDROID uses the NotificationManager class to create the notification. Let’s look at the code. Explanation. mManager.notify(APP_ID, notification); This line in the code sends the notification where notification is the object of the Notification class where you can… Read More »