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
0
votes
2 answers

How to trigger Alarm on SQLite saved date?

I am making an application for Birth Day Alarm. If date saved in SQLite matches the current date, then the Alarm should be started. Can any one give me some suggestion or any link ? @Override public void onCreate(Bundle savedInstanceState) { …
0
votes
1 answer

Repeat notification when Android device is booted

In Android, I use the AlarmManager to set a repeating task that is executed once per day. The user can choose the time for this alarm. When he chooses 9:00 o'clock for example, a given task is executed every day at 9 o'clock, i.e. a pending intent…
caw
  • 30,999
  • 61
  • 181
  • 291
0
votes
2 answers

Repetitive alarm using alarm manager

I am trying to make an alarm application that takes multiple "n" time inputs from the user and rings at those particular times. For that I have created an array of EditTexts for both the hour and minute entries. In the onclick listener for the…
tanvi
  • 927
  • 5
  • 17
  • 32
0
votes
1 answer

Using AlarmManager.cancel() when you have multiple one-shot alarms

So, let's say I had an app that used the same method to schedule multiple one-shot alarms and throw up a notification at the scheduled time for each. I'm fairly certain the method I created to handle this works (although I haven't tested it yet),…
MowDownJoe
  • 728
  • 1
  • 11
  • 29
0
votes
1 answer

alarm takes n multiple times

I am trying to make an alarm application that will take ‘n’ number of times from the user and buzz at those times and stores the difference in the timing so that the next user accesses the application, the stored difference is default. Here is the…
tanvi
  • 927
  • 5
  • 17
  • 32
0
votes
1 answer

How to set an alarm on dynamic date and time?

Android 2.1 code: Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, year); cal.set(Calendar.MONTH, month); cal.set(Calendar.DAY_OF_MONTH, day); cal.set(Calendar.HOUR, hour); cal.set(Calendar.MINUTE, minute); cal.set(Calendar.SECOND,…
Pisti
  • 133
  • 2
  • 11
0
votes
1 answer

Android AlarmManager alarm being killed by task mgr

So I've been writing an app that uses an alarm to open a service ever few hours or so. My Galaxy S2 Skyrocket has a built in Task Manager that allows me to "Exit" recently opened applications. After I set the alarm if I go into the Task Manager…
Matt
  • 13
  • 2
0
votes
1 answer

Alarm Popup message not Working properly?

I am using alaram in my app.Alarm is working fine with out any problem but while alarm message get populated i am seeing last used activity on back of it. I am expecting only the popup message without any last used activity or any activity in back…
vinothp
  • 9,939
  • 19
  • 61
  • 103
0
votes
2 answers

Setting up AlarmManager and NumberFormatException?

This is my Receiver.java import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.widget.Toast; public class Receiver extends BroadcastReceiver { @Override public void…
Romans 8.38-39
  • 456
  • 4
  • 14
0
votes
2 answers

How to popup Alarm Message without any activity in background?

In my android i app i can alarm functionality and as well logout functionality. After setting my alarm time i am exiting the app by clicking the logout button. I am using ExitActivity.this.finish(); Intent intent1 = new…
vinothp
  • 9,939
  • 19
  • 61
  • 103
0
votes
1 answer

Android - Get all Alarms set in Clock application? (There might be multiple third party clock application)

I want to write application which displays all the Alarms and Timers set in my device. Lets take this scenario, Assumption: In my device there is one system Clock application and I downloaded 2 third party clock applications. Now lets say, I set 3…
0
votes
1 answer

Android: AlarmManager to trigger an event every day

Im trying to make an app, that would remind me of an event at the same time every day. For this purpouse Im using an AlarmManager. This is how I register an event: Intent alarmIntent = new Intent(getApplicationContext(),…
0
votes
1 answer

how to stop alarm running ant controlled

the source code here........ pendingIntent = PendingIntent.getBroadcast(AlarmAppActivity.this, 0, myIntent,PendingIntent.FLAG_ONE_SHOT ); //Intent myIntent = new Intent(AlarmAppActivity.this, AlarmService.class); // …
0
votes
1 answer

Application alarm causing a weird error until I press the back button

I have an alarm in my application that notifies me every 10 minutes. It works fine but each time when the alarm notifies me, my application name will show as a box in the middle of the screen, and I can't press anything until I press the back…
Maha
  • 459
  • 1
  • 6
  • 22
0
votes
1 answer

Android alarm driver

I am new to android, I want to know the implementation of alarm.c particularly why android alarm needs the RTC support. Alarm works for me only when i enable RTC support. can you please explain in brief way whats the importance of RTC in…