Method Index: L - Android SDK

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

L

LABEL
This constant is deprecated. see ContactsContract
Contacts.ContactMethodsColumns
LABEL
This constant is deprecated. see ContactsContract
Contacts.OrganizationColumns
LABEL
This constant is deprecated. see ContactsContract
Contacts.PhonesColumns
LABEL
The user defined label for the the contact method.
ContactsContract.CommonDataKinds.CommonColumns
LABEL
The user defined label for the phone number.
ContactsContract.PhoneLookupColumns
label
A user-legible name for the given item.
int
R.attr
LabeledIntent(Intent origIntent, String sourcePackage, int labelRes, int icon)
Create a labeled intent from the given intent, supplying the label and icon resources for it.
LabeledIntent
LabeledIntent(Intent origIntent, String sourcePackage, CharSequence nonLocalizedLabel, int icon)
Create a labeled intent from the given intent, supplying a textual label and icon resource for it.
LabeledIntent
LabeledIntent(String sourcePackage, int labelRes, int icon)
Create a labeled intent with no intent data but supplying the label and icon resources for it.
LabeledIntent
LabeledIntent(String sourcePackage, CharSequence nonLocalizedLabel, int icon)
Create a labeled intent with no intent data but supplying a textual label and icon resource for it.
LabeledIntent
labelTextSize
Size of the text for custom keys with some text and no icon.
int
R.attr
LANGUAGE
The attribute describing the language of a character.
AttributedCharacterIterator.Attribute
LANGUAGE
The language of the video

Type: TEXT

MediaStore.Video.VideoColumns
LANGUAGE_MODEL_FREE_FORM
Use a language model based on free-form speech recognition.
RecognizerIntent
LANGUAGE_MODEL_WEB_SEARCH
Use a language model based on web search terms.
RecognizerIntent
LANG_AVAILABLE
Denotes the language is available for the language by the locale, but not the country and variant.
int
TextToSpeech
LANG_COUNTRY_AVAILABLE
Denotes the language is available for the language and country specified by the locale, but not the variant.
int
TextToSpeech
LANG_COUNTRY_VAR_AVAILABLE
Denotes the language is available exactly as specified by the locale.
int
TextToSpeech
LANG_MISSING_DATA
Denotes the language data is missing.
int
TextToSpeech
LANG_NOT_SUPPORTED
Denotes the language is not supported.
int
TextToSpeech
LAO
The "Lao" Unicode Block.
Character.UnicodeBlock
LAO
The Constant LAO indicates the LAO range and decimal base.
int
NumericShaper
largeScreens
Indicates whether the application supports larger screen form-factors.
int
R.attr
last()
Sets this iterator's current position to the last boundary and returns that position.
BreakIterator
last()
Sets the current position to the end index - 1 and returns the character at the new position.
CharacterIterator
last()
Shifts the cursor position to the last row of the ResultSet.
ResultSet
last()
Returns the last element in this SortedSet.
SortedSet
last()
Sets the current position to the end index - 1 and returns the character at the new position.
StringCharacterIterator
last()
Returns the last element in this TreeSet.
TreeSet
lastDebuggerActivity()
Returns the time since the last known debugger activity.
VMDebug
lastElement()
Returns the last element in this vector.
Vector
lastIndexOf(E e, int index)
Returns the index of the last occurrence of the specified element in this list, searching backwards from index, or returns -1 if the element is not found.
CopyOnWriteArrayList
lastIndexOf(int c)
Searches in this string for the last index of the specified character.
String
lastIndexOf(int c, int start)
Searches in this string for the index of the specified character.
String
lastIndexOf(CharSequence s, char ch)
TextUtils
lastIndexOf(CharSequence s, char ch, int last)
TextUtils
lastIndexOf(CharSequence s, char ch, int start, int last)
TextUtils
lastIndexOf(Object object)
Searches this list for the specified object and returns the index of the last occurrence.
AbstractList
lastIndexOf(Object object)
Searches this list for the specified object and returns the index of the last occurrence.
ArrayList
lastIndexOf(Object o)
Searches this List for the specified object and returns the index of the last occurrence.
CopyOnWriteArrayList
lastIndexOf(Object object)
Searches this LinkedList for the specified object and returns the index of the last occurrence.
LinkedList
lastIndexOf(Object object)
Searches this List for the specified object and returns the index of the last occurrence.
List
lastIndexOf(Object object)
Searches in this vector for the index of the specified object.
Vector
lastIndexOf(Object object, int location)
Searches in this vector for the index of the specified object.
Vector
lastIndexOf(String string)
Searches in this string for the last index of the specified string.
String
lastIndexOf(String string)
Searches for the last index of the specified character.
StringBuffer
lastIndexOf(String string)
Searches for the last index of the specified character.
StringBuilder
lastIndexOf(String subString, int start)
Searches in this string for the index of the specified string.
String
lastIndexOf(String subString, int start)
Searches for the index of the specified character.
StringBuffer
lastIndexOf(String subString, int start)
Searches for the index of the specified character.
StringBuilder
lastIndexOfSubList(List<?> list, List<?> sublist)
Searches the list for sublist and returns the beginning index of the last occurrence.
Collections
lastKey()
Returns the last key in this sorted map.
SortedMap
lastKey()
Returns the last key in this map.
TreeMap
lastModified()
Returns the time when this file was last modified, measured in milliseconds since January 1st, 1970, midnight.
File
LastOwnerException()
Creates a new LastOwnerException.
LastOwnerException
LAST_APPLICATION_UID
Last of application-specific UIDs starting at FIRST_APPLICATION_UID.
int
Process
LAST_APPLICATION_WINDOW
End of types of application windows.
int
WindowManager.LayoutParams
LAST_CALL_TRANSACTION
The last transaction code available for user commands.
int
IBinder
LAST_SUB_WINDOW
End of types of sub-windows.
int
WindowManager.LayoutParams
LAST_SYSTEM_WINDOW
End of types of system windows.
int
WindowManager.LayoutParams
LAST_TIME_CONTACTED
This constant is deprecated. see ContactsContract
Contacts.PeopleColumns
LAST_TIME_CONTACTED
The last time a contact was contacted.
ContactsContract.ContactOptionsColumns
LAST_YEAR
The year in which the latest songs on this album were released.
MediaStore.Audio.AlbumColumns
LATEST
a String representation for latest.
Pack200.Packer
LATIN_1_SUPPLEMENT
The "Latin-1 Supplement" Unicode Block.
Character.UnicodeBlock
LATIN_EXTENDED_A
The "Latin Extended-A" Unicode Block.
Character.UnicodeBlock
LATIN_EXTENDED_ADDITIONAL
The "Latin Extended Additional" Unicode Block.
Character.UnicodeBlock
LATIN_EXTENDED_B
The "Latin Extended-B" Unicode Block.
Character.UnicodeBlock
LATITUDE
The latitude where the image was captured.
MediaStore.Images.ImageColumns
LATITUDE
The latitude where the image was captured.
MediaStore.Video.VideoColumns
launchActivity(String pkg, Class<T> activityCls, Bundle extras)
Utility method for launching an activity.
InstrumentationTestCase
launchActivityWithIntent(String pkg, Class<T> activityCls, Intent intent)
Utility method for launching an activity with a specific Intent.
InstrumentationTestCase
LauncherActivity()
LauncherActivity
LauncherActivity.IconResizer()
LauncherActivity.IconResizer
LauncherActivity.ListItem()
LauncherActivity.ListItem
launchMode
Specify how an activity should be launched.
int
R.attr
LAUNCH_MULTIPLE
Constant corresponding to standard in the launchMode attribute.
int
ActivityInfo
LAUNCH_SINGLE_INSTANCE
Constant corresponding to singleInstance in the launchMode attribute.
int
ActivityInfo
LAUNCH_SINGLE_TASK
Constant corresponding to singleTask in the launchMode attribute.
int
ActivityInfo
LAUNCH_SINGLE_TOP
Constant corresponding to singleTop in the launchMode attribute.
int
ActivityInfo
LaxContentLengthStrategy()
LaxContentLengthStrategy
LayerDrawable(Drawable[] layers)
Create a new layer drawable with the list of specified layers.
LayerDrawable
layerProtocol(boolean secure)
Tracks layering a protocol.
RouteTracker
layerProtocol(HttpContext context, HttpParams params)
Layers a protocol on top of an established tunnel.
AbstractPoolEntry
layerProtocol(HttpContext context, HttpParams params)
AbstractPooledConnAdapter
layerProtocol(HttpContext context, HttpParams params)
Layers a new protocol on top of a tunnelled connection.
ManagedClientConnection
LayerRasterizer()
LayerRasterizer
LAYER_PROTOCOL
Step: layer protocol (over tunnel).
int
HttpRouteDirector
layout
Supply an identifier for the layout resource to inflate when the ViewStub becomes visible or when forced to do so.
int
R.attr
layout(int l, int t, int r, int b)
Assign a size and position to a view and all of its descendants

