to top
Android APIs

Package Index - Android SDK

These are the Android APIs. See all API classes.

android

Contains resource classes used by applications included in the platform and defines application permissions for system features.

android.accessibilityservice

The classes in this package are used for development of accessibility service that provide alternative or augmented feedback to the user.

android.accounts
android.animation

These classes provide functionality for the property animation system, which allows you to animate object properties of any type. int, float, and hexadecimal color values are supported by default. You can animate any other type by telling the system how to calculate the values for that given type with a custom TypeEvaluator.

For more information, see the Animation guide.

android.app

Contains high-level classes encapsulating the overall Android application model.

android.app.admin

Provides device administration features at the system level, allowing you to create security-aware applications that are useful in enterprise settings, in which IT professionals require rich control over employee devices.

For more information, see the Device Administration guide.

android.app.backup

Contains the backup and restore functionality available to applications. If a user wipes the data on their device or upgrades to a new Android-powered device, all applications that have enabled backup can restore the user's previous data when the application is reinstalled.

For more information, see the Data Backup guide.

android.appwidget

Contains the components necessary to create "app widgets", which users can embed in other applications (such as the home screen) to quickly access application data and services without launching a new activity.

For more information, see the App Widgets guide.

android.bluetooth

Provides classes that manage Bluetooth functionality, such as scanning for devices, connecting with devices, and managing data transfer between devices.

For more information, see the Bluetooth guide.

android.content

Contains classes for accessing and publishing data on a device.

android.content.pm

Contains classes for accessing information about an application package, including information about its activities, permissions, services, signatures, and providers.

android.content.res

Contains classes for accessing application resources, such as raw asset files, colors, drawables, media or other other files in the package, plus important device configuration details (orientation, input types, etc.) that affect how the application may behave.

For more information, see the Application Resources guide.

android.database Contains classes to explore data returned through a content provider.
android.database.sqlite Contains the SQLite database management classes that an application would use to manage its own private database.
android.drm

Provides classes for managing DRM content and determining the capabilities of DRM plugins (agents).

android.gesture Provides classes to create, recognize, load and save gestures.
android.graphics Provides low level graphics tools such as canvases, color filters, points, and rectangles that let you handle drawing to the screen directly.
android.graphics.drawable

Provides classes to manage a variety of visual elements that are intended for display only, such as bitmaps and gradients.

android.graphics.drawable.shapes Contains classes for drawing geometric shapes.
android.hardware

Provides support for hardware features, such as the camera and other sensors.

android.hardware.input
android.hardware.usb

Provides support to communicate with USB hardware peripherals that are connected to Android-powered devices.

For more information, see the USB guide.

android.inputmethodservice Base classes for writing input methods (such as software keyboards).
android.location

Contains classes that define Android location-based and related services.

For more information, see the Location and Maps guide.

android.media Provides classes that manage various media interfaces in audio and video.
android.media.audiofx Provides classes that manage audio effects implemented in the media framework.
android.media.effect

Provides classes that allow you to apply a variety of visual effects to images and videos.

android.mtp

Provides APIs that let you interact directly with connected cameras and other devices, using the PTP (Picture Transfer Protocol) subset of the MTP (Media Transfer Protocol) specification.

android.net Classes that help with network access, beyond the normal java.net.* APIs.
android.net.http
android.net.nsd
android.net.rtp

Provides APIs for RTP (Real-time Transport Protocol), allowing applications to manage on-demand or interactive data streaming.

android.net.sip

Provides access to Session Initiation Protocol (SIP) functionality, such as making and answering VOIP calls using SIP.

For more information, see the Session Initiation Protocol developer guide.

android.net.wifi

Provides classes to manage Wi-Fi functionality on the device.

android.net.wifi.p2p

Provides classes to create peer-to-peer (P2P) connections with Wi-Fi Direct.

android.net.wifi.p2p.nsd
android.nfc

Provides access to Near Field Communication (NFC) functionality, allowing applications to read NDEF message in NFC tags. A "tag" may actually be another device that appears as a tag.

For more information, see the Near Field Communication guide.

android.nfc.tech

These classes provide access to a tag technology's features, which vary by the type of tag that is scanned.

android.opengl

Provides an OpenGL ES static interface and utilities.

android.os Provides basic operating system services, message passing, and inter-process communication on the device.
android.os.storage

Contains classes for the system storage service, which manages binary asset filesystems known as Opaque Binary Blobs (OBBs).

android.preference Provides classes that manage application preferences and implement the preferences UI.
android.provider

Provides convenience classes to access the content providers supplied by Android.

android.renderscript

