This tutorial will help you in creating an android application to set alarm using TimePicker. This is a basic android tutorial which will make you familiar with Intents , Pending Intents and BroadcastReceiver.
Step 1: Create an android Project Name TimeActivity
Step 2: Create main the layout file activity_main.xml
Step 3:Set Button,TimePicker and TextView
Step 4:Then SetAlarm by creating the pending intent
Step 5:Create the BroadcastReceiver to recive and set the Ringtone
step 6: Set user permissions in manifest file
First create the layout file set buttons and textview..
then create the mainactivity .
Sample
code::
package
com.example.timeactivity;
import
java.util.Calendar;
import
android.app.Activity;
As it is an effective
technology forum, so you can ask
questions based on different technologies.
Also, one can record the
desktop by using its Desktop
Recording Tool and share it with others.
Freelancers can find
projects for them and bid on relevant projects.
No comments:
Post a Comment