This is the second phase of the layout mechanism.

View
layoutAnimation
Defines the layout animation to use the first time the ViewGroup is laid out.
int
R.attr
LayoutAnimationController(Context context, AttributeSet attrs)
Creates a new layout animation controller from external resources.
LayoutAnimationController
LayoutAnimationController(Animation animation)
Creates a new layout animation controller with a delay of 50% and the specified animation.
LayoutAnimationController
LayoutAnimationController(Animation animation, float delay)
Creates a new layout animation controller with the specified delay and the specified animation.
LayoutAnimationController
LayoutAnimationController.AnimationParameters()
LayoutAnimationController.AnimationParameters
layoutChildren()
Subclasses must override this method to layout their children.
AbsListView
(protected)
layoutChildren()
Subclasses must override this method to layout their children.
GridView
(protected)
layoutChildren()
Subclasses must override this method to layout their children.
ListView
(protected)
layout_above
Positions the bottom edge of this view above the given anchor view ID.
int
R.attr
layout_alignBaseline
Positions the baseline of this view on the baseline of the given anchor view ID.
int
R.attr
layout_alignBottom
Makes the bottom edge of this view match the bottom edge of the given anchor view ID.
int
R.attr
layout_alignLeft
Makes the left edge of this view match the left edge of the given anchor view ID.
int
R.attr
layout_alignParentBottom
If true, makes the bottom edge of this view match the bottom edge of the parent.
int
R.attr
layout_alignParentLeft
If true, makes the left edge of this view match the left edge of the parent.
int
R.attr
layout_alignParentRight
If true, makes the right edge of this view match the right edge of the parent.
int
R.attr
layout_alignParentTop
If true, makes the top edge of this view match the top edge of the parent.
int
R.attr
layout_alignRight
Makes the right edge of this view match the right edge of the given anchor view ID.
int
R.attr
layout_alignTop
Makes the top edge of this view match the top edge of the given anchor view ID.
int
R.attr
layout_alignWithParentIfMissing
If set to true, the parent will be used as the anchor when the anchor cannot be be found for layout_toLeftOf, layout_toRightOf, etc.
int
R.attr
layout_below
Positions the top edge of this view below the given anchor view ID.
int
R.attr
layout_centerHorizontal
If true, centers this child horizontally within its parent.
int
R.attr
layout_centerInParent
If true, centers this child horizontally and vertically within its parent.
int
R.attr
layout_centerVertical
If true, centers this child vertically within its parent.
int
R.attr
LAYOUT_CHANGED
int
WindowManager.LayoutParams
layout_column
The index of the column in which this child should be.
int
R.attr
layout_gravity
Standard gravity constant that a child can supply to its parent.
int
R.attr
layout_height
Specifies the basic height of the view.
int
R.attr
LAYOUT_INFLATER_SERVICE
Use with getSystemService(String) to retrieve a LayoutInflater for inflating layout resources in this context.
Context
layout_margin
Specifies extra space on the left, top, right and bottom sides of this view.
int
R.attr
layout_marginBottom
Specifies extra space on the bottom side of this view.
int
R.attr
layout_marginLeft
Specifies extra space on the left side of this view.
int
R.attr
layout_marginRight
Specifies extra space on the right side of this view.
int
R.attr
layout_marginTop
Specifies extra space on the top side of this view.
int
R.attr
layout_scale

Must be a floating point value, such as "1.2".

