Questions tagged [setalarmclock]

26 questions
6
votes
2 answers

setAlarmClock() fires too late in doze mode

I have soooo much trouble getting my radio alarm clock working as intended and I have read a lot of threads here about that topic, but unfortunatley none did help me. AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE); Intent…
Ben
  • 265
  • 3
  • 13
5
votes
0 answers

Cancel alarm set by SetAlarmClock

I create an alarm using AlarmManager.setAlarmClock(AlarmClockInfo, pendingIntent) and it works. The System also displays an alarm clock on the top-right part of the screen. So far, so good, but how can I cancel that alarm? I tried using…
Ton
  • 9,235
  • 15
  • 59
  • 103
4
votes
0 answers

setAlarmClock() not working in dozo mode for few devices like OPPO phones

Inside my application I need to set alarms and when they fire I'm trying to trigger them in my Receiver. In order to deal with Dozo mode from marshmallow 6.0, if the device version is greater or equal to 6.0 I'm using alarmManger.setAlarmClock()…
2
votes
2 answers

How to programmatically turn on (Power-On) the android device at a certain time?

How to implement it in Android Studio(API LEVEL >= 17) in my App(System-App + rooted device)? I know it is possible because my phone(Lenovo A516) and some others have this feature --->>>Screenshot<<<--- ..need some ideas to start with.. Can i use…
Evgeny
  • 31
  • 1
  • 5
2
votes
0 answers

setAlarmClock not firing alarms after 15 days of correct work

I'm using the AlarmManager.setAlarmClock() to remind my app users to take their medicine. Today (after 15 days of correct work) setAlarmClock() did not fire an alarm to notify my users. How do i schedule? for (Reminder reminder :…
1
vote
1 answer

Alarmclock first project won t work (exeption in tkinter callback - ValueError: '=' alignment not allowed)

from tkinter import * from time import strftime from tkinter import ttk import winsound clock = Tk() clock.title("WhatAClock") clock.geometry("300x400") notebook = ttk.Notebook() tab1_timedate = Frame(notebook) tab2_alarm =…
1
vote
1 answer

setAlarmClock() on Xiaomi phone does not display the alarm clock icon indicator

In my android application I'm using the setAlarmClock() function to schedule an alarm. This alarm, as the android documentation states: represents an alarm clock, which means that the little alarm clock icon should be displayed on the notification…
sweak
  • 1,369
  • 2
  • 6
  • 21
1
vote
1 answer

setAlarmClock BroadcastReceiver does not reach onResume sometimes

I have created an alarm clock app using setAlarmClock. For some people the alarm does not start properly. I know you must disable all kind of energy saving modes on devices otherwise it could by that the alarm does not fire. But I have some rare…
Alex
  • 343
  • 2
  • 13
1
vote
1 answer

Get current time when notification action clicked

Building my own alarm clock app for android and have some trouble with notification. I want to set nap time from notification, so I build notification with action public class MainActivity extends AppCompatActivity { @Override protected void…
1
vote
0 answers

setAlarmClock is not exact

This is my first question on stackoverflow. I have read many similar topics but have been unable to find the problem and I am getting a bit desperate. I develop an app with an alarm clock. This alarm clock only rings under certain circumstances. If…
Lo-Cool
  • 11
  • 2
0
votes
0 answers

Setting an alarm through adb using com.android.deskclock and it's intent com.android.action.SET_ALARM

I'm trying to set and alarm in the default android clock, com.android.deskclock, using adb. I see that the clock has the intent com.android.action.SET_ALARM with extras EXTRA_HOUR and EXTRA_MINUTES, but I don't know how to send this through…
Ableton
  • 1
  • 1
0
votes
0 answers

Exception in Tkinter callback Alarmclock first project

from tkinter import * from time import strftime import winsound clock = Tk() clock.title("WhatAClock") clock.geometry("300x400") notebook = ttk.Notebook() tab1_timedate = Frame(notebook) tab2_alarm = Frame(notebook) tab3_timer =…
0
votes
0 answers

AlarmManager didn't work in oreo and later

I used lots of method from alarmManager like setRepeating, setInexactRepeating(),setExactAndAllowWhileIdle(), also this too if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { manager.setAlarmClock(AlarmManager.AlarmClockInfo(c.timeInMillis…
0
votes
1 answer

Why is setAlarmClock not working for me in my dialog fragment?

I am trying to set an android alarm manager, alarmMgr?.setAlarmClock . I have the code towards the bottom in my recyclerview adapter. It works fine to set the alarm. But in my dialog fragment, the code toward the top, whenever I hit the button to…
auotive
  • 179
  • 1
  • 9
0
votes
1 answer

What is the right declaration for AlarmClock package visibility?

I have a hard time finding the proper manifest query permission declaration when using AlarmClock intent, related with android 11 package visibility. val intent = Intent(AlarmClock.ACTION_SET_TIMER) …
ghita
  • 2,746
  • 7
  • 30
  • 54
1
2