There are two ways to send SMS in Android Using SmsManager Using Built in Intent 1. SmsManager The SmsManager manages SMS operations such as sending data to the given mobile device. You can create this object by calling the static method SmsManager.getDefault() as follows: Initialize Sending Message Once you have SmsManager object, you can use sendDataMessage() method to… Read More »
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 »
This sample application does that. First create an xml for your notification. custom_notification.xml Now the java code.
Hello everyone… I have shown in my previous tutorials on how to create notification in android and cancel it. This is the post showing this . Now today I am going to show how to send data when you click on the notification message. Here I am creating two activities. One the main activity that creates the notification… Read More »
Today in this tutorial I will show you how to use AlarmService in android. For this you have to first create a project named AlarmDemo and copy this code into it. We use the AlarmManager class for creating an Alarm service. Here we are setting the time to 10 seconds so after 10 seconds a Toast pops up.… Read More »