The Renderscript rendering and computational APIs offer a low-level, high performance means of carrying out mathematical calculations and 3D graphics rendering.

For more information, see the Renderscript developer guide.

android.sax A framework that makes it easy to write efficient and robust SAX handlers.
android.security
android.service.textservice

Provides classes that allow you to create spell checkers in a manner similar to the input method framework (for IMEs).

android.service.wallpaper
android.speech
android.speech.tts
android.support.v13.app Support classes to access some of the android.app package features introduced after API level 13 in a backwards compatible fashion.
android.support.v13.dreams Support classes to ease implementation of Dreams in a backwards compatible fashion.
android.support.v4.accessibilityservice Support android.accessibilityservice classes to assist with development of applications for android API level 4 or later.
android.support.v4.app Support android.app classes to assist with development of applications for android API level 4 or later.
android.support.v4.content Support android.content classes to assist with development of applications for android API level 4 or later.
android.support.v4.content.pm Support android.content.pm classes to assist with development of applications for android API level 4 or later.
android.support.v4.database Support android.database classes to assist with development of applications for android API level 4 or later.
android.support.v4.net
android.support.v4.os
android.support.v4.util Support android.util classes to assist with development of applications for android API level 4 or later.
android.support.v4.view Support android.util classes to assist with development of applications for android API level 4 or later.
android.support.v4.view.accessibility Support classes to access some of the android.view.accessibility package features introduced after API level 4 in a backwards compatible fashion.
android.support.v4.widget Support android.widget classes to assist with development of applications for android API level 4 or later.
android.telephony Provides APIs for monitoring the basic phone information, such as the network type and connection state, plus utilities for manipulating phone number strings.
android.telephony.cdma Provides APIs for utilizing CDMA-specific telephony features.
android.telephony.gsm Provides APIs for utilizing GSM-specific telephony features, such as text/data/PDU SMS messages.
android.test

A framework for writing Android test cases and suites.

For more information, see the Testing developer guide.

android.test.mock

Utility classes providing stubs or mocks of various Android framework building blocks.

For more information, see the Testing guide.

android.test.suitebuilder Utility classes supporting the test runner classes.
android.text

Provides classes used to render or track text and text spans on the screen.

android.text.format This package contains alternative classes for some text formatting classes defined in java.util and java.text.
android.text.method

Provides classes that monitor or modify keypad input.

android.text.style

Provides classes used to view or change the style of a span of text in a View object.

android.text.util Utilities for converting identifiable text strings into clickable links and creating RFC 822-type message (SMTP) tokens.
android.util Provides common utility methods such as date/time manipulation, base64 encoders and decoders, string and number conversion methods, and XML utilities.
android.view Provides classes that expose basic user interface classes that handle screen layout and interaction with the user.
android.view.accessibility

The classes in this package are used to represent screen content and changes to it as well as APIs for querying the global accessibility state of the system.

android.view.animation

Provides classes that handle tweened animations.

android.view.inputmethod Framework classes for interaction between views and input methods (such as soft keyboards).
android.view.textservice
android.webkit Provides tools for browsing the web.
android.widget The widget package contains (mostly visual) UI elements to use on your Application screen.
dalvik.bytecode

Provides classes related to Dalvik bytecode.

dalvik.system

Provides utility and system information classes specific to the Dalvik VM.

java.awt.font
java.beans
java.io
java.lang
java.lang.annotation
java.lang.ref

Provides the system's ReferenceQueue implementation as well as different forms of reference objects which impose special behavior on the garbage collector.

java.lang.reflect
java.math
java.net
java.nio
java.nio.channels
java.nio.channels.spi
java.nio.charset
java.nio.charset.spi
java.security

This package is for compatibility with legacy code only, and should not be used or expected to do anything useful.

java.security.acl

This package provides the classes and the interfaces needed to build Access Control Lists.

java.security.cert

This package provides all the classes and all the interfaces needed to generate, administer and verify X.509 certificates.

java.security.interfaces

This package provides the interfaces needed to generate: (1) Keys for the RSA asymmetric encryption algorithm using the PKCS#1 standard; (2) Keys for the Digital Signature Algorithm (DSA) specified by FIPS-186; (3) Keys for a generic Elliptic Curve asymmetric encryption algorithm.

java.security.spec

This package provides the classes and interfaces needed to specify keys and parameters for encryption and signing algorithms.

java.sql

Provides a compatibility interface for accessing SQL-based databases.

java.text
java.util
java.util.concurrent Utility classes commonly useful in concurrent programming.
java.util.concurrent.atomic A small toolkit of classes that support lock-free thread-safe programming on single variables.
java.util.concurrent.locks Interfaces and classes providing a framework for locking and waiting for conditions that is distinct from built-in synchronization and monitors.
java.util.jar
java.util.logging
java.util.prefs
java.util.regex
java.util.zip
javax.crypto

