glossary.jd revision 54b6cfa9a9e5b861a9930af873580d6dc20f773c
1page.title=Glossary 2@jd:body 3<style TYPE="text/css"> 4dt{font-weight:bold} 5</style> 6<h1>Android Glossary</h1> 7<p>The following terms are used in these documents. </p> 8<dl> 9 <dt>.apk extension </dt> 10 <dd>The extension for an Android package file, which typically contains all of the files 11 related to a single Android application. The file itself is a compressed collection 12 of an AndroidManifest.xml file, application code (.dex files), resource 13 files, and other files. A project is compiled into a single .apk file.</dd> 14 <dt>.dex extension </dt> 15 <dd>Android programs are compiled into .dex (Dalvik Executable) files, which 16 are in turn zipped into a single .apk file on the device. .dex files can 17 be created by automatically translating compiled applications written in 18 the Java programming language.</dd> 19 <dt>Action</dt> 20 <dd>A description of something that an Intent sender wants done. An action is 21 a string value assigned to an Intent. Action strings can be defined by Android 22 or by a third-party developer. For example, android.intent.action.VIEW 23 for a Web URL, or com.example.rumbler.SHAKE_PHONE for a custom application 24 to vibrate the phone. </dd> 25 <dt>Activity</dt> 26 <dd>A single screen in an application, with supporting Java code, derived from 27 the {@link android.app.Activity} class. </dd> 28 <dt>adb</dt> 29 <dd>Android Debug Bridge, a command-line debugging application shipped with the 30 SDK. It provides tools to browse the device, copy tools on the device, and 31 forward ports for debugging. See <a href="adb.html">Using adb</a> for more information. </dd> 32 <dt>Application</dt> 33 <dd>A collection of one or more activities, services, listeners, and intent receivers. 34 An application has a single manifest, and is compiled into a single .apk 35 file on the device. </dd> 36 <dt>Content Provider</dt> 37 <dd>A class built on {@link android.content.ContentProvider} that handles content 38 query strings of a specific format to return data in a specific format. 39 See <a href="{@docRoot}devel/data/contentproviders.html">Reading 40 and writing data to a content provider</a> for information on using 41 content providers. </dd> 42 <dt>Content URI</dt> 43 <dd>A type of URI. See the URI entry. </dd> 44 <dt>Dalvik</dt> 45 <dd>The name of Android's virtual machine. The Dalvik VM is an interpreter-only 46 virtual machine that executes files in the Dalvik Executable (.dex) format, 47 a format that is optimized for efficient storage and memory-mappable execution. 48 The virtual machine is register-based, and it can run classes compiled by 49 a Java language compiler that have been transformed into its native format 50 using the included "dx" tool. 51 The VM runs on top of Posix-compliant operating systems, which it relies 52 on for underlying functionality (such as threading and low level memory management). 53 The Dalvik core class library is intended to provide a familiar 54 development base for those used to programming with Java Standard 55 Edition, but it is geared specifically to the needs of a small mobile 56 device.</dd> 57 <dt>DDMS</dt> 58 <dd>Dalvik Debug Monitor Service, a GUI debugging application shipped with the 59 SDK. It provides screen capture, log dump, and process examination capabilities. 60 See Using the <a href="{@docRoot}reference/ddms.html">Dalvik 61 Debug Monitor Server</a> to learn more about this 62 program. </dd> 63 <dt>Drawable</dt> 64 <dd>A compiled visual resource that can be used as a background, title, or other 65 part of the screen. It is compiled into an {@link android.graphics.drawable} 66 subclass. </dd> 67 <dt>Intent</dt> 68 <dd>A class ({@link android.content.Intent}) that contains several fields describing 69 what a caller would like to do. The caller sends this intent to Android's 70 intent resolver, which looks through the intent filters of all applications 71 to find the activity most suited to handle this intent. Intent fields include 72 the desired action, a category, a data string, the MIME type of the data, a handling 73 class, and other restrictions. </dd> 74 <dt>Intent Filter</dt> 75 <dd>Activities and intent receivers include one or more filters in their manifest 76 to describe what kinds of intents or messages they can handle or want to 77 receive. An intent filter lists a set of requirements, such as data type, 78 action requested, and URI format, that the Intent or message must fulfill. 79 For activities, Android searches for the activity with the most closely matching 80 valid match between the Intent and the activity filter. For messages, Android 81 will forward a message to all receivers with matching intent filters. </dd> 82 <dt></dt> 83 <dt>Intent Receiver </dt> 84 <dd>An application class that listens for messages broadcast by calling {@link 85 android.content.Context#sendBroadcast(android.content.Intent) Context.sendBroadcast()}. 86 For example code, see <a href="{@docRoot}kb/commontasks.html#broadcastreceivers">Listening 87 for and broadcasting global messages</a>.</dd> 88 <dt>Layout resource </dt> 89 <dd>An XML file that describes the layout of an Activity screen. </dd> 90 <dt>Manifest</dt> 91 <dd>An XML file associated with each Application that describes the various activies, 92 intent filters, services, and other items that it exposes. See <a href="{@docRoot}devel/bblocks-manifest.html">AndroidManifest.xml 93 File Details</a>.</dd> 94 <dt>Nine-patch / 9-patch / Ninepatch image</dt> 95 <dd>A resizeable bitmap resource that can be used for backgrounds or other images 96 on the device. See <a href="{@docRoot}reference/available-resources.html#ninepatch">Nine-Patch Stretchable 97 Image</a> for more information. </dd> 98 <dt>Query String</dt> 99 <dd>A type of URI. See the URI entry. </dd> 100 <dt>Resource</dt> 101 <dd>A user-supplied XML, bitmap, or other file, entered into an application build 102 process, which can later be loaded from code. Android can accept resources 103 of many types; see <a href="{@docRoot}devel/resources-i18n.html">Resources</a> for a full description. 104 Application-defined resources should be stored in the <code>res/</code> subfolders. </dd> 105 <dt>Service</dt> 106 <dd>A class that runs in the background to perform various persistent actions, 107 such as playing music or monitoring network activity. </dd> 108 <dt>Theme</dt> 109 <dd>A set of properties (text size, background color, and so on) bundled together 110 to define various default display settings. Android provides a few standard 111 themes, listed in {@link android.R.style} (starting with "Theme_"). </dd> 112 <dt>URIs</dt> 113 <dd>Android uses URI strings both for requesting data (e.g., a list of contacts) 114 and for requesting actions (e.g., opening a Web page in a browser). Both 115 are valid URI strings, but have different values. All requests for data must 116 start with the string "content://". Action strings are valid URIs 117 that can be handled appropriately by applications on the device; for example, 118 a URI starting with "http://" will be handled by the browser. </dd> 119</dl> 120<p> </p> 121 122