Application threads vs Service threads

Posted by zerayaqob on Stack Overflow See other posts from Stack Overflow or by zerayaqob
Published on 2010-04-13T21:24:29Z Indexed on 2010/04/13 21:53 UTC
Read the original article Hit count: 642

Filed under:
|
|
|

What are the advantages/disadvantages in placing a lengthy network access code in a thread in an activity or a thread in a service? How would it affect the application? I am writing a streaming audio player and from what I've read so far putting the code in a service will still end up blocking the application so a new thread is needed, does anyone know if it makes more sense to put this piece of code in a service.

Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about threads