This package provides the classes and interfaces for cryptographic applications implementing algorithms for encryption, decryption, or key agreement.

javax.crypto.interfaces

This package provides the interfaces needed to implement the Diffie-Hellman (DH) key agreement's algorithm as specified by PKCS#3.

javax.crypto.spec

This package provides the classes and interfaces needed to specify keys and parameter for encryption.

javax.microedition.khronos.egl
javax.microedition.khronos.opengles

Provides a standard OpenGL interface.

javax.net

This package provides factory classes to create sockets and server-sockets.

javax.net.ssl

This package provides classes and interfaces needed to use the Secure Sockets Layer (SSL) protocol and the successor Transport Layer Security (TLS) protocol.

javax.security.auth
javax.security.auth.callback

This package provides classes and interfaces needed to interact with the application in order to execute the authentication and authorization processes.

javax.security.auth.login

This package provides a pluggable and stackable authentication system based on ideas and concepts from the Unix-PAM module.

javax.security.auth.x500

This package provides classes needed to store X.500 principals and their credentials.

javax.security.cert

This package is provided only for compatibility reasons.

javax.sql
javax.xml

Provides a utility class with useful XML constants.

javax.xml.datatype

XML/Java Type Mappings.

javax.xml.namespace

XML Namespace processing.

javax.xml.parsers Provides classes allowing the processing of XML documents.
javax.xml.transform

This package defines the generic APIs for processing transformation instructions, and performing a transformation from source to result.

javax.xml.transform.dom

This package implements DOM-specific transformation APIs.

javax.xml.transform.sax

This package implements SAX2-specific transformation APIs.

javax.xml.transform.stream

This package implements stream- and URI- specific transformation APIs.

javax.xml.validation

This package provides an API for validation of XML documents.

javax.xml.xpath

This package provides an object-model neutral API for the evaluation of XPath expressions and access to the evaluation environment.

junit.framework The junit test framework.
junit.runner Utility classes supporting the junit test framework.
org.apache.http The core interfaces and classes of the HTTP components.
org.apache.http.auth The API for client-side HTTP authentication against a server, commonly referred to as HttpAuth.
org.apache.http.auth.params Parameters for configuring HttpAuth.
org.apache.http.client The API for client-side HTTP communication and entry point to the HttpClient module.
org.apache.http.client.entity
org.apache.http.client.methods Request implementations for the various HTTP methods like GET and POST.
org.apache.http.client.params Parameters for configuring HttpClient.
org.apache.http.client.protocol Additional request and response interceptors.
org.apache.http.client.utils Helpers and utility classes for HttpClient.
org.apache.http.conn The client-side connection management and handling API at the heart of what is referred to as HttpConn.
org.apache.http.conn.params Parameters for configuring HttpConn.
org.apache.http.conn.routing The client-side route representation and tracking API, part of HttpConn.
org.apache.http.conn.scheme
org.apache.http.conn.ssl TLS/SSL specific parts of the HttpConn API.
org.apache.http.conn.util
org.apache.http.cookie The API for client-side state management via cookies, commonly referred to as HttpCookie.
org.apache.http.cookie.params Parameters for configuring HttpCookie.
org.apache.http.entity Representations for HTTP message entities.
org.apache.http.impl Default implementations for interfaces in org.apache.http.
org.apache.http.impl.auth
org.apache.http.impl.client
org.apache.http.impl.conn
org.apache.http.impl.conn.tsccm The implementation of a thread-safe client connection manager.
org.apache.http.impl.cookie
org.apache.http.impl.entity Default implementations for interfaces in org.apache.http.entity.
org.apache.http.impl.io Default implementations for interfaces in org.apache.http.io.
org.apache.http.io The transport layer abstraction of the HTTP components.
org.apache.http.message A selection of HTTP message implementations.
org.apache.http.params The parameterization framework for HTTP components.
org.apache.http.protocol HTTP protocol execution framework.
org.apache.http.util Mostly utility classes with static helper methods for various purposes.
org.json
org.w3c.dom

Provides the official W3C Java bindings for the Document Object Model, level 2 core.

org.w3c.dom.ls
org.xml.sax

This package provides the core SAX APIs.

org.xml.sax.ext

This package contains interfaces to SAX2 facilities that conformant SAX drivers won't necessarily support.

org.xml.sax.helpers

This package contains "helper" classes, including support for bootstrapping SAX-based applications.

org.xmlpull.v1
org.xmlpull.v1.sax2