https://elinux.org/index.php?title=Android_Packages&feed=atom&action=historyAndroid Packages - Revision history2024-03-19T01:16:19ZRevision history for this page on the wikiMediaWiki 1.31.0https://elinux.org/index.php?title=Android_Packages&diff=170576&oldid=prevAswin kumar 9: Small typo - the tool is aapt and not appt2012-09-18T12:20:53Z<p>Small typo - the tool is aapt and not appt</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 12:20, 18 September 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l20" >Line 20:</td>
<td colspan="2" class="diff-lineno">Line 20:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Tools for managing packages ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Tools for managing packages ===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The [[Android aapt|<del class="diffchange diffchange-inline">appt</del>]] tool is used to create, inspect and modify Android packages.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The [[Android aapt|<ins class="diffchange diffchange-inline">aapt</ins>]] tool is used to create, inspect and modify Android packages.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Resources ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Resources ==</div></td></tr>
<!-- diff cache key elinux:diff::1.12:old-21944:rev-170576 -->
</table>Aswin kumar 9https://elinux.org/index.php?title=Android_Packages&diff=21944&oldid=prevTim Bird: add page about packages, assets and resources2010-06-24T22:42:01Z<p>add page about packages, assets and resources</p>
<p><b>New page</b></p><div>== Packages ==<br />
Android applications are shipped as "packages", which are compressed archives with class files, resources, and meta-information (the AndroidManifest.xml file and security certificates) for the application.<br />
<br />
A package has the extension .apk, and it consists of a set of directories and files in a gzip'ed archive.<br />
<br />
A package usually contains the following items:<br />
; META-INF/MANIFEST.MF : The manifest file for the package file (apk) itself. <br />
; META-INF/CERT.SF : A security certificate<br />
; META-INF/CERT.RSA : another security certificate (should distinguish these two)<br />
; AndroidManifest.xml : The manifest file for the application(s) in this package<br />
; classes.dex : The actual code for the dalvik (/java) classes for the application(s) in this package<br />
; res/ : a directory containing resource files<br />
; resources.arsc : ???<br />
<br />
=== AndroidManifest.xml ===<br />
The AndroidManifest.xml file has information about the application(s) in a package. Usually, a package will<br />
contain a single application. The AndroidManifest file describes the application's name, as well as libraries and security permissions neede by the app, messages used by the app, what icon to use to represent the app, and more.<br />
<br />
See http://developer.android.com/guide/topics/manifest/manifest-intro.html for details.<br />
<br />
=== Tools for managing packages ===<br />
The [[Android aapt|appt]] tool is used to create, inspect and modify Android packages.<br />
<br />
== Resources ==<br />
An overview of application resources is at: http://developer.android.com/guide/topics/resources/index.html<br />
<br />
It is possible to use a raw file as a resource (without it getting compiled by the build system).<br />
See this article on [http://thedevelopersinfo.com/2009/11/27/using-files-as-raw-resources-in-android/ using raw files as resources] in Android.<br />
<br />
== Assets ==<br />
Assets are like resources, except that do not have a resource ID, and they are listed in the 'assets' directory of a package, rather than the 'res' directory.<br />
<br />
[[Category:Android]]</div>Tim Bird