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

setting multiple notifications at different times- android

I need to create multiple notifications at multiple times. The time when the notification is supposed to appear is fetched into the event_id,etc.time for notification is set in another class. What happens with the code below is, for a notification…
Sherlock
  • 1
  • 1
-2
votes
0 answers

How to pass the SurfaceView instance to the Alarm Service

All I want is to make video recorder [using MediaRecorder], but as you can know it must have a SurfaceView as preview window. I have a problem with this SurfaceView, since I'm calling the alarm service every 2 seconds, it don't have any access to…
user20355916
-2
votes
1 answer

Why my alarm not working with BOOT_COMPLETED

My app work when my android is not restart but when I turn off my Android the app not working despite I add BOOT_COMPLETED. I have looked for similar questions but all of them work just as I do, I do not know what is wrong Manifest
Jeorge
  • 73
  • 1
  • 7
-2
votes
1 answer

Alarm manager and broadcast receiver in force closed app

I want to do some network job periodically even when app if force closed. Now it works until it's force closed. What i am missing? Also if i add to manifest this: android:process=":remote" - it's not triggering onReceive method (like app is force…
-2
votes
1 answer

How to set notifications for particular days like, 1 day, 3days, 7 days and 28 days respectively

I am working on a project where I need to set alarm at different times like after 1 day, 3days, 7days, 28 days if user left the app. I am able to set the alarm for everyday easily using Calendar calendar2 = Calendar.getInstance(); …
-2
votes
2 answers

Unable to set schedule time accurately on 6.0 and above

I'm trying to make an app where it requires schedule time to be accurate. I need to reset the log(driver duty info) generated within app at a specific time. I tried to use setAlarm but its not working accurately on 6.0 and above. As it should work…
moDev
  • 5,248
  • 4
  • 33
  • 63
-2
votes
2 answers

AlarmManager doesn't works properly

I programatically set fire AlarmManager every 10 seconds, This code works on all devices except the one I relly need. On this device it calls every 60 seconds Question: is there any limitation/configuration settings…
Sergey
  • 1
-2
votes
2 answers

package com.android.datetimepicker.time does not exist?

When I cloned Android's default alarm in Anroid Open Source Project @ https://android.googlesource.com/platform/packages/apps/DeskClock/ and tried to run it on Android Studio I got the following error: package com.android.datetimepicker.time does…
madu
  • 557
  • 6
  • 14
-2
votes
1 answer

Alam fire only recently sending values

I'm using two buttons like btn1 and btn2,and also I'm using time-picker dialog for both buttons. btn1 select 7.50 am and btn2 select 8.10am, if i send 7.50am value via Bluetooth then alarm fire,if i send 8.10 am value then alarm fire only 8.10 am…
MPM
  • 11
  • 2
-2
votes
2 answers

Replace Service with AlarmManager in Android

I have an android service to fetch data from the web that runs every fifteen minutes public class SparkService extends Service { Handler handler; public SparkService() { } @Override public int onStartCommand(Intent intent, int…
tbag
  • 1,268
  • 2
  • 16
  • 34
-2
votes
2 answers

What components are required for an alarm app in Android?

Is the main class JobScheduler? Most things i've read about JobScheduler are about setting up jobs in the future, but those jobs they talk about are like for wifi downloads or something. Would this be the same case for an alarm clock app? What…
albert kim
  • 333
  • 2
  • 14
-2
votes
1 answer

How to make alarm play on specified days of week?(But alarm must play every week)?

I am programming alarm clock for myself and i got that problem. I also want to use the solution of my problem to set specified(by me) loud of alarm and ringtone. Please, show the code, if possible?
Muu
  • 23
  • 1
  • 6
-2
votes
1 answer

Android Multiple Alarm

can any one help me in creating multiple alarms .If any one has example of this.Please send me because I am new to android.If any one has example in working form on multiple alarm, please send me.
-2
votes
1 answer

Android App is asking to share Bug report? Why is this?

I just learned Android from scratch and built an app with simple process using Android Studio. The app has one process with repeating Alarm manager which will toast a message after 10 mins. That's it. However, once I install it on a real device,…
Android_Noob
  • 487
  • 2
  • 6
  • 19
-2
votes
1 answer

interesting bug in setting time for alarm

I have created a reminder app which gives notification "n" days before a fixed date. I came across an interesting bug while trying out the program. I have made the code such that if the "nth day" is before the current time the alarm does not…
ARK
  • 165
  • 13
1 2 3
78
79