Going multiprocess on Android

Living with memory constraints

Life’s a bitch, sometimes.

Android processes: explained!

                           android:process
<manifest ...>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Main" >

<activity
android:name=".MusicActivity"
/>
<service
android:name=".MusicService"
android:process=":music"
/>
</application>
</manifest>

What’s cool about having multiple processes

Spotify is playing some music in the background. As you can see, there is one active process with a service [left picture], while another process (the one that holds the UI) is cached because no longer visible/active [right picture].

What sucks about having multiple process

Do I need multiple processes?

This happens when you first realize what “isolation between processes” really means.

Bottom line

Sebastiano Gottardo

Written by

Engineering Manager + Android Engineer, GDE

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade