25720

Using intent ACTION_SET_ALARM to allow application to set a UNIQUE alarm

Question:

I am attempting to write an application that automatically sets the Android default alarm based on some preset values determined by an alternate algorithm.

The alarm setting works fine using the ACTION_SET_ALARM intent, however every time I run the app, it sets a NEW alarm. I'm wondering if there is any way to instead have one unique alarm set to update every time the activity sets the alarm (so that there are not hundreds of new alarms in the Android alarm application).

I will provide code excerpts if necessary, however it seems that this question can be answered without specific examples. NOTE: I am not using the Android alarm system that is intended for informing other activities of certain events, but rather the actual Android alarm that users will utilize to wake up in the morning.

Thank you in advance for any assistance!

Answer1:

It turns out that this is actually not possible given the scope of my problem. Instead, I had to work with a list of manufacturer specific alarm clocks (<a href="https://stackoverflow.com/questions/4115649/listing-of-manufacturers-clock-alarm-package-and-class-name-please-add" rel="nofollow">here</a>) and handle each case specifically.

In the case where the user is still going to use the open source alarm, I had to remove the ACTION_SET_ALARM intent as there is currently no workaround for the redundant alarms issue. The user would have to manually delete each alarm.

Recommend

  • JqSuite PHP: get column name or id?
  • How to create product of an array using values from sub-arrays
  • Variable number of parameters
  • Haskell audio output on OS X?
  • Writing a dictionary to a CSV file [duplicate]
  • StreamWriter not updating its path on new day
  • Slowly changing dimension - What is Pure type 6 implementation
  • SQL append distinct values from two columns and two tables
  • Hibernate: Inheritance and relationship mapping + generics
  • Should I use composite primary keys in Grails?
  • What is this strange character in chrome's resource css viewer?
  • Send data from edittext to listview
  • How to repeat sections of a SQL query across UNIONs? (DRY in SQL)
  • How can go in last activity with resume button?
  • Android application: how to use the camera and grab the image bytes?
  • How to Cache Real-time Data?
  • Dialing with Intent.ACTION_CALL stopps at # in phone number
  • How to clear text inside text field when radio button is select
  • Scrapy recursive link crawler
  • Body moving without any force applied? (Box2d)
  • How can I send an e-mail from a vbs script
  • req.body is undefined - nodejs
  • Symfony2: How to get request parameter
  • what is the difference between the asp.net mvc application and asp.net web application
  • Akka Routing: Reply's send to router ends up as dead letters
  • Invalid access key error using credentials redeemed from an amazon open id token
  • Is there a mandatory requirement to switch app.yaml?
  • retrieve vertices with no linked edge in arangodb
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • Python: how to group similar lists together in a list of lists?
  • How to set the response of a form post action to a iframe source?
  • Understanding cpu registers
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Change div Background jquery
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • Qt: Run a script BEFORE make
  • How can I remove ASP.NET Designer.cs files?
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • Add sale price programmatically to product variations
  • reshape alternating columns in less time and using less memory