I have an API Object that I made, and I would like to share it between a running Service and various Activities in my app, almost like if I was to make the class static. How could I go about sharing the created object between the two?
+1
A:
You may find the following helpful.
http://stackoverflow.com/questions/3141632/android-service-interacting-with-multiple-activities
Soumya Simanta
2010-08-08 04:06:13
Ha ha awesome. I love it when the answer is along the lines of "I'm not trying to be a jerk, but I am going to politely point out that a quick search could likely have been all you needed"
Hamy
2010-08-08 04:35:09
A:
I figured out the best way to do this is to have a class that holds all the information that you want, and to use that class through each activity and service.
Chiggins
2010-08-18 17:39:54