Skip to content

Commit d5f7d9b

Browse files
scottamainAndroid Git Automerger
authored andcommitted
am 15796e5: Merge "docs: add largeHeap attribute to app manifest doc external issue 33967" into jb-dev
* commit '15796e52df1626ae27a6a88c6e905fd3b80868c9': docs: add largeHeap attribute to app manifest doc external issue 33967
2 parents 31f38d6 + 15796e5 commit d5f7d9b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/html/guide/topics/manifest/application-element.jd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ parent.link=manifest-intro.html
1414
android:<a href="#hwaccel">hardwareAccelerated</a>=["true" | "false"]
1515
android:<a href="#icon">icon</a>="<i>drawable resource</i>"
1616
android:<a href="#killrst">killAfterRestore</a>=["true" | "false"]
17+
android:<a href="#largeHeap">largeHeap</a>=["true" | "false"]
1718
android:<a href="#label">label</a>="<i>string resource</i>"
1819
android:<a href="#logo">logo</a>="<i>drawable resource</i>"
1920
android:<a href="#space">manageSpaceActivity</a>="<i>string</i>"
@@ -161,6 +162,19 @@ has finished processing its data during a full-system restore, it will be
161162
terminated.
162163
</p></dd>
163164

165+
<dt><a name="largeHeap"></a>{@code android:largeHeap}</dt>
166+
<dd>Whether your application's processes should be created with a large Dalvik heap. This applies to
167+
all processes created for the application. It only applies to the first application loaded into a
168+
process; if you're using a shared user ID to allow multiple applications to use a process, they all
169+
must use this option consistently or they will have unpredictable results.
170+
<p>Most apps should not need this and should instead focus on reducing their overall memory usage for
171+
improved performance. Enabling this also does not guarantee a fixed increase in available memory,
172+
because some devices are constrained by their total available memory.</p>
173+
<p>To query the available memory size at runtime, use the methods {@link
174+
android.app.ActivityManager#getMemoryClass()} or {@link
175+
android.app.ActivityManager#getLargeMemoryClass()}.</p>
176+
</dd>
177+
164178
<dt><a name="label"></a>{@code android:label}</dt>
165179
<dd>A user-readable label for the application as a whole, and a default
166180
label for each of the application's components. See the individual

0 commit comments

Comments
 (0)