int
R.attr
layout_span
Defines how many columns this child should span.
int
R.attr
layout_toLeftOf
Positions the right edge of this view to the left of the given anchor view ID.
int
R.attr
layout_toRightOf
Positions the left edge of this view to the right of the given anchor view ID.
int
R.attr
layout_weight

Must be a floating point value, such as "1.2".

int
R.attr
layout_width
Specifies the basic width of the view.
int
R.attr
layout_x

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

int
R.attr
layout_y

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

int
R.attr
LA_88
int
PixelFormat
LDAPCertStoreParameters()
Creates a new LDAPCertStoreParameters instance with default parameters.
LDAPCertStoreParameters
LDAPCertStoreParameters(String serverName)
Creates a new LDAPCertStoreParameters instance with the specified server name and default port 389.
LDAPCertStoreParameters
LDAPCertStoreParameters(String serverName, int port)
Creates a new LDAPCertStoreParameters instance with the specified server name and port.
LDAPCertStoreParameters
LeadingMarginSpan.Standard(Parcel src)
LeadingMarginSpan.Standard
LeadingMarginSpan.Standard(int every)
LeadingMarginSpan.Standard
LeadingMarginSpan.Standard(int first, int rest)
LeadingMarginSpan.Standard
LEAP
LEAP/Network EAP (only used with LEAP)
int
WifiConfiguration.AuthAlgorithm
leave(InetAddress addr)
Removes this socket from the multicast group addr.
DatagramSocketImpl
(protected)
leaveGroup(InetAddress groupAddr)
Removes this socket from the specified multicast group.
MulticastSocket
leaveGroup(SocketAddress addr, NetworkInterface netInterface)
Removes this socket from the multicast group addr.
DatagramSocketImpl
(protected)
leaveGroup(SocketAddress groupAddress, NetworkInterface netInterface)
Removes this socket from the specified multicast group.
MulticastSocket
LEFT
Push object to the left of its container, not changing its size.
int
Gravity
left

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

int
R.attr
left(TextView widget, Spannable buffer)
Scrolls the text to the left if possible.
LinkMovementMethod
(protected)
left(TextView widget, Spannable buffer)
Scrolls the text to the left if possible.
ScrollingMovementMethod
(protected)
LEFT_JUSTIFY
Denotes the output is to be left-justified.
int
FormattableFlags
LEFT_OF
Rule that aligns a child's right edge with another child's left edge.
int
RelativeLayout
length()
Returns the number of characters in this sequence.
AlteredCharSequence
length()
Returns the length of the array.
AtomicIntegerArray
length()
Returns the length of the array.
AtomicLongArray
length()
Returns the length of the array.
AtomicReferenceArray
length()
Returns the number of bits up to and including the highest bit set.
BitSet
length()
Gets the number of bytes in this Blob object.
Blob
length()
ByteArrayBuffer
length()
CharArrayBuffer
length()
Returns the number of remaining chars.
CharBuffer
length()
Returns the number of characters in this sequence.
CharSequence
length()
Retrieves the number of characters in this Clob object.
Clob
length()
Gets the length of the erroneous input.
CoderResult
length()
Returns the length of this file in bytes.
File
length()
Get the number of elements in the JSONArray, included nulls.
JSONArray
length()
Get the number of keys stored in the JSONObject.
JSONObject
length()
Returns the length of the memory file.
MemoryFile
length()
Return the euclidian distance from (0,0) to the point
PointF
length()
Returns the length of this file in bytes.
RandomAccessFile
length()
Returns the number of characters in this sequence.
SpannableString
length()
Return the number of chars in the buffer.
SpannableStringBuilder
length()
Returns the number of characters in this sequence.
SpannedString
length()
Returns the size of this string.
String
length()
The current length.
StringBuffer
length()
The current length.
StringBuilder
length()
Returns the length, in characters, of the text managed by this TextView
TextView
length()
Return the number of values in this array.
TypedArray
length(float x, float y)
Returns the euclidian distance from (0,0) to (x,y)
PointF
length(float x, float y, float z)
Computes the length of a vector
Matrix
LENGTH_LONG
Request the full spelled-out name.
int
DateUtils
LENGTH_LONG
Show the view or text notification for a long period of time.
int
Toast
LENGTH_MEDIUM
Request an abbreviated version of the name.
int
DateUtils
LENGTH_SHORT
Request a shorter abbreviated version of the name.
int
DateUtils
LENGTH_SHORT
Show the view or text notification for a short period of time.
int
Toast
LENGTH_SHORTER
Request an even shorter abbreviated version of the name.
int
DateUtils
LENGTH_SHORTEST
Request an even shorter abbreviated version of the name.
int
DateUtils
lessEquals(ProtocolVersion version)
Tests if this protocol version is less or equal to the given one.
ProtocolVersion
LETTERLIKE_SYMBOLS
The "Letterlike Symbols" Unicode Block.
Character.UnicodeBlock
LETTERS_ONLY
This mode has only the letters line
int
DialerFilter
LETTER_NUMBER
Unicode category constant Nl.
byte
Character
LevelListDrawable()
LevelListDrawable
LEXICAL_HANDLER_PROPERTY
Driver
LF
int
HTTP
LightingColorFilter(int mul, int add)
Create a colorfilter that multiplies the RGB channels by one color, and then adds a second color, pinning the result for each component to [0..255].
LightingColorFilter
LIGHT_CLOUDY
float
SensorManager
LIGHT_FULLMOON
Various luminance values during the night (lux)
float
SensorManager
LIGHT_NO_MOON
float
SensorManager
LIGHT_OVERCAST
float
SensorManager
LIGHT_SHADE
float
SensorManager
LIGHT_SUNLIGHT
float
SensorManager
LIGHT_SUNLIGHT_MAX
Various luminance values during the day (lux)
float
SensorManager
LIGHT_SUNRISE
float
SensorManager
LIMBU
The "Limbu" Unicode Block.
Character.UnicodeBlock
limit()
Returns the limit of this buffer.
Buffer
limit(int newLimit)
Sets the limit of this buffer.
Buffer
LIMITED_DISCOVERABILITY
int
BluetoothClass.Service
LINE
Shape is a line
int
GradientDrawable
LinearGradient(float x0, float y0, float x1, float y1, int color0, int color1, Shader.TileMode tile)
Create a shader that draws a linear gradient along a line.
LinearGradient
LinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] positions, Shader.TileMode tile)
Create a shader that draws a linear gradient along a line.
LinearGradient
LinearInterpolator()
LinearInterpolator
LinearInterpolator(Context context, AttributeSet attrs)
LinearInterpolator
LinearLayout(Context context)
LinearLayout
LinearLayout(Context context, AttributeSet attrs)
LinearLayout
LinearLayout.LayoutParams(Context c, AttributeSet attrs)
LinearLayout.LayoutParams
LinearLayout.LayoutParams(ViewGroup.LayoutParams p)
LinearLayout.LayoutParams
LinearLayout.LayoutParams(ViewGroup.MarginLayoutParams source)
LinearLayout.LayoutParams
LinearLayout.LayoutParams(int width, int height)
LinearLayout.LayoutParams
LinearLayout.LayoutParams(int width, int height, float weight)
Creates a new set of layout parameters with the specified width, height and weight.
LinearLayout.LayoutParams
LINEAR_B_IDEOGRAMS
The "Linear B Ideograms" Unicode Block.
Character.UnicodeBlock
LINEAR_B_SYLLABARY
The "Linear B Syllabary" Unicode Block.
Character.UnicodeBlock
LINEAR_GRADIENT
Gradient is linear (default.)
int
GradientDrawable
linear_interpolator
int
R.anim
LINEAR_TEXT_FLAG
bit mask for the flag enabling linear-text (no caching)
int
Paint
lineno()
Returns the current line number.
StreamTokenizer
LineNumberInputStream(InputStream in)
Constructs a new LineNumberInputStream on the InputStream in.
LineNumberInputStream
LineNumberReader(Reader in)
Constructs a new LineNumberReader on the Reader in.
LineNumberReader
LineNumberReader(Reader in, int size)
Constructs a new LineNumberReader on the Reader in.
LineNumberReader
lines
Makes the TextView be exactly this many lines tall

