I'm trying to write a simple service that will poll RSS data from an RSS feed on start up. However, the RSS data isn't needed until a specific activity in my app is started. I have the service written and it is started via the main activity. I'm wondering how to obtain a reference to that service. I know startService() will return a ContextName of the service if it is already started. Can I somehow create a service object from that? Or do I have to go through the trouble of creating message handlers and do a request-response type of setup between my service and activity? I also toyed with the idea of creating a singleton object and just initializing it on start up but I'm very much opposed to the idea of singletons in general. That would be the lazy way out :p If I am thinking to much into it and there is a simpler way to accomplish this please let me know.
Thanks! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en