Questions tagged [android-alarms]

Android alarms is the facility provided by Android through AlarmManager to start an intent at a given time (by passing a pending intent).

Android alarms is the facility provided by Android through AlarmManager to start an intent at a given time (by passing a PendingIntent) which can be used to start an activity or a service or send a broadcast.

AlarmManager Class Reference

1179 questions
3
votes
1 answer

State of Alarm when App is reinstalled

Hi I have an app that sets an alarm to do a specific operation when the alarm is triggered. In case if I re-install the app, what will happen to the Alarm that was set previously? Will it still be active? or will it be killed due to…
Code_Yoga
  • 2,968
  • 6
  • 30
  • 49
3
votes
2 answers

Need to restart the Android device periodically using alarm manager

I need to restart the device pragmatically using Alarm manager, I am calling the intent and in the intent activity I am using reboot function and my device is rooted one. My code is as follows public void onClick(View v) { Calendar…
kumar Sudheer
  • 705
  • 3
  • 8
  • 28
3
votes
1 answer

Alarm fires if the time is eariler than the current system time in android

I am using alarm manager to assign the alarm at specific time. I encountered a problem which is if I set the time earlier than the current system time, then the alarm action will be fired instantly. How to prevent this behavior ? Thanks My code: …
user782104
  • 13,233
  • 55
  • 172
  • 312
3
votes
0 answers

Android Notification at Date and Time present in a Database

I have a Database having various date and time entries. I want to make an android application that matches all the date time entries with the current date and time and gives a notification when the entry matches. What would be the best way to do…
Harshit Gupta
  • 335
  • 2
  • 14
3
votes
1 answer

AlarmManager in Android

I have code which is to be run daily; for this I'm trying to use AlarmManager. This is my code for triggering alarms: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Anil M
  • 1,297
  • 2
  • 19
  • 42
3
votes
3 answers

Using context inside class extending BroadcastReceiver

When an alarm in android goes off, I want to create an AlertDialog. Also, I want to create a notification, depending on which option the user clicks in the radio buttons on the dialog. The problem arises when I try to use context or…
3
votes
1 answer

Android Alarm Volume increase gradually

I have an Alarm class which plays the default alarm tone on time. I want to make the alarm tone play, volume from minimum to maximum within a time. How can i increase the volume gradually from minimum to maximum. Is there any links for sample codes…
Arundas K V
  • 801
  • 2
  • 14
  • 28
3
votes
2 answers

Android service execution denied

I have a service implemented as a WakefulIntentService. It is started every time a proper intent is issued to the BroadcastReceiver responsible by starting it. The service starts in two situations: upon device boot and when a running instance of the…
Piovezan
  • 3,215
  • 1
  • 28
  • 45
3
votes
1 answer

Android Alarm Clock with multiple alarms

I want to create a alarm clock with multiple alarms. I want to know how to create it using database and start the service. Suggest me some links or some tutorials which i can find helpful. Right now i am using Pending Intent when one sets an alarm.…
Kiran
  • 49
  • 1
  • 3
3
votes
3 answers

SharedPreferences not updating in onResume()

I am new to Android programming, I am trying to develop an app which is used to set alarms. As the AlarmManager will lose all the alarms on system reboot, so I saved all the alarms being created by the user using SharedPreferences. I have a main…
Sharda Singh
  • 727
  • 3
  • 10
  • 19
3
votes
1 answer

Reminder Functionality

In my application i am trying to set reminder and alarm on that reminder but i am not able to do so. As i don't have complete and proper knowledge of how to set reminder, edit it and delete it. As i searched on google and what i got is not easy to…
3
votes
2 answers

Create an alarm list

I want to write a simple application on Android for my own use. I want to add an alarm. How do I make a list of alarms and add them? It's about something like the picture.
Silesia
  • 67
  • 1
  • 9
3
votes
1 answer

Best way to set multiple alarms when some are of repeating in nature in Android

I'm building a reminders application where one time, weekly, monthly reminders and we notify the user of the reminder on due date and time. Reminders can be updated any time by the user to update the reminding time or delete the reminder altogether.…
Gautham
  • 3,418
  • 3
  • 30
  • 41
3
votes
3 answers

Android Alarm doesn't work

I am doing an alarm application, I take code of examples I have found in Internet but it doesn't work I don't know why. Here is my AndroidManifest.xml:
mai87
  • 159
  • 2
  • 11
3
votes
1 answer

How to alert alarm message when outside of the app in android?

I am trying this code to popup the alarm message. Its working when launching or opening the app, but it doesn't say any popup message while outside of the app. I am so confused, i don't know what i am doing wrong. String alarmtime =…