Must be an integer value, such as "100".

int
R.attr
lineSpacingExtra
Extra spacing between lines of text.
int
R.attr
lineSpacingMultiplier
Extra spacing between lines of text, as a multiplier.
int
R.attr
lineTo(float x, float y)
Add a line from the last point to the specified point (x,y).
Path
LINE_SEPARATOR
Unicode category constant Zl.
byte
Character
LinkageError()
Constructs a new LinkageError that includes the current stack trace.
LinkageError
LinkageError(String detailMessage)
Constructs a new LinkageError with the current stack trace and the specified detail message.
LinkageError
LinkedBlockingQueue()
Creates a LinkedBlockingQueue with a capacity of MAX_VALUE.
LinkedBlockingQueue
LinkedBlockingQueue(int capacity)
Creates a LinkedBlockingQueue with the given (fixed) capacity.
LinkedBlockingQueue
LinkedBlockingQueue(Collection<? extends E> c)
Creates a LinkedBlockingQueue with a capacity of MAX_VALUE, initially containing the elements of the given collection, added in traversal order of the collection's iterator.
LinkedBlockingQueue
LinkedHashMap()
Constructs a new empty LinkedHashMap instance.
LinkedHashMap
LinkedHashMap(int initialCapacity)
Constructs a new LinkedHashMap instance with the specified capacity.
LinkedHashMap
LinkedHashMap(int initialCapacity, float loadFactor)
Constructs a new LinkedHashMap instance with the specified capacity and load factor.
LinkedHashMap
LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder)
Constructs a new LinkedHashMap instance with the specified capacity, load factor and a flag specifying the ordering behavior.
LinkedHashMap
LinkedHashMap(Map<? extends K, ? extends V> map)
Constructs a new LinkedHashMap instance containing the mappings from the specified map.
LinkedHashMap
LinkedHashSet()
Constructs a new empty instance of LinkedHashSet.
LinkedHashSet
LinkedHashSet(int capacity)
Constructs a new instance of LinkedHashSet with the specified capacity.
LinkedHashSet
LinkedHashSet(int capacity, float loadFactor)
Constructs a new instance of LinkedHashSet with the specified capacity and load factor.
LinkedHashSet
LinkedHashSet(Collection<? extends E> collection)
Constructs a new instance of LinkedHashSet containing the unique elements in the specified collection.
LinkedHashSet
LinkedList()
Constructs a new empty instance of LinkedList.
LinkedList
LinkedList(Collection<? extends E> collection)
Constructs a new instance of LinkedList that holds all of the elements contained in the specified collection.
LinkedList
Linkify()
Linkify
LinkMovementMethod()
LinkMovementMethod
linksClickable
If set to false, keeps the movement method from being set to the link movement method even if autoLink causes links to be found.
int
R.attr
linkToDeath(IBinder.DeathRecipient recipient, int flags)
Local implementation is a no-op.
Binder
linkToDeath(IBinder.DeathRecipient recipient, int flags)
Register the recipient for a notification if this binder goes away.
IBinder
LINK_SPEED_UNITS
Link speed in Mbps
WifiInfo
list
int
R.id
list()
Returns an array of strings with the file names in the directory represented by this file.
File
list()
Outputs to System.out a text representation of the hierarchy of Threads and ThreadGroups in the receiver (and recursively).
ThreadGroup
list(FilenameFilter filter)
Gets a list of the files in the directory represented by this file.
File
list(PrintStream out)
Lists the mappings in this Properties to the specified PrintStream in a human readable form.
Properties
list(PrintWriter writer)
Lists the mappings in this Properties to the specified PrintWriter in a human readable form.
Properties
list(String path)
Return a String array of all the assets at the given path.
AssetManager
list(Enumeration<T> enumeration)
Returns an ArrayList with all the elements in the enumeration.
Collections
ListActivity()
ListActivity
listChoiceIndicatorMultiple
Drawable to use for multiple choice indicators

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

int
R.attr
listChoiceIndicatorSingle
Drawable to use for single choice indicators

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

int
R.attr
listDivider

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

