Thanks for the quick reply Mark. I am unsure what you mean by using a
dialog-themed Activity and startActivity(). I have added a Alarm in my mainclass
// Schedule the alarm!
AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);
if (isOn) {
// Set alarm
am.setRepeating(AlarmManager.RTC_WAKEUP,
pickedDateAndTime.getTimeInMillis(), 60000, sender);
} else {
// Cancel alarm
am.cancel(sender);
Toast.makeText(AlarmClock.this, "Alarm cancelled",
Toast.LENGTH_LONG).show();
}
Then in my Manifest I added my Reciever Class in like this
<receiver android:name="RepeatingAlarm"></receiver>
Then I have the Receiver Code below. I am unsure how to go about adding a
dialog-themed Activity and startActivity. Would I create a whole new
Activity class that creates the AlertDialog. Then in my receiver class call
the startActivity()?
Once again thanks!
--Brad
On Wed, Jul 28, 2010 at 4:39 PM, Mark Murphy <[email protected]>wrote:
> On Wed, Jul 28, 2010 at 7:24 PM, Brad Taylor <[email protected]> wrote:
> > I new to the SDK and have intermediate Java skills and I am having an
> issue
> > with adding an AlertDialog to a Receiver I have created.
>
> Try using a dialog-themed Activity and startActivity() instead.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 2.9 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en