3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

android:process について

Last updated at Posted at 2017-01-04

<activity>要素に指定可能なandroid:process属性についての詳細です。

原文:https://developer.android.com/guide/topics/manifest/activity-element.html#proc

android:processはActivityが実行されるべきプロセス名を指定します。通常、アプリケーションの全てのコンポーネントはアプリケーションのために作られたデフォルトのプロセス名で実行され、その場合はこの属性を使用する必要はありません。しかしもし必要であれば、この属性でデフォルトのプロセス名を上書きすることができます。これによりアプリケーションコンポーネントをマルチプロセスで動作させることができます。
プロセス名がコロン(':')で始まる場合は、アプリケーション内のプライベートな新規プロセスが作られ、その中でActivityが動作します。プロセス名が小文字で始まる場合は、Activityはその名前のグローバルプロセスで実行されます。これにより異なるアプリケーションに含まれるコンポーネントでプロセスを共有し、リソースを節約することができます。

<application>エレメントのandroid:process属性には全てのコンポーネントのデフォルトのプロセス名を指定できます。

※コンポーネントとは<activity>,<service>等のアプリケーションを構成する部品です。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?