int
R.attr
listen(PhoneStateListener listener, int events)
Registers a listener object to receive notification of changes in specified telephony states.
TelephonyManager
listen(int backlog)
Listens for connection requests on this streaming socket.
SocketImpl
(protected)
listenUsingRfcommWithServiceRecord(String name, UUID uuid)
Create a listening, secure RFCOMM Bluetooth socket with Service Record.
BluetoothAdapter
LISTEN_CALL_FORWARDING_INDICATOR
Listen for changes to the call-forwarding indicator.
int
PhoneStateListener
LISTEN_CALL_STATE
Listen for changes to the device call state.
int
PhoneStateListener
LISTEN_CELL_LOCATION
Listen for changes to the device's cell location. Note that this will result in frequent callbacks to the listener.
int
PhoneStateListener
LISTEN_DATA_ACTIVITY
Listen for changes to the direction of data traffic on the data connection (cellular).
int
PhoneStateListener
LISTEN_DATA_CONNECTION_STATE
Listen for changes to the data connection state (cellular).
int
PhoneStateListener
LISTEN_MESSAGE_WAITING_INDICATOR
Listen for changes to the message-waiting indicator.
int
PhoneStateListener
LISTEN_NONE
Stop listening for updates.
int
PhoneStateListener
LISTEN_SERVICE_STATE
Listen for changes to the network service state (cellular).
int
PhoneStateListener
LISTEN_SIGNAL_STRENGTH
Listen for changes to the network signal strength (cellular).
int
PhoneStateListener
listFiles()
Returns an array of files contained in the directory represented by this file.
File
listFiles(FileFilter filter)
Gets a list of the files in the directory represented by this file.
File
listFiles(FilenameFilter filter)
Gets a list of the files in the directory represented by this file.
File
listIterator()
Returns a ListIterator on the elements of this list.
AbstractList
listIterator()
Returns a List iterator on the elements of this List.

The returned iterator provides a snapshot of the state of the list when the iterator was constructed.

CopyOnWriteArrayList
listIterator()
Returns a List iterator on the elements of this List.
List
listIterator(int location)
Returns a list iterator on the elements of this list.
AbstractList
listIterator(int location)
Returns a list iterator on the elements of this list.
AbstractSequentialList
listIterator(int index)
Returns a list iterator on the elements of this List.

The returned iterator provides a snapshot of the state of the list when the iterator was constructed.

CopyOnWriteArrayList
listIterator(int location)
Returns a ListIterator on the elements of this LinkedList.
LinkedList
listIterator(int location)
Returns a list iterator on the elements of this List.
List
ListPreference(Context context)
ListPreference
ListPreference(Context context, AttributeSet attrs)
ListPreference
listPreferredItemHeight
The preferred list item height

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

