Questions tagged as 'android-alarmmanager'

1
answer

AlarmManager does not cancel the scheduled alarm

I have the following code in MyReceiver : @Override public void onReceive(Context context, Intent intent){ context.startService(new Intent(context, BackgroundService.class)); } public void setAlarm(Context context,...
asked by 25.01.2015 / 12:26
2
answers

How to know the remaining time for the alarm to ring

I'm developing an alarm clock. Below I have a function to set the alarm. But I want to know how to find the remaining time for the AlarmManager to trigger the PendingIntent. For example, it is now 11:00 AM, and we set AlarmManager to trigger...
asked by 24.06.2014 / 16:26
1
answer

Set specific time in AlarmManager by TimePicker and DatePicker

I'm doing a test before implementing the actual application. I have a two-button application (Date and Time) and a button (Schedule). As soon as the user clicks the Date button, it opens a DatePicker so that it chooses the date. On time it's the...
asked by 27.05.2017 / 16:36
1
answer

Run service even though app is not open

I'm creating a wakeup app and in tests I would like it to wake up (in this example it still only vibrates), but I'm not able to make it run in the background and so it does not end up waking up, how can I even make it app has been destroyed it k...
asked by 04.04.2018 / 03:17
2
answers

Android - Mobile alarm according to system time

Hello. I've done a lot of research and I've learned to do some cool things with AlarmManager and the like. I wanted to make an alarm clock for my cell phone for tests, the problem is that all the codes and tutorials that I find is to wake up...
asked by 16.10.2015 / 22:35
1
answer

Value drop in getIntent ()

My problem is this ... I have a notification routine that the user clicks on the notification screen, open a new Activity. In this new Activity I show some information that I look for in the database depending on the code that I pass by paramete...
asked by 16.08.2016 / 17:48
1
answer

Doubts with Notification and AlarmManager

What I need is a hint, it helps to know how to implement an AlarmManager that whenever something comes up it will appear something like this OntheHomescreenofthephoneandmakeasoundevery5secondsForthenotificationIhavethefollowingcodeprotectedvo...
asked by 18.12.2014 / 12:28
1
answer

Canceling an AlarmManager / BroadCast

Next, I do not know which one to cancel not to run, but I think it's AlarmManager ! I have a class that registers a AlarmManager with Intent("BROADCAST") to execute at a specific time, when that AlarmManager is execute...
asked by 05.06.2014 / 19:38
1
answer

How do I withdraw a notification!

I am using alarmeManager to generate a notification, and when I click on it it opens a activity ! But if the user opens the app without clicking on the notification I need this notification removed!     
asked by 06.06.2014 / 19:07
1
answer

AlarmManager - Notification in time

I'm trying to trigger an on-screen message through AlamManager and BroadCastReceiver . The specific time is being taken by a TimePicker exactly as it should. But the notification does not go off the screen. The code...
asked by 26.05.2014 / 14:59