summaryrefslogtreecommitdiffstats
path: root/docs/html/guide/topics/manifest/uses-library-element.jd
blob: f1b5e70ff7ecffd1de4ce3066ae313e243698b82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
page.title=<uses-library>
@jd:body

<dl class="xml">
<dt>syntax:</dt>
<dd><pre>&lt;uses-library android:<a href="#nm">name</a>="<i>string</i>" /&gt;</pre></dd>

<dt>contained in:</dt>
<dd><code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code></dd>

<dt>description:</dt>
<dd>Specifies a shared library that the application must be linked against. 
This element tells the system to include the library's code in the class 
loader for the package.

<p>
All of the {@code android} packages (such as {@link android.app}, 
{@link android.content}, {@link android.view}, and {@link android.widget}) 
are in the default library that all applications are automatically linked 
against.  However, some packages (such as {@code maps} and {@code awt} are 
in separate libraries that are not automatically linked.  Consult the 
documentation for the packages you're using to determine which library 
contains the package code.
</p></dd>

<dt>attributes:</dt>
<dd><dl class="attr">
<dt><a name="nm"></a>{@code android:name}</dt>
<dd>The name of the library.</dd>
</dl></dd>

<!-- ##api level indication## -->
<dt>introduced in:</dt>
<dd>API Level 1</dd>

</dl>