Docand 7 the Reference AZ Android

download Docand 7 the Reference AZ Android

of 918

  • date post

    18-Oct-2015
  • Category

    Documents

  • view

    129
  • download

    5

description

Reference

Transcript of Docand 7 the Reference AZ Android

  • Portions of this Book are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The derivitive website is devloper.android.com. The source url of the original document is included under each section title. Each Section is covered by the aforementioned License. Code Samples are included under the Apache 2.0 License. Each section has the approriate link, and associated license at the footer of the page. The Creative Commons License & Apache License are available at the end of this book.

    E&OE Errors and omissions excepted or excluded. All other sections of the document, that are not attributed to other source organisations are under Copyright 2013 by Docand using the Creative Commons Attribution-NonCommercial 3.0 Unported License.

    First Edition: October 2013

    www.DocAnd.com

    Introduction Page 2 of 918 Error! No text of specified style in document.

  • 1.Introduction

    This publication seriues has been created for the developers of Android applications. Personnally I like flip through a book, to know that Ive covered everything in it. The website for the developers is fantstic and very comprehensive, I just wanted a publication that I could reference and read through from front to back, to know I had covered everything that I should know about. To this end, I created these documents to fullfil my own requirements, and I hope that it fullfils some of your requirements to get started, and to keep upto date with the latest information.

    Android is a trademark of Google Inc.

    Introduction Page 3 of 918 Error! No text of specified style in document.

  • 2.Contents

    1. INTRODUCTION 3 2. CONTENTS 4 3. ANDROID 5 MANIFEST 6 MANIFEST.PERMISSION 7 MANIFEST.PERMISSION_GROUP 27 R 33 R.ANIM 35 R.ANIMATOR 38 R.ARRAY 39 R.ATTR 41 R.BOOL 265 R.COLOR 266 R.DIMEN 270 R.DRAWABLE 273 R.FRACTION 292 R.ID 293 R.INTEGER 299 R.INTERPOLATOR 301 R.LAYOUT 304 R.MENU 308 R.MIPMAP 310 R.PLURALS 311 R.RAW 313 R.STRING 314 R.STYLE 318 R.STYLEABLE 371 R.XML 849 4. CREATIVE COMMONS LICENSE 907 CREATIVE COMMONS ATTRIBUTION 3.0 UNPORTED 910 5. APACHE LICENSE, VERSION 2.0 915 6. INDEX 918

    Contents Page 4 of 918 Error! No text of specified style in document.

  • package

    3.android Contains resource classes used by applications included in the platform and defines application permissions for system features. You can use some resources directly from these R classes in your own applications, but you should generally use only resources that you've provided directly in your application, in order to provide a cohesive application package that has no external dependencies. In particular, you should not use drawable resources from the android package, because they may change between platform versions, causing unforeseen conflicts with your design. Typically, styles are the only resources you should use directly from these resources. For information about using resources, see the Application Resources developer guide.

    Classes

    Manifest

    Manifest.permission

    Manifest.permission_group

    R

    R.anim

    R.animator

    R.array

    R.attr

    R.bool

    R.color

    R.dimen

    R.drawable

    R.fraction

    R.id

    R.integer

    R.interpolator

    R.layout

    R.menu

    R.mipmap

    R.plurals

    R.raw

    R.string

    R.style

    R.styleable

    R.xml

    android Page 5 of 918

  • Interfaces

    Classes public final class

    Manifest extends Object

    java.lang.Object

    android.Manifest

    Summary

    Nested Classes

    class Manifest.permission

    class Manifest.permission_group

    Public Constructors

    Manifest()

    Inherited Methods

    From class java.lang.Object

    Object clone() Creates and returns a copy of this Object.

    boolean equals(Object o) Compares this instance with the specified object and indicates if they are equal.

    void finalize() Invoked when the garbage collector has detected that this instance is no longer reachable.

    final Class

    getClass() Returns the unique instance of Class that represents this object's class.

    int hashCode() Returns an integer hash code for this object.

    The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location.

    android Page 6 of 918

  • final void

    notify() Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    final void

    notifyAll() Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    String toString() Returns a string containing a concise, human-readable description of this object.

    final void

    wait() Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

    final void

    wait(long millis, int nanos) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    final void

    wait(long millis) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    Public Constructors

    public Manifest () + 1

    public static final class

    Manifest.permission extends Object

    java.lang.Object

    android.Manifest.permission

    Summary

    Constants

    String ACCESS_CHECKIN_PROPERTIES Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded.

    String ACCESS_COARSE_LOCATION Allows an app to access approximate location derived from network location sources such as cell towers and Wi-Fi.

    String ACCESS_FINE_LOCATION Allows an app to access precise location from location sources such as GPS, cell towers, and Wi-Fi.

    String ACCESS_LOCATION_EXTRA_COMMANDS Allows an application to access extra location provider commands

    String ACCESS_MOCK_LOCATION Allows an application to create mock location providers for testing String ACCESS_NETWORK_STATE Allows applications to access information android Page 7 of 918

  • about networks

    String ACCESS_SURFACE_FLINGER Allows an application to use SurfaceFlinger's low level features

    String ACCESS_WIFI_STATE Allows applications to access information about Wi-Fi networks

    String ACCOUNT_MANAGER Allows applications to call into AccountAuthenticators.

    String ADD_VOICEMAIL Allows an application to add voicemails into the system.

    String AUTHENTICATE_ACCOUNTS Allows an application to act as an AccountAuthenticator for the AccountManager

    String BATTERY_STATS Allows an application to collect battery statistics

    String BIND_ACCESSIBILITY_SERVICE Must be required by an AccessibilityService, to ensure that only the system can bind to it.

    String BIND_APPWIDGET Allows an application to tell the AppWidget service which application can access AppWidget's data.

    String BIND_DEVICE_ADMIN Must be required by device administration receiver, to ensure that only the system can interact with it.

    String BIND_INPUT_METHOD Must be required by an InputMethodService, to ensure that only the system can bind to it.

    String BIND_NOTIFICATION_LISTENER_SERVICE Must be required by an NotificationListenerService, to ensure that only the system can bind to it.

    String BIND_REMOTEVIEWS Must be required by a RemoteViewsService, to ensure that only the system can bind to it. String BIND_TEXT_SERVICE Must be required by a TextService (e.g.

    String BIND_VPN_SERVICE Must be required by an VpnService, to ensure that only the system can bind to it.

    String BIND_WALLPAPER Must be required by a WallpaperService, to ensure that only the system can bind to it.

    String BLUETOOTH Allows applications to connect to paired bluetooth devices

    String BLUETOOTH_ADMIN Allows applications to discover and pair bluetooth devices

    String BRICK Required to be able to disable the device (very dangerous!).

    String BROADCAST_PACKAGE_REMOVED Allows an application to broadcast a notification that an application package has been removed.

    String BROADCAST_SMS Allows an application to broadcast an SMS receipt notification

    String BROADCAST_STICKY Allows an application to broadcast sticky intents.

    String BROADCAST_WAP_PUSH Allows an application to broadcast a WAP PUSH receipt notification

    android Page 8 of 918

  • String CALL_PHONE Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call being placed.

    String CALL_PRIVILEGED

    Allows an application to call any phone number, including emergency numbers, without going through the Dialer user interface for the user to confirm the call being placed.

    String CAMERA Required to be able to access the camera device.

    String CHANGE_COMPONENT_ENABLED_STATE Allows an application to change whether an application component (other than its own) is enabled or not.

    String CHANGE_CONFIGURATION Allows an application to modify the current configuration, such as locale.

    String CHANGE_NETWORK_STATE Allows applications to change network connectivity state

    String CHANGE_WIFI_MULTICAST_STATE Allows applications to enter Wi-Fi Multicast mode

    String CHANGE_WIFI_STATE Allows applications to change Wi-Fi connectivity state

    String CLEAR_APP_CACHE Allows an application to clear the caches of all installed applications on the device. String CLEAR_APP_USER_DATA Allows an application to clear user data

    String CONTROL_LOCATION_UPDATES Allows enabling/disabling location update notifications from the radio. String DELETE_CACHE_FILES Allows an application to delete cache files.

    String DELETE_PACKAGES Allows an application to delete packages.

    String DEVICE_POWER Allows low-level access to power management

    String DIAGNOSTIC Allows applications to RW to diagnostic resources. String DISABLE_KEYGUARD Allows applications to disable the keyguard

    String DUMP Allows an application to retrieve state dump information from system services.

    String EXPAND_STATUS_BAR Allows an application to expand or collapse the status bar.

    String FACTORY_TEST Run as a manufacturer test application, running as the root user. String FLASHLIGHT Allows access to the flashlight

    String FORCE_BACK Allows an application to force a BACK operation on whatever is the top activity.

    String GET_ACCOUNTS Allows access to the list of accounts in the Accounts Service

    String GET_PACKAGE_SIZE Allows an application to find out the space used by any package.

    String GET_TASKS Allows an application to get information about the currently or recently running tasks.

    String GET_TOP_ACTIVITY_INFO Allows an application to retrieve private information about the current top activity, such

    android Page 9 of 918

  • as any assist context it can provide.

    String GLOBAL_SEARCH This permission can be used on content providers to allow the global search system to access their data.

    String HARDWARE_TEST Allows access to hardware peripherals.

    String INJECT_EVENTS Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window.

    String INSTALL_LOCATION_PROVIDER Allows an application to install a location provider into the Location Manager String INSTALL_PACKAGES Allows an application to install packages.

    String INTERNAL_SYSTEM_WINDOW Allows an application to open windows that are for use by parts of the system user interface. String INTERNET Allows applications to open network sockets.

    String KILL_BACKGROUND_PROCESSES Allows an application to call killBackgroundProcesses(String).

    String LOCATION_HARDWARE Allows an application to use location features in hardware, such as the geofencing api Protected by signature|system protection level

    String MANAGE_ACCOUNTS Allows an application to manage the list of accounts in the AccountManager

    String MANAGE_APP_TOKENS Allows an application to manage (create, destroy, Z-order) application tokens in the window manager.

    String MASTER_CLEAR

    String MODIFY_AUDIO_SETTINGS Allows an application to modify global audio settings

    String MODIFY_PHONE_STATE Allows modification of the telephony state - power on, mmi, etc.

    String MOUNT_FORMAT_FILESYSTEMS Allows formatting file systems for removable storage.

    String MOUNT_UNMOUNT_FILESYSTEMS Allows mounting and unmounting file systems for removable storage.

    String NFC Allows applications to perform I/O operations over NFC

    String PERSISTENT_ACTIVITY

    This constant was deprecated in API level 9. This functionality will be removed in the future; please do not use. Allow an application to make its activities persistent.

    String PROCESS_OUTGOING_CALLS Allows an application to monitor, modify, or abort outgoing calls.

    String READ_CALENDAR Allows an application to read the user's calendar data.

    String READ_CALL_LOG Allows an application to read the user's call log.

    String READ_CONTACTS Allows an application to read the user's contacts data. String READ_EXTERNAL_STORAGE Allows an application to read from external

    android Page 10 of 918

  • storage.

    String READ_FRAME_BUFFER Allows an application to take screen shots and more generally get access to the frame buffer data

    String READ_HISTORY_BOOKMARKS Allows an application to read (but not write) the user's browsing history and bookmarks.

    String READ_INPUT_STATE This constant was deprecated in API level 16. The API that used this permission has been removed.

    String READ_LOGS Allows an application to read the low-level system log files. String READ_PHONE_STATE Allows read only access to phone state.

    String READ_PROFILE Allows an application to read the user's personal profile data. String READ_SMS Allows an application to read SMS messages.

    String READ_SOCIAL_STREAM Allows an application to read from the user's social stream. String READ_SYNC_SETTINGS Allows applications to read the sync settings

    String READ_SYNC_STATS Allows applications to read the sync stats

    String READ_USER_DICTIONARY Allows an application to read the user dictionary. String REBOOT Required to be able to reboot the device.

    String RECEIVE_BOOT_COMPLETED Allows an application to receive the ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting.

    String RECEIVE_MMS Allows an application to monitor incoming MMS messages, to record or perform processing on them.

    String RECEIVE_SMS Allows an application to monitor incoming SMS messages, to record or perform processing on them.

    String RECEIVE_WAP_PUSH Allows an application to monitor incoming WAP push messages. String RECORD_AUDIO Allows an application to record audio

    String REORDER_TASKS Allows an application to change the Z-order of tasks

    String RESTART_PACKAGES This constant was deprecated in API level 8. The restartPackage(String) API is no longer supported.

    String SEND_RESPOND_VIA_MESSAGE Allows an application (Phone) to send a request to other applications to handle the respond-via-message action during incoming calls.

    String SEND_SMS Allows an application to send SMS messages.

    String SET_ACTIVITY_WATCHER Allows an application to watch and control how activities are started globally in the system.

    String SET_ALARM Allows an application to broadcast an Intent to set an alarm for the user.

    String SET_ALWAYS_FINISH Allows an application to control whether android Page 11 of 918

  • activities are immediately finished when put in the background.

    String SET_ANIMATION_SCALE Modify the global animation scaling factor.

    String SET_DEBUG_APP Configure an application for debugging.

    String SET_ORIENTATION Allows low-level access to setting the orientation (actually rotation) of the screen.

    String SET_POINTER_SPEED Allows low-level access to setting the pointer speed.

    String SET_PREFERRED_APPLICATIONS This constant was deprecated in API level 7. No longer useful, see addPackageToPreferred(String) for details.

    String SET_PROCESS_LIMIT Allows an application to set the maximum number of (not needed) application processes that can be running.

    String SET_TIME Allows applications to set the system time

    String SET_TIME_ZONE Allows applications to set the system time zone

    String SET_WALLPAPER Allows applications to set the wallpaper

    String SET_WALLPAPER_HINTS Allows applications to set the wallpaper hints

    String SIGNAL_PERSISTENT_PROCESSES Allow an application to request that a signal be sent to all persistent processes

    String STATUS_BAR Allows an application to open, close, or disable the status bar and its icons.

    String SUBSCRIBED_FEEDS_READ Allows an application to allow access the subscribed feeds ContentProvider. String SUBSCRIBED_FEEDS_WRITE

    String SYSTEM_ALERT_WINDOW Allows an application to open windows using the type TYPE_SYSTEM_ALERT, shown on top of all other applications.

    String UPDATE_DEVICE_STATS Allows an application to update device statistics.

    String USE_CREDENTIALS Allows an application to request authtokens from the AccountManager

    String USE_SIP Allows an application to use SIP service

    String VIBRATE Allows access to the vibrator

    String WAKE_LOCK Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming

    String WRITE_APN_SETTINGS Allows applications to write the apn settings

    String WRITE_CALENDAR Allows an application to write (but not read) the user's calendar data.

    String WRITE_CALL_LOG Allows an application to write (but not read) the user's contacts data.

    String WRITE_CONTACTS Allows an application to write (but not read) the user's contacts data.

    String WRITE_EXTERNAL_STORAGE Allows an application to write to external storage.

    android Page 12 of 918

  • String WRITE_GSERVICES Allows an application to modify the Google service map.

    String WRITE_HISTORY_BOOKMARKS Allows an application to write (but not read) the user's browsing history and bookmarks.

    String WRITE_PROFILE Allows an application to write (but not read) the user's personal profile data.

    String WRITE_SECURE_SETTINGS Allows an application to read or write the secure system settings.

    String WRITE_SETTINGS Allows an application to read or write the system settings. String WRITE_SMS Allows an application to write SMS messages.

    String WRITE_SOCIAL_STREAM Allows an application to write (but not read) the user's social stream data. String WRITE_SYNC_SETTINGS Allows applications to write the sync settings

    String WRITE_USER_DICTIONARY Allows an application to write to the user dictionary.

    Public Constructors

    Manifest.permission()

    Inherited Methods

    From class java.lang.Object

    Object clone() Creates and returns a copy of this Object.

    boolean equals(Object o) Compares this instance with the specified object and indicates if they are equal.

    void finalize() Invoked when the garbage collector has detected that this instance is no longer reachable.

    final Class

    getClass() Returns the unique instance of Class that represents this object's class.

    int hashCode() Returns an integer hash code for this object.

    final notify()

    The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location.

    android Page 13 of 918

  • void Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    final void

    notifyAll() Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    String toString() Returns a string containing a concise, human-readable description of this object.

    final void

    wait() Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

    final void

    wait(long millis, int nanos) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    final void

    wait(long millis) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    Constants

    public static final String ACCESS_CHECKIN_PROPERTIES + 1

    Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded. Constant Value: "android.permission.ACCESS_CHECKIN_PROPERTIES"

    public static final String ACCESS_COARSE_LOCATION + 1

    Allows an app to access approximate location derived from network location sources such as cell towers and Wi-Fi. Constant Value: "android.permission.ACCESS_COARSE_LOCATION"

    public static final String ACCESS_FINE_LOCATION + 1

    Allows an app to access precise location from location sources such as GPS, cell towers, and Wi-Fi. Constant Value: "android.permission.ACCESS_FINE_LOCATION"

    public static final String ACCESS_LOCATION_EXTRA_COMMANDS + 1

    Allows an application to access extra location provider commands Constant Value: "android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"

    public static final String ACCESS_MOCK_LOCATION + 1

    Allows an application to create mock location providers for testing Constant Value: "android.permission.ACCESS_MOCK_LOCATION"

    public static final String ACCESS_NETWORK_STATE + 1

    Allows applications to access information about networks Constant Value: "android.permission.ACCESS_NETWORK_STATE"

    public static final String ACCESS_SURFACE_FLINGER + 1

    android Page 14 of 918

  • Allows an application to use SurfaceFlinger's low level features Constant Value: "android.permission.ACCESS_SURFACE_FLINGER"

    public static final String ACCESS_WIFI_STATE + 1

    Allows applications to access information about Wi-Fi networks Constant Value: "android.permission.ACCESS_WIFI_STATE"

    public static final String ACCOUNT_MANAGER + 5

    Allows applications to call into AccountAuthenticators. Only the system can get this permission. Constant Value: "android.permission.ACCOUNT_MANAGER"

    public static final String ADD_VOICEMAIL + 14

    Allows an application to add voicemails into the system. Constant Value: "com.android.voicemail.permission.ADD_VOICEMAIL"

    public static final String AUTHENTICATE_ACCOUNTS + 5

    Allows an application to act as an AccountAuthenticator for the AccountManager Constant Value: "android.permission.AUTHENTICATE_ACCOUNTS"

    public static final String BATTERY_STATS + 1

    Allows an application to collect battery statistics Constant Value: "android.permission.BATTERY_STATS"

    public static final String BIND_ACCESSIBILITY_SERVICE + 16

    Must be required by an AccessibilityService, to ensure that only the system can bind to it. Constant Value: "android.permission.BIND_ACCESSIBILITY_SERVICE"

    public static final String BIND_APPWIDGET + 3

    Allows an application to tell the AppWidget service which application can access AppWidget's data. The normal user flow is that a user picks an AppWidget to go into a particular host, thereby giving that host application access to the private data from the AppWidget app. An application that has this permission should honor that contract. Very few applications should need to use this permission. Constant Value: "android.permission.BIND_APPWIDGET"

    public static final String BIND_DEVICE_ADMIN + 8

    Must be required by device administration receiver, to ensure that only the system can interact with it. Constant Value: "android.permission.BIND_DEVICE_ADMIN"

    public static final String BIND_INPUT_METHOD + 3

    Must be required by an InputMethodService, to ensure that only the system can bind to it. Constant Value: "android.permission.BIND_INPUT_METHOD"

    public static final String BIND_NOTIFICATION_LISTENER_SERVICE + 18

    Must be required by an NotificationListenerService, to ensure that only the system can bind to it.

    android Page 15 of 918

  • Constant Value: "android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"

    public static final String BIND_REMOTEVIEWS + 11

    Must be required by a RemoteViewsService, to ensure that only the system can bind to it. Constant Value: "android.permission.BIND_REMOTEVIEWS"

    public static final String BIND_TEXT_SERVICE + 14

    Must be required by a TextService (e.g. SpellCheckerService) to ensure that only the system can bind to it. Constant Value: "android.permission.BIND_TEXT_SERVICE"

    public static final String BIND_VPN_SERVICE + 14

    Must be required by an VpnService, to ensure that only the system can bind to it. Constant Value: "android.permission.BIND_VPN_SERVICE"

    public static final String BIND_WALLPAPER + 8

    Must be required by a WallpaperService, to ensure that only the system can bind to it. Constant Value: "android.permission.BIND_WALLPAPER"

    public static final String BLUETOOTH + 1

    Allows applications to connect to paired bluetooth devices Constant Value: "android.permission.BLUETOOTH"

    public static final String BLUETOOTH_ADMIN + 1

    Allows applications to discover and pair bluetooth devices Constant Value: "android.permission.BLUETOOTH_ADMIN"

    public static final String BRICK + 1

    Required to be able to disable the device (very dangerous!). Constant Value: "android.permission.BRICK"

    public static final String BROADCAST_PACKAGE_REMOVED + 1

    Allows an application to broadcast a notification that an application package has been removed. Constant Value: "android.permission.BROADCAST_PACKAGE_REMOVED"

    public static final String BROADCAST_SMS + 2

    Allows an application to broadcast an SMS receipt notification Constant Value: "android.permission.BROADCAST_SMS"

    public static final String BROADCAST_STICKY + 1

    Allows an application to broadcast sticky intents. These are broadcasts whose data is held by the system after being finished, so that clients can quickly retrieve that data without having to wait for the next broadcast. Constant Value: "android.permission.BROADCAST_STICKY"

    public static final String BROADCAST_WAP_PUSH + 2

    android Page 16 of 918

  • Allows an application to broadcast a WAP PUSH receipt notification Constant Value: "android.permission.BROADCAST_WAP_PUSH"

    public static final String CALL_PHONE + 1

    Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call being placed. Constant Value: "android.permission.CALL_PHONE"

    public static final String CALL_PRIVILEGED + 1

    Allows an application to call any phone number, including emergency numbers, without going through the Dialer user interface for the user to confirm the call being placed. Not for use by third party apps. Constant Value: "android.permission.CALL_PRIVILEGED"

    public static final String CAMERA + 1

    Required to be able to access the camera device. This will automatically enforce the manifest element for all camera features. If you do not require all camera features or can properly operate if a camera is not available, then you must modify your manifest as appropriate in order to install on devices that don't support all camera features. Constant Value: "android.permission.CAMERA"

    public static final String CHANGE_COMPONENT_ENABLED_STATE + 1

    Allows an application to change whether an application component (other than its own) is enabled or not. Constant Value: "android.permission.CHANGE_COMPONENT_ENABLED_STATE"

    public static final String CHANGE_CONFIGURATION + 1

    Allows an application to modify the current configuration, such as locale. Constant Value: "android.permission.CHANGE_CONFIGURATION"

    public static final String CHANGE_NETWORK_STATE + 1

    Allows applications to change network connectivity state Constant Value: "android.permission.CHANGE_NETWORK_STATE"

    public static final String CHANGE_WIFI_MULTICAST_STATE + 4

    Allows applications to enter Wi-Fi Multicast mode Constant Value: "android.permission.CHANGE_WIFI_MULTICAST_STATE"

    public static final String CHANGE_WIFI_STATE + 1

    Allows applications to change Wi-Fi connectivity state Constant Value: "android.permission.CHANGE_WIFI_STATE"

    public static final String CLEAR_APP_CACHE + 1

    Allows an application to clear the caches of all installed applications on the device. Constant Value: "android.permission.CLEAR_APP_CACHE"

    public static final String CLEAR_APP_USER_DATA + 1

    android Page 17 of 918

  • Allows an application to clear user data Constant Value: "android.permission.CLEAR_APP_USER_DATA"

    public static final String CONTROL_LOCATION_UPDATES + 1

    Allows enabling/disabling location update notifications from the radio. Not for use by normal applications. Constant Value: "android.permission.CONTROL_LOCATION_UPDATES"

    public static final String DELETE_CACHE_FILES + 1

    Allows an application to delete cache files. Constant Value: "android.permission.DELETE_CACHE_FILES"

    public static final String DELETE_PACKAGES + 1

    Allows an application to delete packages. Constant Value: "android.permission.DELETE_PACKAGES"

    public static final String DEVICE_POWER + 1

    Allows low-level access to power management Constant Value: "android.permission.DEVICE_POWER"

    public static final String DIAGNOSTIC + 1

    Allows applications to RW to diagnostic resources. Constant Value: "android.permission.DIAGNOSTIC"

    public static final String DISABLE_KEYGUARD + 1

    Allows applications to disable the keyguard Constant Value: "android.permission.DISABLE_KEYGUARD"

    public static final String DUMP + 1

    Allows an application to retrieve state dump information from system services. Constant Value: "android.permission.DUMP"

    public static final String EXPAND_STATUS_BAR + 1

    Allows an application to expand or collapse the status bar. Constant Value: "android.permission.EXPAND_STATUS_BAR"

    public static final String FACTORY_TEST + 1

    Run as a manufacturer test application, running as the root user. Only available when the device is running in manufacturer test mode. Constant Value: "android.permission.FACTORY_TEST"

    public static final String FLASHLIGHT + 1

    Allows access to the flashlight Constant Value: "android.permission.FLASHLIGHT"

    android Page 18 of 918

  • public static final String FORCE_BACK + 1

    Allows an application to force a BACK operation on whatever is the top activity. Constant Value: "android.permission.FORCE_BACK"

    public static final String GET_ACCOUNTS + 1

    Allows access to the list of accounts in the Accounts Service Constant Value: "android.permission.GET_ACCOUNTS"

    public static final String GET_PACKAGE_SIZE + 1

    Allows an application to find out the space used by any package. Constant Value: "android.permission.GET_PACKAGE_SIZE"

    public static final String GET_TASKS + 1

    Allows an application to get information about the currently or recently running tasks. Constant Value: "android.permission.GET_TASKS"

    public static final String GET_TOP_ACTIVITY_INFO + 18

    Allows an application to retrieve private information about the current top activity, such as any assist context it can provide. Constant Value: "android.permission.GET_TOP_ACTIVITY_INFO"

    public static final String GLOBAL_SEARCH + 4

    This permission can be used on content providers to allow the global search system to access their data. Typically it used when the provider has some permissions protecting it (which global search would not be expected to hold), and added as a read-only permission to the path in the provider where global search queries are performed. This permission can not be held by regular applications; it is used by applications to protect themselves from everyone else besides global search. Constant Value: "android.permission.GLOBAL_SEARCH"

    public static final String HARDWARE_TEST + 1

    Allows access to hardware peripherals. Intended only for hardware testing Constant Value: "android.permission.HARDWARE_TEST"

    public static final String INJECT_EVENTS + 1

    Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window. Without this permission, you can only deliver events to windows in your own process. Very few applications should need to use this permission. Constant Value: "android.permission.INJECT_EVENTS"

    public static final String INSTALL_LOCATION_PROVIDER + 4

    Allows an application to install a location provider into the Location Manager Constant Value: "android.permission.INSTALL_LOCATION_PROVIDER"

    public static final String INSTALL_PACKAGES + 1

    Allows an application to install packages.

    android Page 19 of 918

  • Constant Value: "android.permission.INSTALL_PACKAGES"

    public static final String INTERNAL_SYSTEM_WINDOW + 1

    Allows an application to open windows that are for use by parts of the system user interface. Not for use by third party apps. Constant Value: "android.permission.INTERNAL_SYSTEM_WINDOW"

    public static final String INTERNET + 1

    Allows applications to open network sockets. Constant Value: "android.permission.INTERNET"

    public static final String KILL_BACKGROUND_PROCESSES + 8

    Allows an application to call killBackgroundProcesses(String). Constant Value: "android.permission.KILL_BACKGROUND_PROCESSES"

    public static final String LOCATION_HARDWARE + 18

    Allows an application to use location features in hardware, such as the geofencing api Protected by signature|system protection level Constant Value: "android.permission.LOCATION_HARDWARE"

    public static final String MANAGE_ACCOUNTS + 5

    Allows an application to manage the list of accounts in the AccountManager Constant Value: "android.permission.MANAGE_ACCOUNTS"

    public static final String MANAGE_APP_TOKENS + 1

    Allows an application to manage (create, destroy, Z-order) application tokens in the window manager. This is only for use by the system. Constant Value: "android.permission.MANAGE_APP_TOKENS"

    public static final String MASTER_CLEAR + 1

    Constant Value: "android.permission.MASTER_CLEAR"

    public static final String MODIFY_AUDIO_SETTINGS + 1

    Allows an application to modify global audio settings Constant Value: "android.permission.MODIFY_AUDIO_SETTINGS"

    public static final String MODIFY_PHONE_STATE + 1

    Allows modification of the telephony state - power on, mmi, etc. Does not include placing calls. Constant Value: "android.permission.MODIFY_PHONE_STATE"

    public static final String MOUNT_FORMAT_FILESYSTEMS + 3

    Allows formatting file systems for removable storage. Constant Value: "android.permission.MOUNT_FORMAT_FILESYSTEMS"

    public static final String MOUNT_UNMOUNT_FILESYSTEMS + 1 android Page 20 of 918

  • Allows mounting and unmounting file systems for removable storage. Constant Value: "android.permission.MOUNT_UNMOUNT_FILESYSTEMS"

    public static final String NFC + 9

    Allows applications to perform I/O operations over NFC Constant Value: "android.permission.NFC"

    public static final String PERSISTENT_ACTIVITY + 1

    This constant was deprecated in API level 9. This functionality will be removed in the future; please do not use. Allow an application to make its activities persistent. Constant Value: "android.permission.PERSISTENT_ACTIVITY"

    public static final String PROCESS_OUTGOING_CALLS + 1

    Allows an application to monitor, modify, or abort outgoing calls. Constant Value: "android.permission.PROCESS_OUTGOING_CALLS"

    public static final String READ_CALENDAR + 1

    Allows an application to read the user's calendar data. Constant Value: "android.permission.READ_CALENDAR"

    public static final String READ_CALL_LOG + 16

    Allows an application to read the user's call log. Note: If your app uses the READ_CONTACTS permission and both your minSdkVersion and targetSdkVersion values are set to 15 or lower, the system implicitly grants your app this permission. If you don't need this permission, be sure your targetSdkVersion is 16 or higher. Constant Value: "android.permission.READ_CALL_LOG"

    public static final String READ_CONTACTS + 1

    Allows an application to read the user's contacts data. Constant Value: "android.permission.READ_CONTACTS"

    public static final String READ_EXTERNAL_STORAGE + 16

    Allows an application to read from external storage. Any app that declares the WRITE_EXTERNAL_STORAGE permission is implicitly granted this permission. Currently, this permission is not enforced and all apps still have access to read from external storage without this permission. That will change in a future release and apps will require this permission to read from external storage. So if your app reads from the external storage, you should add this permission to your app now to ensure that it continues to work on future versions of Android. You can test your app with the permission enforced by either running your app on the Android Emulator when running Android 4.1 or higher, or enabling Protect USB storage under Developer options in the Settings app on a device running Android 4.1 or higher. Note: If both your minSdkVersion and targetSdkVersion values are set to 3 or lower, the system implicitly grants your app this permission. If you don't need this permission, be sure your targetSdkVersion is 4 or higher. Constant Value: "android.permission.READ_EXTERNAL_STORAGE"

    android Page 21 of 918

  • public static final String READ_FRAME_BUFFER + 1

    Allows an application to take screen shots and more generally get access to the frame buffer data Constant Value: "android.permission.READ_FRAME_BUFFER"

    public static final String READ_HISTORY_BOOKMARKS + 4

    Allows an application to read (but not write) the user's browsing history and bookmarks. Constant Value: "com.android.browser.permission.READ_HISTORY_BOOKMARKS"

    public static final String READ_INPUT_STATE + 1

    This constant was deprecated in API level 16. The API that used this permission has been removed. Allows an application to retrieve the current state of keys and switches. This is only for use by the system. Constant Value: "android.permission.READ_INPUT_STATE"

    public static final String READ_LOGS + 1

    Allows an application to read the low-level system log files. Log entries can contain the user's private information, which is why this permission is not available to normal apps. Constant Value: "android.permission.READ_LOGS"

    public static final String READ_PHONE_STATE + 1

    Allows read only access to phone state. Note: If both your minSdkVersion and targetSdkVersion values are set to 3 or lower, the system implicitly grants your app this permission. If you don't need this permission, be sure your targetSdkVersion is 4 or higher. Constant Value: "android.permission.READ_PHONE_STATE"

    public static final String READ_PROFILE + 14

    Allows an application to read the user's personal profile data. Constant Value: "android.permission.READ_PROFILE"

    public static final String READ_SMS + 1

    Allows an application to read SMS messages. Constant Value: "android.permission.READ_SMS"

    public static final String READ_SOCIAL_STREAM + 15

    Allows an application to read from the user's social stream. Constant Value: "android.permission.READ_SOCIAL_STREAM"

    public static final String READ_SYNC_SETTINGS + 1

    Allows applications to read the sync settings Constant Value: "android.permission.READ_SYNC_SETTINGS"

    public static final String READ_SYNC_STATS + 1

    Allows applications to read the sync stats

    android Page 22 of 918

  • Constant Value: "android.permission.READ_SYNC_STATS"

    public static final String READ_USER_DICTIONARY + 16

    Allows an application to read the user dictionary. This should really only be required by an IME, or a dictionary editor like the Settings app. Constant Value: "android.permission.READ_USER_DICTIONARY"

    public static final String REBOOT + 1

    Required to be able to reboot the device. Constant Value: "android.permission.REBOOT"

    public static final String RECEIVE_BOOT_COMPLETED + 1

    Allows an application to receive the ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting. If you don't request this permission, you will not receive the broadcast at that time. Though holding this permission does not have any security implications, it can have a negative impact on the user experience by increasing the amount of time it takes the system to start and allowing applications to have themselves running without the user being aware of them. As such, you must explicitly declare your use of this facility to make that visible to the user. Constant Value: "android.permission.RECEIVE_BOOT_COMPLETED"

    public static final String RECEIVE_MMS + 1

    Allows an application to monitor incoming MMS messages, to record or perform processing on them. Constant Value: "android.permission.RECEIVE_MMS"

    public static final String RECEIVE_SMS + 1

    Allows an application to monitor incoming SMS messages, to record or perform processing on them. Constant Value: "android.permission.RECEIVE_SMS"

    public static final String RECEIVE_WAP_PUSH + 1

    Allows an application to monitor incoming WAP push messages. Constant Value: "android.permission.RECEIVE_WAP_PUSH"

    public static final String RECORD_AUDIO + 1

    Allows an application to record audio Constant Value: "android.permission.RECORD_AUDIO"

    public static final String REORDER_TASKS + 1

    Allows an application to change the Z-order of tasks Constant Value: "android.permission.REORDER_TASKS"

    public static final String RESTART_PACKAGES + 1

    This constant was deprecated in API level 8. The restartPackage(String) API is no longer supported. Constant Value: "android.permission.RESTART_PACKAGES"

    public static final String SEND_RESPOND_VIA_MESSAGE + 18

    android Page 23 of 918

  • Allows an application (Phone) to send a request to other applications to handle the respond-via-message action during incoming calls. Constant Value: "android.permission.SEND_RESPOND_VIA_MESSAGE"

    public static final String SEND_SMS + 1

    Allows an application to send SMS messages. Constant Value: "android.permission.SEND_SMS"

    public static final String SET_ACTIVITY_WATCHER + 1

    Allows an application to watch and control how activities are started globally in the system. Only for is in debugging (usually the monkey command). Constant Value: "android.permission.SET_ACTIVITY_WATCHER"

    public static final String SET_ALARM + 9

    Allows an application to broadcast an Intent to set an alarm for the user. Constant Value: "com.android.alarm.permission.SET_ALARM"

    public static final String SET_ALWAYS_FINISH + 1

    Allows an application to control whether activities are immediately finished when put in the background. Constant Value: "android.permission.SET_ALWAYS_FINISH"

    public static final String SET_ANIMATION_SCALE + 1

    Modify the global animation scaling factor. Constant Value: "android.permission.SET_ANIMATION_SCALE"

    public static final String SET_DEBUG_APP + 1

    Configure an application for debugging. Constant Value: "android.permission.SET_DEBUG_APP"

    public static final String SET_ORIENTATION + 1

    Allows low-level access to setting the orientation (actually rotation) of the screen. Not for use by normal applications. Constant Value: "android.permission.SET_ORIENTATION"

    public static final String SET_POINTER_SPEED + 13

    Allows low-level access to setting the pointer speed. Not for use by normal applications. Constant Value: "android.permission.SET_POINTER_SPEED"

    public static final String SET_PREFERRED_APPLICATIONS + 1

    This constant was deprecated in API level 7. No longer useful, see addPackageToPreferred(String) for details. Constant Value: "android.permission.SET_PREFERRED_APPLICATIONS"

    public static final String SET_PROCESS_LIMIT + 1

    Allows an application to set the maximum number of (not needed) application processes that can be running. android Page 24 of 918

  • Constant Value: "android.permission.SET_PROCESS_LIMIT"

    public static final String SET_TIME + 8

    Allows applications to set the system time Constant Value: "android.permission.SET_TIME"

    public static final String SET_TIME_ZONE + 1

    Allows applications to set the system time zone Constant Value: "android.permission.SET_TIME_ZONE"

    public static final String SET_WALLPAPER + 1

    Allows applications to set the wallpaper Constant Value: "android.permission.SET_WALLPAPER"

    public static final String SET_WALLPAPER_HINTS + 1

    Allows applications to set the wallpaper hints Constant Value: "android.permission.SET_WALLPAPER_HINTS"

    public static final String SIGNAL_PERSISTENT_PROCESSES + 1

    Allow an application to request that a signal be sent to all persistent processes Constant Value: "android.permission.SIGNAL_PERSISTENT_PROCESSES"

    public static final String STATUS_BAR + 1

    Allows an application to open, close, or disable the status bar and its icons. Constant Value: "android.permission.STATUS_BAR"

    public static final String SUBSCRIBED_FEEDS_READ + 1

    Allows an application to allow access the subscribed feeds ContentProvider. Constant Value: "android.permission.SUBSCRIBED_FEEDS_READ"

    public static final String SUBSCRIBED_FEEDS_WRITE + 1

    Constant Value: "android.permission.SUBSCRIBED_FEEDS_WRITE"

    public static final String SYSTEM_ALERT_WINDOW + 1

    Allows an application to open windows using the type TYPE_SYSTEM_ALERT, shown on top of all other applications. Very few applications should use this permission; these windows are intended for system-level interaction with the user. Constant Value: "android.permission.SYSTEM_ALERT_WINDOW"

    public static final String UPDATE_DEVICE_STATS + 3

    Allows an application to update device statistics. Not for use by third party apps. Constant Value: "android.permission.UPDATE_DEVICE_STATS"

    public static final String USE_CREDENTIALS + 5

    android Page 25 of 918

  • Allows an application to request authtokens from the AccountManager Constant Value: "android.permission.USE_CREDENTIALS"

    public static final String USE_SIP + 9

    Allows an application to use SIP service Constant Value: "android.permission.USE_SIP"

    public static final String VIBRATE + 1

    Allows access to the vibrator Constant Value: "android.permission.VIBRATE"

    public static final String WAKE_LOCK + 1

    Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming Constant Value: "android.permission.WAKE_LOCK"

    public static final String WRITE_APN_SETTINGS + 1

    Allows applications to write the apn settings Constant Value: "android.permission.WRITE_APN_SETTINGS"

    public static final String WRITE_CALENDAR + 1

    Allows an application to write (but not read) the user's calendar data. Constant Value: "android.permission.WRITE_CALENDAR"

    public static final String WRITE_CALL_LOG + 16

    Allows an application to write (but not read) the user's contacts data. Note: If your app uses the WRITE_CONTACTS permission and both your minSdkVersion and targetSdkVersion values are set to 15 or lower, the system implicitly grants your app this permission. If you don't need this permission, be sure your targetSdkVersion is 16 or higher. Constant Value: "android.permission.WRITE_CALL_LOG"

    public static final String WRITE_CONTACTS + 1

    Allows an application to write (but not read) the user's contacts data. Constant Value: "android.permission.WRITE_CONTACTS"

    public static final String WRITE_EXTERNAL_STORAGE + 4

    Allows an application to write to external storage. Note: If both your minSdkVersion and targetSdkVersion values are set to 3 or lower, the system implicitly grants your app this permission. If you don't need this permission, be sure your targetSdkVersion is 4 or higher. Constant Value: "android.permission.WRITE_EXTERNAL_STORAGE"

    public static final String WRITE_GSERVICES + 1

    Allows an application to modify the Google service map. Constant Value: "android.permission.WRITE_GSERVICES"

    android Page 26 of 918

  • public static final String WRITE_HISTORY_BOOKMARKS + 4

    Allows an application to write (but not read) the user's browsing history and bookmarks. Constant Value: "com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"

    public static final String WRITE_PROFILE + 14

    Allows an application to write (but not read) the user's personal profile data. Constant Value: "android.permission.WRITE_PROFILE"

    public static final String WRITE_SECURE_SETTINGS + 3

    Allows an application to read or write the secure system settings. Constant Value: "android.permission.WRITE_SECURE_SETTINGS"

    public static final String WRITE_SETTINGS + 1

    Allows an application to read or write the system settings. Constant Value: "android.permission.WRITE_SETTINGS"

    public static final String WRITE_SMS + 1

    Allows an application to write SMS messages. Constant Value: "android.permission.WRITE_SMS"

    public static final String WRITE_SOCIAL_STREAM + 15

    Allows an application to write (but not read) the user's social stream data. Constant Value: "android.permission.WRITE_SOCIAL_STREAM"

    public static final String WRITE_SYNC_SETTINGS + 1

    Allows applications to write the sync settings Constant Value: "android.permission.WRITE_SYNC_SETTINGS"

    public static final String WRITE_USER_DICTIONARY + 16

    Allows an application to write to the user dictionary. Constant Value: "android.permission.WRITE_USER_DICTIONARY"

    Public Constructors

    public Manifest.permission () + 1

    public static final class

    Manifest.permission_group extends Object

    java.lang.Object

    android.Manifest.permission_group

    android Page 27 of 918

  • Summary

    Constants

    String ACCESSIBILITY_FEATURES Used for permissions that allow requesting certain accessibility features.

    String ACCOUNTS Permissions for direct access to the accounts managed by the Account Manager.

    String AFFECTS_BATTERY Used for permissions that provide direct access to the hardware on the device that has an effect on battery life.

    String APP_INFO Group of permissions that are related to the other applications installed on the system.

    String AUDIO_SETTINGS Used for permissions that provide direct access to speaker settings the device.

    String BLUETOOTH_NETWORK Used for permissions that provide access to other devices through Bluetooth.

    String BOOKMARKS Used for permissions that provide access to the user bookmarks and browser history.

    String CALENDAR Used for permissions that provide access to the device calendar to create / view events.

    String CAMERA Used for permissions that are associated with accessing camera or capturing images/video from the device.

    String COST_MONEY Used for permissions that can be used to make the user spend money without their direct involvement. String DEVELOPMENT_TOOLS Group of permissions that are related to development features.

    String DEVICE_ALARMS Used for permissions that provide access to the user voicemail box.

    String DISPLAY Group of permissions that allow manipulation of how another application displays UI to the user.

    String HARDWARE_CONTROLS Used for permissions that provide direct access to the hardware on the device.

    String LOCATION Used for permissions that allow access to the user's current location.

    String MESSAGES Used for permissions that allow an application to send messages on behalf of the user or intercept messages being received by the user.

    String MICROPHONE Used for permissions that are associated with accessing microphone audio from the device.

    String NETWORK Used for permissions that provide access to networking services.

    String PERSONAL_INFO Used for permissions that provide access to information about the device user such as profile information.

    String PHONE_CALLS Used for permissions that are associated with accessing and modifyign telephony state: placing calls, intercepting outgoing calls, reading and modifying the phone state.

    String SCREENLOCK Group of permissions that are related to the screenlock.

    String SOCIAL_INFO Used for permissions that provide access to the user's social connections, such as contacts, call logs, social stream, etc. String STATUS_BAR Used for permissions that change the status bar

    android Page 28 of 918

  • String STORAGE Group of permissions that are related to SD card access.

    String SYNC_SETTINGS Used for permissions that access the sync settings or sync related information.

    String SYSTEM_CLOCK Group of permissions that are related to system clock.

    String SYSTEM_TOOLS Group of permissions that are related to system APIs.

    String USER_DICTIONARY Used for permissions that provide access to the user calendar to create / view events.

    String VOICEMAIL Used for permissions that provide access to the user voicemail box.

    String WALLPAPER Group of permissions that allow manipulation of how another application displays UI to the user.

    String WRITE_USER_DICTIONARY Used for permissions that provide access to the user calendar to create / view events.

    Public Constructors

    Manifest.permission_group()

    Inherited Methods

    From class java.lang.Object

    Object clone() Creates and returns a copy of this Object.

    boolean equals(Object o) Compares this instance with the specified object and indicates if they are equal.

    void finalize() Invoked when the garbage collector has detected that this instance is no longer reachable.

    final Class

    getClass() Returns the unique instance of Class that represents this object's class.

    int hashCode() Returns an integer hash code for this object.

    final void

    notify() Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    final notifyAll()

    The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location.

    android Page 29 of 918

  • void Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    String toString() Returns a string containing a concise, human-readable description of this object.

    final void

    wait() Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

    final void

    wait(long millis, int nanos) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    final void

    wait(long millis) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    Constants

    public static final String ACCESSIBILITY_FEATURES + 18

    Used for permissions that allow requesting certain accessibility features. Constant Value: "android.permission-group.ACCESSIBILITY_FEATURES"

    public static final String ACCOUNTS + 1

    Permissions for direct access to the accounts managed by the Account Manager. Constant Value: "android.permission-group.ACCOUNTS"

    public static final String AFFECTS_BATTERY + 17

    Used for permissions that provide direct access to the hardware on the device that has an effect on battery life. This includes vibrator, flashlight, etc. Constant Value: "android.permission-group.AFFECTS_BATTERY"

    public static final String APP_INFO + 17

    Group of permissions that are related to the other applications installed on the system. Examples include such as listing running apps, or killing background processes. Constant Value: "android.permission-group.APP_INFO"

    public static final String AUDIO_SETTINGS + 17

    Used for permissions that provide direct access to speaker settings the device. Constant Value: "android.permission-group.AUDIO_SETTINGS"

    public static final String BLUETOOTH_NETWORK + 17

    Used for permissions that provide access to other devices through Bluetooth. Constant Value: "android.permission-group.BLUETOOTH_NETWORK"

    public static final String BOOKMARKS + 17

    Used for permissions that provide access to the user bookmarks and browser history. Constant Value: "android.permission-group.BOOKMARKS" android Page 30 of 918

  • public static final String CALENDAR + 17

    Used for permissions that provide access to the device calendar to create / view events. Constant Value: "android.permission-group.CALENDAR"

    public static final String CAMERA + 17

    Used for permissions that are associated with accessing camera or capturing images/video from the device. Constant Value: "android.permission-group.CAMERA"

    public static final String COST_MONEY + 1

    Used for permissions that can be used to make the user spend money without their direct involvement. Constant Value: "android.permission-group.COST_MONEY"

    public static final String DEVELOPMENT_TOOLS + 1

    Group of permissions that are related to development features. These are not permissions that should appear in normal applications; they protect APIs that are intended only to be used for development purposes. Constant Value: "android.permission-group.DEVELOPMENT_TOOLS"

    public static final String DEVICE_ALARMS + 17

    Used for permissions that provide access to the user voicemail box. Constant Value: "android.permission-group.DEVICE_ALARMS"

    public static final String DISPLAY + 17

    Group of permissions that allow manipulation of how another application displays UI to the user. Constant Value: "android.permission-group.DISPLAY"

    public static final String HARDWARE_CONTROLS + 1

    Used for permissions that provide direct access to the hardware on the device. This includes audio, the camera, vibrator, etc. Constant Value: "android.permission-group.HARDWARE_CONTROLS"

    public static final String LOCATION + 1

    Used for permissions that allow access to the user's current location. Constant Value: "android.permission-group.LOCATION"

    public static final String MESSAGES + 1

    Used for permissions that allow an application to send messages on behalf of the user or intercept messages being received by the user. This is primarily intended for SMS/MMS messaging, such as receiving or reading an MMS. Constant Value: "android.permission-group.MESSAGES"

    public static final String MICROPHONE + 17

    Used for permissions that are associated with accessing microphone audio from the device. Note that phone calls also capture audio but are in a separate (more visible) permission group. Constant Value: "android.permission-group.MICROPHONE"

    android Page 31 of 918

  • public static final String NETWORK + 1

    Used for permissions that provide access to networking services. The main permission here is internet access, but this is also an appropriate group for accessing or modifying any network configuration or other related network operations. Constant Value: "android.permission-group.NETWORK"

    public static final String PERSONAL_INFO + 1

    Used for permissions that provide access to information about the device user such as profile information. This includes both reading and writing of this data (which should generally be expressed as two distinct permissions). Constant Value: "android.permission-group.PERSONAL_INFO"

    public static final String PHONE_CALLS + 1

    Used for permissions that are associated with accessing and modifyign telephony state: placing calls, intercepting outgoing calls, reading and modifying the phone state. Constant Value: "android.permission-group.PHONE_CALLS"

    public static final String SCREENLOCK + 17

    Group of permissions that are related to the screenlock. Constant Value: "android.permission-group.SCREENLOCK"

    public static final String SOCIAL_INFO + 17

    Used for permissions that provide access to the user's social connections, such as contacts, call logs, social stream, etc. This includes both reading and writing of this data (which should generally be expressed as two distinct permissions). Constant Value: "android.permission-group.SOCIAL_INFO"

    public static final String STATUS_BAR + 17

    Used for permissions that change the status bar Constant Value: "android.permission-group.STATUS_BAR"

    public static final String STORAGE + 4

    Group of permissions that are related to SD card access. Constant Value: "android.permission-group.STORAGE"

    public static final String SYNC_SETTINGS + 17

    Used for permissions that access the sync settings or sync related information. Constant Value: "android.permission-group.SYNC_SETTINGS"

    public static final String SYSTEM_CLOCK + 17

    Group of permissions that are related to system clock. Constant Value: "android.permission-group.SYSTEM_CLOCK"

    public static final String SYSTEM_TOOLS + 1

    Group of permissions that are related to system APIs. Many of these are not permissions the user will be expected to understand, and such permissions should generally be marked as "normal" protection level so they

    android Page 32 of 918

  • don't get displayed. This can also, however, be used for miscellaneous features that provide access to the operating system, such as writing the global system settings. Constant Value: "android.permission-group.SYSTEM_TOOLS"

    public static final String USER_DICTIONARY + 17

    Used for permissions that provide access to the user calendar to create / view events. Constant Value: "android.permission-group.USER_DICTIONARY"

    public static final String VOICEMAIL + 17

    Used for permissions that provide access to the user voicemail box. Constant Value: "android.permission-group.VOICEMAIL"

    public static final String WALLPAPER + 17

    Group of permissions that allow manipulation of how another application displays UI to the user. Constant Value: "android.permission-group.WALLPAPER"

    public static final String WRITE_USER_DICTIONARY + 17

    Used for permissions that provide access to the user calendar to create / view events. Constant Value: "android.permission-group.WRITE_USER_DICTIONARY"

    Public Constructors

    public Manifest.permission_group () + 1

    public final class

    R extends Object

    java.lang.Object

    android.R

    Summary

    Nested Classes

    class R.anim

    class R.animator

    class R.array

    class R.attr

    class R.bool

    class R.color

    class R.dimen

    class R.drawable

    class R.fraction

    android Page 33 of 918

  • class R.id

    class R.integer

    class R.interpolator

    class R.layout

    class R.menu

    class R.mipmap

    class R.plurals

    class R.raw

    class R.string

    class R.style

    class R.styleable

    class R.xml

    Public Constructors

    R()

    Inherited Methods

    From class java.lang.Object

    Object clone() Creates and returns a copy of this Object.

    boolean equals(Object o) Compares this instance with the specified object and indicates if they are equal.

    void finalize() Invoked when the garbage collector has detected that this instance is no longer reachable.

    final Class

    getClass() Returns the unique instance of Class that represents this object's class.

    int hashCode() Returns an integer hash code for this object.

    final void

    notify() Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location.

    android Page 34 of 918

  • final void

    notifyAll() Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    String toString() Returns a string containing a concise, human-readable description of this object.

    final void

    wait() Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

    final void

    wait(long millis, int nanos) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    final void

    wait(long millis) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    Public Constructors

    public R () + 1

    public static final class

    R.anim extends Object

    java.lang.Object

    android.R.anim

    Summary

    Constants

    int accelerate_decelerate_interpolator

    int accelerate_interpolator Acceleration curve matching Flash's quadratic ease out function.

    int anticipate_interpolator

    int anticipate_overshoot_interpolator

    int bounce_interpolator

    int cycle_interpolator

    int decelerate_interpolator Acceleration curve matching Flash's quadratic ease in function.

    int fade_in

    int fade_out

    int linear_interpolator

    int overshoot_interpolator

    int slide_in_left

    int slide_out_right

    android Page 35 of 918

  • Public Constructors

    R.anim()

    Inherited Methods

    From class java.lang.Object

    Object clone() Creates and returns a copy of this Object.

    boolean equals(Object o) Compares this instance with the specified object and indicates if they are equal.

    void finalize() Invoked when the garbage collector has detected that this instance is no longer reachable.

    final Class

    getClass() Returns the unique instance of Class that represents this object's class.

    int hashCode() Returns an integer hash code for this object.

    final void

    notify() Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    final void

    notifyAll() Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    String toString() Returns a string containing a concise, human-readable description of this object.

    final void

    wait() Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

    final void

    wait(long millis, int nanos) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    final void

    wait(long millis) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location.

    android Page 36 of 918

  • Constants

    public static final int accelerate_decelerate_interpolator + 1

    Constant Value: 17432580 (0x010a0004)

    public static final int accelerate_interpolator + 1

    Acceleration curve matching Flash's quadratic ease out function. Constant Value: 17432581 (0x010a0005)

    public static final int anticipate_interpolator + 4

    Constant Value: 17432583 (0x010a0007)

    public static final int anticipate_overshoot_interpolator + 4

    Constant Value: 17432585 (0x010a0009)

    public static final int bounce_interpolator + 4

    Constant Value: 17432586 (0x010a000a)

    public static final int cycle_interpolator + 8

    Constant Value: 17432588 (0x010a000c)

    public static final int decelerate_interpolator + 1

    Acceleration curve matching Flash's quadratic ease in function. Constant Value: 17432582 (0x010a0006)

    public static final int fade_in + 1

    Constant Value: 17432576 (0x010a0000)

    public static final int fade_out + 1

    Constant Value: 17432577 (0x010a0001)

    public static final int linear_interpolator + 4

    Constant Value: 17432587 (0x010a000b)

    public static final int overshoot_interpolator + 4

    Constant Value: 17432584 (0x010a0008)

    public static final int slide_in_left + 1

    Constant Value: 17432578 (0x010a0002)

    public static final int slide_out_right + 1

    Constant Value: 17432579 (0x010a0003)

    android Page 37 of 918

  • Public Constructors

    public R.anim () + 1

    public static final class

    R.animator extends Object

    java.lang.Object

    android.R.animator

    Summary

    Constants

    int fade_in A simple fade-in animation.

    int fade_out A simple fade-out animation.

    Public Constructors

    R.animator()

    Inherited Methods

    From class java.lang.Object

    Object clone() Creates and returns a copy of this Object.

    boolean equals(Object o) Compares this instance with the specified object and indicates if they are equal.

    void finalize() Invoked when the garbage collector has detected that this instance is no longer reachable.

    final Class

    getClass() Returns the unique instance of Class that represents this object's class.

    int hashCode()

    The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location.

    android Page 38 of 918

  • Returns an integer hash code for this object.

    final void

    notify() Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    final void

    notifyAll() Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    String toString() Returns a string containing a concise, human-readable description of this object.

    final void

    wait() Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

    final void

    wait(long millis, int nanos) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    final void

    wait(long millis) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    Constants

    public static final int fade_in + 11

    A simple fade-in animation. Constant Value: 17498112 (0x010b0000)

    public static final int fade_out + 11

    A simple fade-out animation. Constant Value: 17498113 (0x010b0001)

    Public Constructors

    public R.animator () + 11

    public static final class

    R.array extends Object

    java.lang.Object

    android.R.array

    Summary

    Constants

    int emailAddressTypes Email address types from android.provider.Contacts.

    android Page 39 of 918

  • int imProtocols Instant Message protocols/providers from android.provider.Contacts

    int organizationTypes Organization types from android.provider.Contacts.

    int phoneTypes Phone number types from android.provider.Contacts.

    int postalAddressTypes Postal address types from android.provider.Contacts.

    Public Constructors

    R.array()

    Inherited Methods

    From class java.lang.Object

    Object clone() Creates and returns a copy of this Object.

    boolean equals(Object o) Compares this instance with the specified object and indicates if they are equal.

    void finalize() Invoked when the garbage collector has detected that this instance is no longer reachable.

    final Class

    getClass() Returns the unique instance of Class that represents this object's class.

    int hashCode() Returns an integer hash code for this object.

    final void

    notify() Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    final void

    notifyAll() Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

    String toString() Returns a string containing a concise, human-readable description of this object.

    final void

    wait() Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

    final wait(long millis, int nanos)

    The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location.

    android Page 40 of 918

  • void Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    final void

    wait(long millis) Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

    Constants

    public static final int emailAddressTypes + 1

    Email address types from android.provider.Contacts. This could be used when adding a new e-mail address for a contact, for example. Constant Value: 17235968 (0x01070000)

    public static final int imProtocols + 1

    Instant Message protocols/providers from android.provider.Contacts Constant Value: 17235969 (0x01070001)

    public static final int organizationTypes + 1

    Organization types from android.provider.Contacts. This could be used when adding a new organization for a contact, for example. Constant Value: 17235970 (0x01070002)

    public static final int phoneTypes + 1

    Phone number types from android.provider.Contacts. This could be used when adding a new phone number for a contact, for example. Constant Value: 17235971 (0x01070003)

    public static final int postalAddressTypes + 1

    Postal address types from android.provider.Contacts. This could be used when adding a new address for a contact, for example. Constant Value: 17235972 (0x01070004)

    Public Constructors

    public R.array () + 1

    public static final class

    R.attr extends Object

    java.lang.Object

    android.R.attr

    Summary

    android Page 41 of 918

  • Constants

    int absListViewStyle Default AbsListView style.

    int accessibilityEventTypes The event types this serivce would like to receive as specified in AccessibilityEvent.

    int accessibilityFeedbackType The feedback types this serivce provides as specified in AccessibilityServiceInfo.

    int accessibilityFlags Additional flags as specified in AccessibilityServiceInfo.

    int accountPreferences A preferences.xml file for authenticator-specific settings.

    int accountType The account type this authenticator handles.

    int action The action name to assign to the Intent, as per Intent.setAction().

    int actionBarDivider Custom divider drawable to use for elements in the action bar.

    int actionBarItemBackground Custom item state list drawable background for action bar items.

    int actionBarSize Size of the Action Bar, including the contextual bar used to present Action Modes.

    int actionBarSplitStyle Reference to a style for the split Action Bar.

    int actionBarStyle

    Reference to a style for the Action Bar 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 actionBarTabBarStyle

    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 actionBarTabStyle

    Default style for tabs within an action bar 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 actionBarTabTextStyle

    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 actionBarWidgetTheme Reference to a theme that should be used to inflate widgets and layouts destined for the action bar.

    int actionButtonStyle Default action button style.

    int actionDropDownStyle Default ActionBar dropdown style.

    int actionLayout An optional layout to be used as an action view.

    int actionMenuTextAppearance TextAppearance style that will be applied to text that appears within action menu items. int actionMenuTextColor Color for text that appears within action menu items.

    int actionModeBackground Background drawable to use for action mode UI

    Must be a reference to another resource, in the form android Page 42 of 918

  • "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

    int actionModeCloseButtonStyle

    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 actionModeCloseDrawable

    Drawable to use for the close action mode button 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 actionModeCopyDrawable

    Drawable to use for the Copy action button in Contextual Action Bar 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 actionModeCutDrawable

    Drawable to use for the Cut action button in Contextual Action Bar 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 actionModePasteDrawable

    Drawable to use for the Paste action button in Contextual Action Bar 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 actionModeSelectAllDrawable

    Drawable to use for the Select all action button in Contextual Action Bar 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 actionModeSplitBackground

    Background drawable to use for action mode UI in the lower split bar 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 actionModeStyle

    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 actionOverflowButtonStyle

    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 actionProviderClass The name of an optional ActionProvider class to instantiate an action view and perform operations

    android Page 43 of 918

  • such as default action for that menu item.

    int actionViewClass The name of an optional View class to instantiate and use as an action view.

    int activatedBackgroundIndicator Drawable used as a background for activated items.

    int activityCloseEnterAnimation When closing the current activity, this is the animation that is run on the next activity (which is entering the screen).

    int activityCloseExitAnimation When closing the current activity, this is the animation that is run on the current activity (which is exiting the screen).

    int activityOpenEnterAnimation When opening a new activity, this is the animation that is run on the next activity (which is entering the screen).

    int activityOpenExitAnimation When opening a new activity, this is the animation that is run on the previous activity (which is exiting the screen).

    int addStatesFromChildren Sets whether this ViewGroup's drawable states also include its children's drawable states.

    int adjustViewBounds Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable.

    int alertDialogIcon

    Icon drawable to use for alerts 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 alertDialogStyle

    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 alertDialogTheme Theme to use for alert dialogs spawned from this theme.

    int alignmentMode Alignment constants.

    int allContactsName Resource representing the term "All Contacts" (e.g.

    int allowBackup Whether to allow the application to participate in the backup and restore infrastructure.

    int allowClearUserData Option to let applications specify that user data can/cannot be cleared.

    int allowParallelSyncs Set to true to tell the SyncManager that this SyncAdapter supports multiple simultaneous syncs for the same account type and authority.

    int allowSingleTap Indicates whether the drawer can be opened/closed by a single tap on the handle.

    int allowTaskReparenting Specify that an activity can be moved out of a task it is in to the task it has an affinity for when appropriate.

    int alpha alpha property of the view, as a value between 0 (completely transparent) and 1 (completely opaque).

    int alphabeticShortcut The alphabetic shortcut key.

    android Page 44 of 918

  • int alwaysDrawnWithCache Defines whether the ViewGroup should always draw its children using their drawing cache or not.

    int alwaysRetainTaskState

    Specify whether an acitivty's task state should always be maintained by the system, or if it is allowed to reset the task to its initial state in certain situations.

    int angle Angle of the gradient.

    int animateFirstView Defines whether to animate the current View when the ViewAnimation is first displayed.

    int animateLayoutChanges Defines whether changes in layout (caused by adding and removing items) should cause a LayoutTransition to run.

    int animateOnClick Indicates whether the drawer should be opened/closed with an animation when the user clicks the handle.

    int animation Animation to use on each child.

    int animationCache Defines whether layout animations should create a drawing cache for their children.

    int animationDuration Sets how long a transition animation should run (in milliseconds) when layout has changed.

    int animationOrder The order in which the animations will be started.

    int animationResolution

    This constant was deprecated in API level 16. Not used by the framework. Timeout between frames of animation in milliseconds Must be an integer value, such as "100". This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

    int antialias Enables or disables antialiasing.

    int anyDensity Indicates whether the application can accommodate any screen density.

    int apiKey Value is a string that specifies the Maps API Key to use.

    int author Name of the author of this component, e.g.

    int authorities Specify the authorities under which this content provider can be found.

    int autoAdvanceViewId The view id of the AppWidget subview which should be auto-advanced.

    int autoCompleteTextViewStyle Default AutoCompleteTextView style.

    int autoLink Controls whether links such as urls and email addresses are automati