Sunday, January 13, 2013

[android-developers] Re: Set alarm in the device

Hi,

Ankit and Dylan-cool.

Finally i found this:

https://www.youtube.com/watch?v=44fZqJOQ_go

This works fine and the alarm to fires at the set time. Though 1problem exists in this code is that the alarm also gets fired as soon as you click on a button set it i.e. the receiver activity opens at the alarm time but also opens immediately after you click on the button to set it. Couldnt figure out why this happens, and still looking for a solution.

On Friday, January 11, 2013 12:41:16 PM UTC+5:30, Avinhood wrote:
Hi,

I am trying to set an alarm for a specified time on click of a button and at that time, the alarm should ring.
I tried several codes on the net and stackoverflow, but strangely none of them are practically working .
I set the pending intent, and the receiver and required changes in manifest.

it would be nice if someone can provide a working code. 

--
Avinash Shyam

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment