Understanding provider attribute "android:multiprocess" in Android Manifest

Viewed 1853

In creating a mobile application for Android, I am dealing with a SQLite database which requires a ContentProvider. The ContentProvider is used for adding, update, reading, or deleting data from the database.

I read http://developer.android.com/guide/topics/manifest/provider-element.html but I did not find any further information what it means, especially for working with databases.

I have seen some manifests that define the following provider:

<provider
    android:name="main.ContentProvider"
    android:authorities="main.ContentProvider"
    android:multiprocess="true">
</provider>

What does it mean to have multiprocess set to true? Does that mean many database queries will be handled simultaneously? And if I set it to false, what happens then?

Thx.

2 Answers

Don't use android:multiprocess="true".

Not only does it passively not help you, but it even actively causes other problems. For example, if you have android:multiprocess="true" then android:process=":something" doesn't start in a new process.

Related