[android-beginners] Problems using AlertDialog in a onReceive() method

2010-07-28 Thread Brad Taylor
Hello Everyone, 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. The application is a basic alarm clock and I am using the following code as the receiving class. I want to use an AlertDialog instead of Toast so

Re: [android-beginners] Problems using AlertDialog in a onReceive() method

2010-07-28 Thread Mark Murphy
On Wed, Jul 28, 2010 at 7:24 PM, Brad Taylor djlm...@gmail.com 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

Re: [android-beginners] Problems using AlertDialog in a onReceive() method

2010-07-28 Thread Brad Taylor
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

Re: [android-beginners] Problems using AlertDialog in a onReceive() method

2010-07-28 Thread Mark Murphy
On Wed, Jul 28, 2010 at 8:26 PM, Brad Taylor djlm...@gmail.com wrote: Would I create a whole new Activity class that creates the AlertDialog. No, you would create a whole new Activity class that displays what you want to display. If you want it to look like an AlertDialog, add the following