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.

-- 



Other Threads

1. make context menu dont disappear

When I click on item in context menu it immidiately disappears. How
can I make context menu retain until I'll close it by "back" button?
--~--~---------~--~----~------------~-------~--~----~

2. ALSA Waiting for sevice media.audio_flinger

hi,

i'm porting android an a apf27 plateform... It works...

But there is no sound... So i installed the ALSA lib and compiled...
Now i can't boot android... What is wrong?

thanks

what i did
-----------------------------------

cd ~/mydroid/external
git clone git://android.git.kernel.org/platform/external/alsa-lib.git
git clone git://android.git.kernel.org/platform/external/alsa-utils.git
cd ~/mydroid/hardware
git clone git://android.git.kernel.org/platform/hardware/alsa_sound.git
gedit ~/mydroid/build/target/board/generic/BoardConfig.mk
BOARD_USES_ALSA_AUDIO := true
BUILD_WITH_ALSA_UTILS=true
# BOARD_USES_GENERIC_AUDIO := true

cd ~/mydroid
make


the logcat
------------------------------------------------

I/DEBUG   ( 1770):     be870b48  be870b84
[stack]
I/DEBUG   ( 1770):     be870b4c  00016128
[heap]
I/DEBUG   ( 1770):     be870b50  be870b84
[stack]
I/DEBUG   ( 1770):     be870b54  0000acb0
[heap]
I/DEBUG   ( 1770):     be870b58
000003ac
I/DEBUG   ( 1770):     be870b5c  ab016b8f  /system/lib/
libaudioflinger.so
W/AudioSystem( 1808): AudioFlinger not published,
waiting...
I/ServiceManager( 1808): Waiting for sevice
media.audio_flinger...
I/ServiceManager( 1808): Waiting for sevice
media.audio_flinger...
I/ServiceManager( 1808): Waiting for sevice
media.audio_flinger...
I/        ( 1959): ServiceManager:
0xac38
I/ServiceManager( 1808): Waiting for sevice
media.audio_flinger...
E/ALSALib ( 1959): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL
AndroidPlayback
E/AudioHardwareALSA( 1959): Unable to attach mixer to device
AndroidPlayback: No such file or
directory
E/ALSALib ( 1959): external/alsa-lib/src/control/control.c:909:
(snd_ctl_open_noupdate) Invalid CTL
AndroidRecord
E/AudioHardwareAL[   78.250000] snd_imx_pcm_open Playback stream @:
0xd39cbb00
SA( 1959): Unable to attach mixe[   78.260000]
imx_ssi_get_dma_tx_channel =
13
r to device AndroidRecord: No su[   78.260000] playback
supported
ch file or directory



the init.rc
----------------------------------------

# set the alsa audio driver
    symlink /dev/snd/pcmC0D0c /dev/pcmC0D0c
    symlink /dev/snd/pcmC0D0p /dev/pcmC0D0p
    symlink /dev/snd/controlC0 /dev/controlC0
    symlink /dev/snd/timer /dev/timer
    chmod 0777 /dev/pcmC0D0c
    chmod 0777 /dev/pcmC0D0p
    chmod 0777 /dev/controlC0
    chmod 0777 /dev/timer
    chown root audio /dev/snd/controlC0
    chown root audio /dev/snd/pcmC0D0c
    chown root audio /dev/snd/pcmC0D0p
    chown root audio /dev/snd/timer
    setprop alsa.mixer.playback.master Front
    setprop alsa.mixer.capture.master Capture
    setprop alsa.mixer.playback.earpiece Master
    setprop alsa.mixer.capture.earpiece Capture
    setprop alsa.mixer.playback.headset Master
    setprop alsa.mixer.playback.speaker
Master
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Integrate Own Application in Contact Application

4. Capture HTTP petitions from the Android browser.

5. pre-built kernel for emulator

6. CPU state

7. SMS Query