OSDN Git Service

Add 'process' attribute for PhotoEditor.
authorYuli Huang <yuli@google.com>
Mon, 7 May 2012 10:13:29 +0000 (18:13 +0800)
committerYuli Huang <yuli@google.com>
Mon, 7 May 2012 10:13:29 +0000 (18:13 +0800)
PhotoEditor, similar to CropImage, demands much memory and should run in
another process to avoid OOM because of too fragmented memory.
bug:6318340

Change-Id: Ic5a71959435f66b8b7bc9b1c80baf8a70ccfecaf

AndroidManifest.xml

index 3b4627f..7d97ce9 100644 (file)
                 android:label="@string/photoeditor_name"
                 android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen"
                 android:configChanges="keyboardHidden|orientation|screenSize"
-                android:hardwareAccelerated="true">
+                android:hardwareAccelerated="true"
+                android:process=":edit">
             <intent-filter>
                 <action android:name="android.intent.action.EDIT" />
                 <data android:mimeType="image/*" />