Yes this is the recommended pattern. Investigate the IntentService
class, which works quite
well as the backend service to communicate with webapps or web based
services. There is
a talk from Google I/O that might interest you: 
http://www.youtube.com/watch?v=xHXn3Kg2IQE


Jonathan

On Jan 18, 7:44 pm, Kumar Bibek <[email protected]> wrote:
> Should I make a service and communicate with service from activity and
> delegate all <API to webservice> to service and just use intents ...
> (sorry if this sound confusing)
>
> It's possible and recommended as well.
>
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
>
>
>
>
>
>
>
> On Wed, Jan 19, 2011 at 9:09 AM, Nikola <[email protected]> wrote:
> > Hi,
>
> > I need to develop app that is consuming data from web service.
>
> > There is API which I have to use to communicate to web service.
>
> > I have to log on through API so I can use service, API maintains
> > session.
>
> > Should I make a service and communicate with service from activity and
> > delegate all <API to webservice> to service and just use intents ...
> > (sorry if this sound confusing)
>
> > Could anyone provide maybe some kinda directions or ideas about given
> > problem in terms of architecture?
>
> > Any books, whatever ...would be greatly appreciated.
>
> > Tnx in advance.
>
> > --
> > God is Real, unless declared Integer.
> > J. Allan Toogood, FORTRAN programmer
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to