Service Process Vs background process

by Sivaprakash » Thu, 17 Feb 2011 19:08:13 GMT


Sponsored Links
 Can some one tell how exactly *service process* and *background
process*Service differs - Process Life Cycle Stand point? Because both
of them are
the to serve same purpose?


-- 
- Prakash.

-- 



Re: Service Process Vs background process

by Marcin Orlowski » Thu, 17 Feb 2011 19:10:51 GMT


 


What exactly you mean by "background process" if you mean something different
than service?

-- 
Regards,
Marcin

-- 


Sponsored Links


Re: Service Process Vs background process

by A N K ! T » Thu, 17 Feb 2011 19:16:27 GMT


 i think it is same as in android background processes is know as service...
may be i couldn't get ur question...

On Thu, Feb 17, 2011 at 4:40 PM, Marcin Orlowski







-- 

 A N K ! T......

-- 



Re: Service Process Vs background process

by Sivaprakash » Thu, 17 Feb 2011 21:11:37 GMT


 OK if you go through the following link

 http://developer.android.com/guide/topics/fundamentals.html 

Processes and lifecycles sectionthere are two things Service Process and
Background Process, how they differ each other?

- Siva









-- 
- Prakash.

-- 



Re: Service Process Vs background process

by Marcin Orlowski » Thu, 17 Feb 2011 21:30:38 GMT


 



Background process is not a system element/feature you can use (as
Service is). It's a *state* of process (same as "foreground process"
or "visible process"). If you want to run your code in background use
Service.

-- 
Regards,
Marcin

-- 



Re: Service Process Vs background process

by blcooley » Fri, 18 Feb 2011 04:32:50 GMT


 On Feb 17, 7:11am, Sivaprakash <sivaprakashshanmu...@gmail.com>



The process descriptions at the bottom of that link are letting you
know the order in which the OS will reclaim resources.

Here's my rudimentary understanding:

"background process" is something that is not currently visible or
actively processing, the canonical example being an Activity whose
onStop() has been called. Such processes can be killed by the OS when
it needs to reclaim resources.

"service process" is something that is not visible, but is currently
processing and affecting the user experience. Think of playing music
or monitoring location, for example.

A Service (i.e. instantiation of the class Service) can and will be
classified as all of those processes during its lifetime. Part of the
confusion is that a service isn't necessarily running in a separate
process from the Activity that instantiates it and launches it.

--