The following links may be useful. Jt implements web/services and messaging on Android:
a) Java Pattern Oriented Framework, An application of the Messaging Design Pattern IBM Technical Library http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html b) Messaging Design Pattern (MDP) and pattern implementation - Published in the 17th conference on Pattern Languages of Programs (PLoP 2010). https://jt.dev.java.net/files/documents/5553/150311/designPatterns.pdf c) Messaging Design Pattern and a distributed Component/Service Model https://jt.dev.java.net/files/documents/5553/149793/MDPdistributedModel.pdf On Dec 15, 7:28 am, flipside <flipside...@gmail.com> wrote: > I'm developing an application in which the user will be firing off > http gets sporadically. Perhaps a burst of four or five, then a pause > for maybe a few seconds or or tens of seconds or a few minutes, and > then another burst. I'm familiar with HTTPClient in non-Android apps, > and it seems appropriate to use AndroidHTTPClient in this scenario. > I'm trying to determine the most efficient way to put it into a thread > and use it. > > The transient thread-creation methods such as AsynchTask and > IntentService don't seem appropriate, because the AndroidHTTPClient > will be lost when the task completes. Perhaps I should put into a > Service. I guess that what I'm trying to do is a pretty common > requirement and I was wondering if anyone had any pointers. I'm > thinking particularly about how best to cater for life-cycle events > and configuration changes that might affect ongoing requests. I'm > expecting most of the requests to be short-lived, but of course there > is no guarantee. -- 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