• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Beginner here, need help

Tostuk

Lurker
Hi all
So I would need to get the information that the (phone's) alarm clock has gone off. Is there some way I can make an app that listens for an alarm in the phones backround? I know could make an alarm clock app myself and then I obviously would know when it goes off but since I'm a beginner I'm pretty sure that could not make a very good alarm clock app.
Basically I just need to send info to an arduino when an alarm goes off via bluethooth.
Thanks
 
Yes welcome to Android Forums. There are a lot questions here, but can I ask you what's your current knowledge level? Do you know the Java programming language? Because if not, your first course of action would be to learn it.
 
Not a developer but wanted to jump in and extend a welcome. I hope that you enjoy Android Forums.

Yes welcome to Android Forums. There are a lot questions here, but can I ask you what's your current knowledge level? Do you know the Java programming language? Because if not, your first course of action would be to learn it.

Thanks for the warm welcome!
My current knowledge level is that I can code basic stuff in Java and some other languages, other than that I'm just a tech enthusiast. Although I have to say that I know very little how Android works.
 
I can give you some information on this subject. It's possible to programmatically set an alarm, and do something when it goes off. You need to look into BroadcastReceiver, and AlarmManager.
There's some information in this SO question to give you some pointers

https://stackoverflow.com/questions/21429726/broadcastreceiver-and-alarmmanager-android

What I'm not sure about, is whether you can receive alarm events from some other application, like the system alarm clock. I doubt it, but there may be some system events that you can subscribe to, and be notified when they happen.
 
I am still trying to find out if it is possible to receive alarm events from other applications since I would really like to stay away from writing my own alarm clock app.
 
Back
Top Bottom