int
R.attr
ListResourceBundle()
Constructs a new instance of this class.
ListResourceBundle
listRoots()
Lists the file system roots.
File
listSelector
Drawable used to indicate the currently selected item in the list.
int
R.attr
listSeparatorTextViewStyle
TextView style for list separators.
int
R.attr
ListView(Context context)
ListView
ListView(Context context, AttributeSet attrs)
ListView
ListView(Context context, AttributeSet attrs, int defStyle)
ListView
ListView.FixedViewInfo()
ListView.FixedViewInfo
listViewStyle
Default ListView style.
int
R.attr
listViewWhiteStyle
ListView with white background.
int
R.attr
LIST_ALL_CONTACTS_ACTION
This constant is deprecated. see ContactsContract
Contacts.Intents.UI
LIST_CONTACTS_WITH_PHONES_ACTION
This constant is deprecated. see ContactsContract
Contacts.Intents.UI
LIST_DEFAULT
This constant is deprecated. see ContactsContract
Contacts.Intents.UI
LIST_FREQUENT_ACTION
This constant is deprecated. see ContactsContract
Contacts.Intents.UI
LIST_GROUP_ACTION
This constant is deprecated. see ContactsContract
Contacts.Intents.UI
list_selector_background
int
R.drawable
LIST_STARRED_ACTION
This constant is deprecated. see ContactsContract
Contacts.Intents.UI
LIST_STREQUENT_ACTION
This constant is deprecated. see ContactsContract
Contacts.Intents.UI
LITERAL
This constant specifies that the whole Pattern is to be taken literally, that is, all meta characters lose their meanings.
int
Pattern
LITTLE_ENDIAN
This constant represents little endian.
ByteOrder
load()
GestureLibrary
load()
Loads this buffer's content into memory but it is not guaranteed to succeed.
MappedByteBuffer
load(Context context, int resId, int priority)
Load the sound from the specified APK resource.
SoundPool
load(AssetFileDescriptor afd, int priority)
Load the sound from an asset file descriptor.
SoundPool
load(int keyboard)
KeyCharacterMap
load(FileDescriptor fd, long offset, long length, int priority)
Load the sound from a FileDescriptor.
SoundPool
load(InputStream stream)
Load the gesture library
GestureStore
load(InputStream in)
Loads properties from the specified InputStream.
Properties
load(InputStream inStream)
Loads properties from the specified InputStream.
Provider
load(InputStream stream, boolean closeStream)
GestureStore
load(InputStream stream, char[] password)
Initializes this KeyStore from the provided InputStream.
KeyStore
load(String pathName)
Loads and links the dynamic library that is identified through the specified path.
Runtime
load(String pathName)
Loads the specified file as a dynamic library.
System
load(String suiteClassName)
TestSuiteLoader
load(String path, int priority)
Load the sound from the specified path.
SoundPool
load(KeyStore.LoadStoreParameter param)
Loads this KeyStore using the specified LoadStoreParameter.
KeyStore
loadAnimation(Context context, int id)
Loads an Animation object from a resource
AnimationUtils
loadClass(String className)
Loads the class with the specified name.
ClassLoader
loadClass(String className, boolean resolve)
Loads the class with the specified name, optionally linking it after loading.
ClassLoader
(protected)
loadClass(String name, ClassLoader loader)
Loads a class.
DexFile
loadContactPhoto(Context context, Uri person, int placeholderImageResource, BitmapFactory.Options options)
This method is deprecated. see ContactsContract
Contacts.People
loadData(String data, String mimeType, String encoding)
Load the given data into the WebView.
WebView
loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String failUrl)
Load the given data into the WebView, use the provided URL as the base URL for the content.
WebView
loadDescription(PackageManager pm)
Retrieve the textual description of the application.
ApplicationInfo
loadDescription(PackageManager pm)
Retrieve the textual description of this permission.
PermissionGroupInfo
loadDescription(PackageManager pm)
Retrieve the textual description of this permission.
PermissionInfo
loadDex(String sourcePathName, String outputPathName, int flags)
Open a DEX file, specifying the file in which the optimized DEX data should be written.
DexFile
loadFromXML(InputStream in)
Loads the properties from an InputStream containing the properties in XML form.
Properties
loadIcon(PackageManager pm)
Retrieve the current graphical icon associated with this item.
ComponentInfo
loadIcon(PackageManager pm)
Load the user-displayed icon for this input method.
InputMethodInfo
loadIcon(PackageManager pm)
Retrieve the icon associated with this object.
LabeledIntent
loadIcon(PackageManager pm)
Retrieve the current graphical icon associated with this item.
PackageItemInfo
loadIcon(PackageManager pm)
Retrieve the current graphical icon associated with this resolution.
ResolveInfo
loadInterpolator(Context context, int id)
Loads an Interpolator object from a resource
AnimationUtils
loadJetFile(AssetFileDescriptor afd)
Loads a .jet file from an asset file descriptor.
JetPlayer
loadJetFile(String path)
Loads a .jet file from a given path.
JetPlayer
loadLabel(PackageManager pm)
Retrieve the current textual label associated with this item.
ComponentInfo
loadLabel(PackageManager pm)
Load the user-displayed label for this input method.
InputMethodInfo
loadLabel(PackageManager pm)
Retrieve the label associated with this object.
LabeledIntent
loadLabel(PackageManager pm)
Retrieve the current textual label associated with this item.
PackageItemInfo
loadLabel(PackageManager pm)
Retrieve the current textual label associated with this resolution.
ResolveInfo
loadLayoutAnimation(Context context, int id)
AnimationUtils
loadLibrary(String libName)
Loads and links the library with the specified name.
Runtime
loadLibrary(String libName)
Loads and links the shared library with the given name libName.
System
loadSoundEffects()
Load Sound effects.
AudioManager
loadSuiteClass(String suiteClassName)
Returns the loaded Class for a suite name.
AndroidTestRunner
(protected)
loadSuiteClass(String suiteClassName)
Returns the loaded Class for a suite name.
BaseTestRunner
(protected)
loadUrl(String url)
Load the given url.
WebView
loadVersionInfo(String pckg, ClassLoader clsldr)
Loads version information for a package.
VersionInfo
loadVersionInfo(String[] pckgs, ClassLoader clsldr)
Loads version information for a list of packages.
VersionInfo
loadXmlMetaData(PackageManager pm, String name)
Load an XML resource attached to the meta-data of this item.
PackageItemInfo
LOAD_CACHE_ELSE_NETWORK
Use cache if content is there, even if expired (eg, history nav) If it is not in the cache, load from network.
int
WebSettings
LOAD_CACHE_ONLY
Don't use the network, load from cache only.
int
WebSettings
LOAD_DEFAULT
Default cache usage pattern Use with setCacheMode(int).
int
WebSettings
LOAD_NORMAL
Normal cache usage pattern Use with setCacheMode(int).
int
WebSettings
LOAD_NO_CACHE
Don't use the cache, load from network Use with setCacheMode(int).
int
WebSettings
LocalActivityManager(Activity parent, boolean singleMode)
Create a new LocalActivityManager for holding activities running within the given parent.
LocalActivityManager
LOCALE
The locale that this word belongs to.
UserDictionary.Words
locale()
Returns the Locale of the Formatter.
Formatter
locale()
Return the Locale of this Scanner.
Scanner
Locale(String language)
Constructs a new Locale using the specified language.
Locale
Locale(String language, String country)
Constructs a new Locale using the specified language and country codes.
Locale
Locale(String language, String country, String variant)
Constructs a new Locale using the specified language, country, and variant codes.
Locale
LOCALE_TYPE_ALL
The locale type to specify that the word is common to all locales.
int
UserDictionary.Words
LOCALE_TYPE_CURRENT
The locale type to specify that the word is for the current locale.
int
UserDictionary.Words
LocalServerSocket(FileDescriptor fd)
Create a LocalServerSocket from a file descriptor that's already been created and bound.
LocalServerSocket
LocalServerSocket(String name)
Crewates a new server socket listening at specified name.
LocalServerSocket
LocalSocket()
Creates a AF_LOCAL/UNIX domain stream socket.
LocalSocket
LocalSocketAddress(String name)
Creates an instance with a given name in the ABSTRACT namespace
LocalSocketAddress
LocalSocketAddress(String name, LocalSocketAddress.Namespace namespace)
Creates an instance with a given name.
LocalSocketAddress
LOCAL_ADDRESS
Parameter for the local address.
ConnRoutePNames
LOCAL_VERSION
This constant is deprecated. see ContactsContract
Contacts.PhotosColumns
LOCATION
Used for permissions that allow access to the user's current location.
Manifest.permission_group
Location(Location l)
Constructs a new Location object that is a copy of the given location.
Location
Location(String provider)
Constructs a new Location.
Location
LOCATION_PROVIDERS_ALLOWED
Comma-separated list of location providers that activities may access.
Settings.Secure
LOCATION_PROVIDERS_ALLOWED
This constant is deprecated. Use LOCATION_PROVIDERS_ALLOWED instead
Settings.System
LOCATION_SERVICE
Use with getSystemService(String) to retrieve a LocationManager for controlling location updates.
Context
Locator2Impl()
Construct a new, empty Locator2Impl object.
Locator2Impl
Locator2Impl(Locator locator)
Copy an existing Locator or Locator2 object.
Locator2Impl
LocatorImpl()
Zero-argument constructor.
LocatorImpl
LocatorImpl(Locator locator)
Copy constructor.
LocatorImpl
locatorsUpdateCopy()
Determines whether updates are made to a copy of, or directly on, Large Objects (LOBs).
DatabaseMetaData
LOCCRC
int
ZipEntry
LOCCRC
int
ZipFile
LOCCRC
int
ZipInputStream
LOCCRC
int
ZipOutputStream
LOCEXT
int
ZipEntry
LOCEXT
int
ZipFile
LOCEXT
int
ZipInputStream
LOCEXT
int
ZipOutputStream
LOCFLG
int
ZipEntry
LOCFLG
int
ZipFile
LOCFLG
int
ZipInputStream
LOCFLG
int
ZipOutputStream
LOCHDR
int
ZipEntry
LOCHDR
int
ZipFile
LOCHDR
int
ZipInputStream
LOCHDR
int
ZipOutputStream
LOCHOW
int
ZipEntry
LOCHOW
int
ZipFile
LOCHOW
int
ZipInputStream
LOCHOW
int
ZipOutputStream
lock()
Lock the camera to prevent other processes from accessing it.
Camera
lock()
Obtains an exclusive lock on this file.
FileChannel
lock()
Acquires the lock.
Lock
lock()
Acquires the lock.
ReentrantLock
lock()
Acquires the read lock.
ReentrantReadWriteLock.ReadLock
lock()
Acquires the write lock.
ReentrantReadWriteLock.WriteLock
lock()
Locks the SlidingDrawer so that touch events are ignores.
SlidingDrawer
lock(long position, long size, boolean shared)
Obtains a lock on a specified region of the file.
FileChannel
lockCanvas()
Start editing the pixels in the surface.
SurfaceHolder
lockCanvas(Rect dirty)
draw into a surface
Surface
lockCanvas(Rect dirty)
Just like lockCanvas() but allows to specify a dirty rectangle.
SurfaceHolder
lockInterruptibly()
Acquires the lock unless the current thread is interrupted.
Lock
lockInterruptibly()
Acquires the lock unless the current thread is interrupted.
ReentrantLock
lockInterruptibly()
Acquires the read lock unless the current thread is interrupted.
ReentrantReadWriteLock.ReadLock
lockInterruptibly()
Acquires the write lock unless the current thread is interrupted.
ReentrantReadWriteLock.WriteLock
LOCK_PATTERN_ENABLED
Whether autolock is enabled (0 = false, 1 = true)
Settings.System
LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED
Whether lock pattern will vibrate as user enters (0 = false, 1 = true)
Settings.System
LOCK_PATTERN_VISIBLE
Whether lock pattern is visible as user enters (0 = false, 1 = true)
Settings.System
LOCLEN
int
ZipEntry
LOCLEN
int
ZipFile
LOCLEN
int
ZipInputStream
LOCLEN
int
ZipOutputStream
LOCNAM
int
ZipEntry
LOCNAM
int
ZipFile
LOCNAM
int
ZipInputStream
LOCNAM
int
ZipOutputStream
LOCSIG
long
ZipEntry
LOCSIG
long
ZipFile
LOCSIG
long
ZipInputStream
LOCSIG
long
ZipOutputStream
LOCSIZ
int
ZipEntry
LOCSIZ
int
ZipFile
LOCSIZ
int
ZipInputStream
LOCSIZ
int
ZipOutputStream
LOCTIM
int
ZipEntry
LOCTIM
int
ZipFile
LOCTIM
int
ZipInputStream
LOCTIM
int
ZipOutputStream
LOCVER
int
ZipEntry
LOCVER
int
ZipFile
LOCVER
int
ZipInputStream
LOCVER
int
ZipOutputStream
log(double d)
Returns the closest double approximation of the natural logarithm of the argument.
Math
log(double d)
Returns the closest double approximation of the natural logarithm of the argument.
StrictMath
log(Level logLevel, String msg)
Logs a message of the specified level.
Logger
log(Level logLevel, String msg, Object param)
Logs a message of the specified level with the supplied parameter.
Logger
log(Level logLevel, String msg, Object[] params)
Logs a message of the specified level with the supplied parameter array.
Logger
log(Level logLevel, String msg, Throwable thrown)
Logs a message of the specified level with the supplied Throwable object.
Logger
log(LogRecord record)
Logs a given log record.
Logger
log10(double d)
Returns the closest double approximation of the base 10 logarithm of the argument.
Math
log10(double d)
Returns the closest double approximation of the base 10 logarithm of the argument.
StrictMath
log1p(double d)
Returns the closest double approximation of the natural logarithm of the sum of the argument and 1.
Math
log1p(double d)
Returns the closest double approximation of the natural logarithm of the sum of the argument and 1.
StrictMath
LOGD
This constant is deprecated. Always true.
boolean
Config
LoggingPermission(String name, String actions)
Constructs a LoggingPermission object required to control the logging.
LoggingPermission
LoggingSessionInputBuffer(SessionInputBuffer in, Wire wire)
Create an instance that wraps the specified session input buffer.
LoggingSessionInputBuffer
LoggingSessionOutputBuffer(SessionOutputBuffer out, Wire wire)
Create an instance that wraps the specified session output buffer.
LoggingSessionOutputBuffer
LOGGING_ID
This constant is deprecated. This identifier is poorly initialized and has many collisions. It should not be used.
Settings.Secure
LOGGING_ID
This constant is deprecated. Use LOGGING_ID instead
Settings.System
LOGGING_MXBEAN_NAME
The String value of the LoggingMXBean's ObjectName.
LogManager
login(Subject subject, CallbackHandler handler)
Performs a login into this AuthProvider.
AuthProvider
LoginException()
Creates a new exception instance and initializes it with default values.
LoginException
LoginException(String message)
Creates a new exception instance and initializes it with a given message.
LoginException
LoginFilter.PasswordFilterGMail()
LoginFilter.PasswordFilterGMail
LoginFilter.PasswordFilterGMail(boolean appendInvalid)
LoginFilter.PasswordFilterGMail
LoginFilter.UsernameFilterGeneric()
LoginFilter.UsernameFilterGeneric
LoginFilter.UsernameFilterGeneric(boolean appendInvalid)
LoginFilter.UsernameFilterGeneric
LoginFilter.UsernameFilterGMail()
LoginFilter.UsernameFilterGMail
LoginFilter.UsernameFilterGMail(boolean appendInvalid)
LoginFilter.UsernameFilterGMail
LOGIN_ACCOUNTS_CHANGED_ACTION
Action sent as a broadcast Intent by the AccountsService when accounts are added to and/or removed from the device's database.
AccountManager
logout()
Performs a logout from this AuthProvider.
AuthProvider
logp(Level logLevel, String sourceClass, String sourceMethod, String msg)
Logs a message of the given level with the specified source class name and source method name.
Logger
logp(Level logLevel, String sourceClass, String sourceMethod, String msg, Object param)
Logs a message of the given level with the specified source class name, source method name and parameter.
Logger
logp(Level logLevel, String sourceClass, String sourceMethod, String msg, Object[] params)
Logs a message of the given level with the specified source class name, source method name and parameter array.
Logger
logp(Level logLevel, String sourceClass, String sourceMethod, String msg, Throwable thrown)
Logs a message of the given level with the specified source class name, source method name and Throwable object.
Logger
LogPrinter(int priority, String tag)
Create a new Printer that sends to the log with the given priority and tag.
LogPrinter
logrb(Level logLevel, String sourceClass, String sourceMethod, String bundleName, String msg)
Logs a message of the given level with the specified source class name and source method name, using the given resource bundle to localize the message.
Logger
logrb(Level logLevel, String sourceClass, String sourceMethod, String bundleName, String msg, Object param)
Logs a message of the given level with the specified source class name, source method name and parameter, using the given resource bundle to localize the message.
Logger
logrb(Level logLevel, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)
Logs a message of the given level with the specified source class name, source method name and parameter array, using the given resource bundle to localize the message.
Logger
logrb(Level logLevel, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)
Logs a message of the given level with the specified source class name, source method name and Throwable object, using the given resource bundle to localize the message.
Logger
LogRecord(Level level, String msg)
Constructs a LogRecord object using the supplied the logging level and message.
LogRecord
LOGTAG
CookieSyncManager
LOGTAG
WebViewDatabase
LOGV
This constant is deprecated. Always false.
boolean
Config
LOG_SYNC_DETAILS
Kernel event log tag.
int
AbstractThreadedSyncAdapter
LONG
The format style constant defining the long style.
int
DateFormat
LONG
The LONG display name style.
int
TimeZone
Long(String string)
Constructs a new Long from the specified string.
Long
Long(long value)
Constructs a new Long with the specified primitive long value.
Long
longBitsToDouble(long bits)
Converts the specified IEEE 754 floating-point double precision bit pattern to a Java double value.
Double
longClickable
Defines whether this view reacts to long click events.
int
R.attr
longClickView(ActivityInstrumentationTestCase test, View v)
This method is deprecated. ActivityInstrumentationTestCase is deprecated in favor of ActivityInstrumentationTestCase2, which provides more options for configuring the Activity under test
TouchUtils
longClickView(InstrumentationTestCase test, View v)
Simulate touching the center of a view, holding until it is a long press, and then releasing.
TouchUtils
longForQuery(SQLiteDatabase db, String query, String[] selectionArgs)
Utility method to run the query on the db and return the value in the first column of the first row.
DatabaseUtils
longForQuery(SQLiteStatement prog, String[] selectionArgs)
Utility method to run the pre-compiled query and return the value in the first column of the first row.
DatabaseUtils
LONGITUDE
The longitude where the image was captured.
MediaStore.Images.ImageColumns
LONGITUDE
The longitude where the image was captured.
MediaStore.Video.VideoColumns
longValue()
Returns this object's value as a long.
AtomicInteger
longValue()
Returns this object's value as a long.
AtomicLong
longValue()
Returns this BigDecimal as an long value.
BigDecimal
longValue()
Returns this BigInteger as an long value.
BigInteger
longValue()
Returns this object's value as a long.
Byte
longValue()
Returns this object's value as a long.
Double
longValue()
Returns this object's value as a long.
Float
longValue()
Returns this object's value as a long.
Integer
longValue()
Gets the primitive value of this long.
Long
longValue()
Returns this object's value as a long.
Number
longValue()
Returns this object's value as a long.
Short
longValueExact()
Returns this BigDecimal as a long value if it has no fractional part and if its value fits to the int range ([-2^{63}..2^{63}-1]).
BigDecimal
LONGVARBINARY
The type code that identifies the SQL type LONGVARBINARY.
int
Types
LONGVARCHAR
The type code that identifies the SQL type LONGVARCHAR.
int
Types
LONG_PRESS
The user has performed a long press on an object that is resulting in an action being performed.
int
HapticFeedbackConstants
lookingAt()
Tries to match the Pattern, starting from the beginning of the region (or the beginning of the input, if no region has been set).
Matcher
lookup(KeyEvent event, Spannable content)
Overrides the superclass's lookup method to prefer the number field from the KeyEvent.
DialerKeyListener
(protected)
lookup(KeyEvent event, Spannable content)
NumberKeyListener
(protected)
lookup(Class<?> cl)
Returns the descriptor corresponding to the class cl.
ObjectStreamClass
lookup(String requestURI)
HttpRequestHandlerRegistry
lookup(String requestURI)
HttpRequestHandlerResolver
lookup(String requestURI)
UriPatternMatcher
lookupContact(ContentResolver resolver, Uri lookupUri)
Computes a content URI (see CONTENT_URI) given a lookup URI.
ContactsContract.Contacts
LOOKUP_KEY
An opaque value that contains hints on how to find the contact if its row id changed as a result of a sync or aggregation.
ContactsContract.ContactsColumns
loop()
Run the message queue in this thread.
Looper
lowerCaseMode(boolean flag)
Specifies whether word tokens should be converted to lower case when they are stored in sval.
StreamTokenizer
LOWERCASE_LETTER
Unicode category constant Ll.
byte
Character
lowestOneBit(int i)
Determines the lowest (rightmost) bit of the specified integer that is 1 and returns the bit mask value for that bit.
Integer
lowestOneBit(long lng)
Determines the lowest (rightmost) bit of the specified long value that is 1 and returns the bit mask value for that bit.
Long
LOW_SURROGATES
The "Low Surrogates" Unicode Block.
Character.UnicodeBlock
LTGRAY
int
Color
LT_OK
Allow less-than characters.
int
UrlQuerySanitizer.IllegalCharacterValueSanitizer
L_8
int
PixelFormat