moazzamk wrote:
> Hey guys,
> 
> I am writing an application in which you a backend process (service)
> waits for a certain time and then displays a window with a text field.
> For example, it will wait until 8:30pm today and then display a dialog
> with a text field with a random message. I have been reading about
> services but I am still a bit confused about this. It would be great
> if someone can point me in the right direction.

First, services have no UI, only activities do. So, your service would 
either need to broadcast an Intent (that an activity of yours would pick 
up) or set up a Notification.

And, at that point, you may as well get rid of the service, and use 
AlarmManager to broadcast your Intent at the desired time.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to