# Titanium.Android

The top-level Android module.

Availability
1.5

# Overview

The Android module allows the application to manage various Android components.

# Action Bar

An action bar is a UI feature that identifies the application and user location, and provides user actions and navigation modes.

The Titanium SDK lets you customize the look of the action bar and add action items. Action items are added using the Titanium.Android.Menu API.

For more information about the action bar, see the Titanium.Android.ActionBar.

# Activities

An Android application is made up of one or more activities. Each activity represents a single screen with a user interface.

In Titanium, each Window or TabGroup has its own activity. The application can access the activity of a Window and TabGroup object and monitor its lifecycle events. Titanium also lets you launch new activities by creating intents to launch them. See the "Intents" section below.

For more information about activities, see the Titanium.Android.Activity.

# Broadcast Intents and Receivers

Broadcast Intents allow your application to send out a message to any application that sets up a Broadcast Receiver to listen to it. Your application can also register Broadcast Receivers to listen to system events sent by the Android OS, such as low battery warnings or airplane mode changes.

For more information about broadcasts, see the Android Broadcast Intents and Receivers guide (opens new window) and Titanium.Android.BroadcastReceiver.

# Intents

Intents are message objects that specify actions to perform which can start either activities, broadcasts or services.

For more information about intents, see the Titanium.Android.Intent.

# Intent Filters

Intent Filters advertise to the Android OS that your application handles certain actions and data types. For example, when another application wants to share an image or text, your application can define intent filters to let Android know your application can handle those data types.

For more information about intent filters, see the Android Intent Filters guide (opens new window).

# Notifications

Notifications alert the user that something is happening to your application while it is in the background. Notifications appear in the notification drawer until the user clears them and on the lock screen for devices running Android 5.0 or greater. Note that the user can filter or turn notifications on and off from Settings. For more information about notifications, see the Titanium.Android.Notification.

For Android toast notifications (pop-up notifications sent while the application is in the foreground), see Titanium.UI.Notification.

# Options Menu

The options menu is a feature of older Android devices (prior to Android 3.0 (API 11)), and has been replaced by the action bar. The options menu is accessed by pressing the Menu and presents a pop-up menu of options the user can execute.

The Titanium.Android.Menu API is used to construct both the options menu and action items for the action bar.

For more information about the options menu, see the Titanium.Android.Menu.

# Services

A service is a component started by an application that runs in the background. The service does not have any application UI associated with it, so the user does not directly interact with it, only your application.

The Titanium SDK gives you the ability to write your own Android Services using JavaScript. The service executes your JavaScript code at intervals you specify. Note that the service will stop running when you back out of the app. So, if you want the service to continue running, then it's recommended that you set the root window's Titanium.UI.Window.exitOnClose property to false so that the window will persist in the background like iOS.

For more information about services, see the Titanium.Android.Service.

# Permissions

Starting from Android 6.0 (API level 23), users need to grant certain permissions to apps while the app is running. You can read it more here (opens new window).

In Titanium SDK, to support this, we have the Titanium.Android.requestPermissions method. It is used to request any permission you may need. An example of using it is shown below:

var permissions = [ 'android.permission.CAMERA', 'android.permission.READ_EXTERNAL_STORAGE', 'android.permission.WRITE_EXTERNAL_STORAGE' ];
Ti.Android.requestPermissions(permissions, function (e) {
    if (e.success) {
        Ti.API.info('SUCCESS');
    } else {
        Ti.API.info('ERROR: ' + e.error);
    }
});

# Properties

# currentActivity READONLY

Availability
1.5
currentActivity :Titanium.Android.Activity

References the top-most window's activity.


# currentService READONLY

Availability
1.5
currentService :Titanium.Android.Service

Service in the active context.


# rootActivity READONLY

Availability
8.0.0

The first activity launched by the application.

This is the main launcher activity defined in the "AndroidManifest.xml" which shows the splash screen. All windows opened are child activities below this root activity.

Closing this root activity via its finish method will close all of its child activity windows as well and exit out of the app.

When resuming the app via a data intent such as a URL, notification, shortcut, etc. the root activity will fire a "newintent" event and update its intent property with the newly received intent.

# Methods

# createBigPictureStyle

Availability
5.4.0
createBigPictureStyle([parameters]) → Titanium.Android.BigPictureStyle

Creates and returns an instance of Titanium.Android.BigPictureStyle.

Parameters

Name Type Description
parameters Dictionary<Titanium.Android.BigPictureStyle>

Properties to set on a new object, including any defined by Titanium.Android.BigPictureStyle except those marked not-creation or read-only.

Returns


# createBigTextStyle

Availability
5.4.0
createBigTextStyle([parameters]) → Titanium.Android.BigTextStyle

Creates and returns an instance of Titanium.Android.BigTextStyle.

Parameters

Name Type Description
parameters Dictionary<Titanium.Android.BigTextStyle>

Properties to set on a new object, including any defined by Titanium.Android.BigTextStyle except those marked not-creation or read-only.

Returns


# createBroadcastIntent

Availability
3.2.0
createBroadcastIntent([parameters]) → Titanium.Android.Intent

Create an Intent to be used in a broadcast.

Parameters

Name Type Description
parameters Dictionary<Titanium.Android.Intent>

Properties to set on the new object, including any defined by Titanium.Android.Intent, except those marked not-creation or read-only.

Returns


# createBroadcastReceiver

Availability
3.1.0
createBroadcastReceiver([parameters]) → Titanium.Android.BroadcastReceiver

Creates and returns an instance of Titanium.Android.BroadcastReceiver.

Parameters

Name Type Description
parameters Dictionary<Titanium.Android.BroadcastReceiver>

Properties to set on a new object, including any defined by Titanium.Android.BroadcastReceiver except those marked not-creation or read-only.

Returns


# createIntent

Availability
1.5
createIntent([parameters]) → Titanium.Android.Intent

Creates and returns an instance of Titanium.Android.Intent.

Parameters

Name Type Description
parameters Dictionary<Titanium.Android.Intent>

Properties to set on a new object, including any defined by Titanium.Android.Intent except those marked not-creation or read-only.

Returns


# createIntentChooser

Availability
1.5
createIntentChooser(intent, title) → Titanium.Android.Intent

Creates an activity chooser intent, used to allow the user to select a target activity for an intent.

Use this method when the user wants to take an action that could use any one of a number of applications. For example, when sending a plain text message, the user may choose to send a text message, send an email, or post to a social network.

You pass in an Titanium.Android.Intent representing the action being taken, and a title for the chooser.

The method returns another intent, representing the chooser, which can be used to start an activity. See the code example for details on how to display the chooser.

For more information, see the official Android documentation for Intent.ACTION_CHOOSER

Parameters

Name Type Description
intent Titanium.Android.Intent

The intent to display a chooser for.

title String

Title to display on the chooser.

Returns


# createNotification

Availability
1.5
createNotification([parameters]) → Titanium.Android.Notification

Creates and returns an instance of Titanium.Android.Notification.

Parameters

Name Type Description
parameters Dictionary<Titanium.Android.Notification>

Properties to set on a new object, including any defined by Titanium.Android.Notification except those marked not-creation or read-only.

Returns


# createNotificationChannel

Availability
7.0.0
createNotificationChannel([parameters]) → Titanium.Android.NotificationChannel

Creates and returns an instance of Titanium.Android.NotificationChannel.

Parameters

Name Type Description
parameters Dictionary<Titanium.Android.NotificationChannel>

Properties to set on a new object, including any defined by Titanium.Android.NotificationChannel except those marked not-creation or read-only.

Returns


# createPendingIntent

Availability
1.5
createPendingIntent([parameters]) → Titanium.Android.PendingIntent

If FLAG_NO_CREATE is specified and no matching pending intent exists, returns null.

Parameters

Name Type Description
parameters Dictionary<Titanium.Android.PendingIntent>

Properties to set on the new object, including any defined by Titanium.Android.PendingIntent, except those marked not-creation or read-only.

Returns


# createQuickSettingsService

Availability
7.0
createQuickSettingsService([parameters]) → Titanium.Android.QuickSettingsService

Creates and returns an instance of Titanium.Android.QuickSettingsService.

Parameters

Name Type Description
parameters Dictionary<Titanium.Android.QuickSettingsService>

Properties to set on a new object, including any defined by Titanium.Android.QuickSettingsService except those marked not-creation or read-only.

Returns


# createRemoteViews

Availability
1.6
createRemoteViews([parameters]) → Titanium.Android.RemoteViews

Creates and returns an instance of Titanium.Android.RemoteViews.

Parameters

Name Type Description
parameters Dictionary<Titanium.Android.RemoteViews>

Properties to set on a new object, including any defined by Titanium.Android.RemoteViews except those marked not-creation or read-only.

Returns


# createService

Availability
1.5
createService(intent) → Titanium.Android.Service

Create a Titanium.Android.Service so you can start/stop it and listen for events from it.

Parameters

Name Type Description
intent Titanium.Android.Intent

An Intent created with createServiceIntent, which specifies the service to be instantiated.

Returns


# createServiceIntent

Availability
1.5
createServiceIntent(options) → Titanium.Android.Intent

Create an Intent to be used to start a service.

Parameters

Name Type Description
options ServiceIntentOptions

Options for the Service.

Returns


# hasPermission

Availability
5.4.0
hasPermission(permission) → Boolean

Returns true if the app has permission access.

Parameters

Name Type Description
permission String | Array<String>

The permission to check for access. This can be any of the constants listed here with dangerous protection level here. For example, android.permission.WRITE_CONTACTS.

Since Titanium 6.1.0, the method will also accept Array<String>

Returns

Type
Boolean

# isServiceRunning

Availability
1.5
isServiceRunning(intent) → Boolean

Check on state of Service.

Parameters

Name Type Description
intent Titanium.Android.Intent

An Intent created with createServiceIntent, which specifies the service to check.

Returns

Type
Boolean

# registerBroadcastReceiver

Availability
3.1.0
registerBroadcastReceiver(broadcastReceiver, actions) → void

Registers broadcast receiver for the given actions.

Parameters

Name Type Description
broadcastReceiver Titanium.Android.BroadcastReceiver

The broadcast receiver to register and handle the broadcast.

actions Array<String>

The actions that the broadcast reciever will handle

Returns

Type
void

# requestPermissions

Availability
5.4.0
requestPermissions(permissions[, callback]) → Promise<RequestPermissionAccessResult>

Request for permission access.

Parameters

Name Type Description
permissions String | Array<String>

The permission(s) to request for access. This can be any of the constants listed here with dangerous protection level here. Normal protection permissions are automatically enabled if they are included in the manifest. An example of a dangerous protection permission would be android.permission.WRITE_CONTACTS. The requested permission(s) MUST also be included in the Android Manifest.

Besides this, there are also requestPermission methods that are ready for commonly used situations. These methods are requestCalendarPermissions, requestContactsPermissions, requestStoragePermissions, requestLocationPermissions and requestCameraPermissions.

Since Titanium 6.1.0, the method will also accept a String. Any requests where permissions are already granted will yield a successful callback.

callback Callback<RequestPermissionAccessResult>

Function to call upon user decision to grant access. Optional on SDK 10, as this method will return a Promise, which may be used to handle the result.

Returns

On SDK 10+, this method will return a Promise whose resolved value is equivalent to that passed to the optional callback argument.

Type
Promise<RequestPermissionAccessResult>

# startService

Availability
1.5
startService(intent) → void

Starts a simple service.

Parameters

Name Type Description
intent Titanium.Android.Intent

An Intent created with createServiceIntent, which specifies the service to start.

Returns

Type
void

# stopService

Availability
1.5
stopService(intent) → void

Stop a simple service that was started with startService.

Parameters

Name Type Description
intent Titanium.Android.Intent

An Intent created with createServiceIntent, which specifies the service to stop.

Returns

Type
void

# unregisterBroadcastReceiver

Availability
3.1.0
unregisterBroadcastReceiver(broadcastReceiver) → void

Unregisters a broadcast receiver.

Parameters

Name Type Description
broadcastReceiver Titanium.Android.BroadcastReceiver

The broadcast receiver to unregister.

Returns

Type
void

# Constants

# ACTION_AIRPLANE_MODE_CHANGED

Availability
1.5
ACTION_AIRPLANE_MODE_CHANGED :String

User switched airplane mode on or off.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_AIRPLANE_MODE_CHANGED in the Android API Reference.


# ACTION_ALL_APPS

Availability
1.5
ACTION_ALL_APPS :String

List all applications.

Use with the action property to create an Activity Intent.

See Intent.ACTION_ALL_APPS in the Android API Reference.


# ACTION_ANSWER

Availability
1.5
ACTION_ANSWER :String

Handle an incoming phone call.

Use with the action property to create an Activity Intent.

See Intent.ACTION_ANSWER in the Android API Reference.


# ACTION_ATTACH_DATA

Availability
1.5
ACTION_ATTACH_DATA :String

Used to indicate that the data is an attachment.

Use with the action property to create an Activity Intent.

See Intent.ACTION_ATTACH_DATA in the Android API Reference.


# ACTION_BATTERY_CHANGED

Availability
1.5
ACTION_BATTERY_CHANGED :String

Listen to battery state change status.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

Note that Titanium exposes battery monitoring using the Titanium.Platform API.

See Intent.ACTION_BATTERY_CHANGED in the Android API Reference.


# ACTION_BATTERY_LOW

Availability
1.5
ACTION_BATTERY_LOW :String

Indicates low battery condition on the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

Note that Titanium exposes battery monitoring using the Titanium.Platform API.

See Intent.ACTION_BATTERY_LOW in the Android API Reference.


# ACTION_BATTERY_OKAY

Availability
1.5
ACTION_BATTERY_OKAY :String

Inidicates the battery is now okay after being low.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

Note that Titanium exposes battery monitoring using the Titanium.Platform API.

See Intent.ACTION_BATTERY_OKAY in the Android API Reference.


# ACTION_BOOT_COMPLETED

Availability
1.5
ACTION_BOOT_COMPLETED :String

Indicates the system has finished booting.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

The application needs to also set the android.permission.RECEIVE_BOOT_COMPLETED permission in the Android manifest section of the tiapp.xml file.

<ti:app>
    <android>
        <manifest>
            <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
        </manifest>
    </android>
</ti:app>

See Intent.ACTION_BOOT_COMPLETED in the Android API Reference.


# ACTION_BUG_REPORT

Availability
1.5
ACTION_BUG_REPORT :String

Show activity for reporting a bug.

Use with the action property to create an Activity Intent.

See Intent.ACTION_BUG_REPORT in the Android API Reference.


# ACTION_CALL

Availability
1.5
ACTION_CALL :String

Perform a call to someone specified by the data property.

Use with the action property to create an Activity Intent.

See Intent.ACTION_CALL in the Android API Reference.


# ACTION_CALL_BUTTON

Availability
1.5
ACTION_CALL_BUTTON :String

User pressed the call button.

Use with the action property to create an Activity Intent.

See Intent.ACTION_CALL_BUTTON in the Android API Reference.


# ACTION_CAMERA_BUTTON

Availability
1.5
ACTION_CAMERA_BUTTON :String

The camera button was pressed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_CAMERA_BUTTON in the Android API Reference.


# ACTION_CHOOSER

Availability
1.5
ACTION_CHOOSER :String

Display an activity chooser.

Use with the action property to create an Activity Chooser.

You can also create an activity chooser using the createIntentChooser method.

See Intent.ACTION_CHOOSER in the Android API Reference.


# ACTION_CLOSE_SYSTEM_DIALOGS

Availability
1.5
ACTION_CLOSE_SYSTEM_DIALOGS :String

User dismissed a temporary system dialog, such as the notification drawer or recent-app drawer.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_CLOSE_SYSTEM_DIALOGS in the Android API Reference.


# ACTION_CONFIGURATION_CHANGED

Availability
1.5
ACTION_CONFIGURATION_CHANGED :String

The device's configuration changed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_CONFIGURATION_CHANGED in the Android API Reference.


# ACTION_CREATE_SHORTCUT

Availability
1.5
ACTION_CREATE_SHORTCUT :String

Create a shortcut.

Use with the action property to create an Activity Intent.

See Intent.ACTION_CREATE_SHORTCUT in the Android API Reference.


# ACTION_DATE_CHANGED

Availability
1.5
ACTION_DATE_CHANGED :String

Date changed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_DATE_CHANGED in the Android API Reference.


# ACTION_DEFAULT

Availability
1.5
ACTION_DEFAULT :String

Default action, which is Titanium.Android.ACTION_VIEW

Use with the action property to create an Activity Intent.

See Intent.ACTION_DEFAULT in the Android API Reference.


# ACTION_DELETE

Availability
1.5
ACTION_DELETE :String

Delete the data specified by the Intent's data property.

Use with the action property to create an Activity Intent.

See Intent.ACTION_DELETE in the Android API Reference.


# ACTION_DEVICE_STORAGE_LOW

Availability
1.5
ACTION_DEVICE_STORAGE_LOW :String

Indicates a low memory condition on the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_DEVICE_STORAGE_LOW in the Android API Reference.


# ACTION_DIAL

Availability
1.5
ACTION_DIAL :String

Dial a number specified by the Intent's data property.

Use with the action property to create an Activity Intent.

See Intent.ACTION_DIAL in the Android API Reference.


# ACTION_EDIT

Availability
1.5
ACTION_EDIT :String

Provide editable access to the data specified by the Intent's data property.

Use with the action property to create an Activity Intent.

See Intent.ACTION_EDIT in the Android API Reference.


# ACTION_GET_CONTENT

Availability
1.5
ACTION_GET_CONTENT :String

Allow the user to select a particular kind of data specified by the Intent's type property.

Use with the action property to create an Activity Intent.

See Intent.ACTION_GET_CONTENT in the Android API Reference.


# ACTION_GTALK_SERVICE_CONNECTED

Availability
1.5
ACTION_GTALK_SERVICE_CONNECTED :String

GTalk connection has been established.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_GTALK_SERVICE_CONNECTED in the Android API Reference.


# ACTION_GTALK_SERVICE_DISCONNECTED

Availability
1.5
ACTION_GTALK_SERVICE_DISCONNECTED :String

GTalk connection has been disconnected.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_GTALK_SERVICE_DISCONNECTED in the Android API Reference.


# ACTION_HEADSET_PLUG

Availability
1.5
ACTION_HEADSET_PLUG :String

A wired headset has been plugged in or unplugged.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_HEADSET_PLUG in the Android API Reference.


# ACTION_INPUT_METHOD_CHANGED

Availability
1.5
ACTION_INPUT_METHOD_CHANGED :String

An input method has been changed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_INPUT_METHOD_CHANGED in the Android API Reference.


# ACTION_INSERT

Availability
1.5
ACTION_INSERT :String

Insert an empty item into the given container.

Use with the action property to create an Activity Intent.

See Intent.ACTION_INSERT in the Android API Reference.


# ACTION_INSERT_OR_EDIT

Availability
1.5
ACTION_INSERT_OR_EDIT :String

Pick an existing item or insert an empty item, then edit it.

Use with the action property to create an Activity Intent.

See Intent.ACTION_INSERT_OR_EDIT in the Android API Reference.


# ACTION_MAIN

Availability
1.5
ACTION_MAIN :String

Start as the main entry point.

Use with the action property to create an Activity Intent.

See Intent.ACTION_MAIN in the Android API Reference.


# ACTION_MANAGE_PACKAGE_STORAGE

Availability
1.5
ACTION_MANAGE_PACKAGE_STORAGE :String

Indicates low memory condition notification acknowledged by user and package management should be started.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MANAGE_PACKAGE_STORAGE in the Android API Reference.


# ACTION_MEDIA_BAD_REMOVAL

Availability
1.5
ACTION_MEDIA_BAD_REMOVAL :String

External media was removed from SD card slot, but mount point was not unmounted.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_BAD_REMOVAL in the Android API Reference.


# ACTION_MEDIA_BUTTON

Availability
1.5
ACTION_MEDIA_BUTTON :String

The media button was pressed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_BUTTON in the Android API Reference.


# ACTION_MEDIA_CHECKING

Availability
1.5
ACTION_MEDIA_CHECKING :String

External media is present and being disk-checked.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_CHECKING in the Android API Reference.


# ACTION_MEDIA_EJECT

Availability
1.5
ACTION_MEDIA_EJECT :String

User has expressed the desire to remove the external storage media.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

Applications should close all files they have open within the mount point when they receive this intent.

See Intent.ACTION_MEDIA_EJECT in the Android API Reference.


# ACTION_MEDIA_MOUNTED

Availability
1.5
ACTION_MEDIA_MOUNTED :String

External media is present and mounted at its mount point.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_MOUNTED in the Android API Reference.


# ACTION_MEDIA_NOFS

Availability
1.5
ACTION_MEDIA_NOFS :String

External media is present, but is using an incompatible filesystem or is blank.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_NOFS in the Android API Reference.


# ACTION_MEDIA_REMOVED

Availability
1.5
ACTION_MEDIA_REMOVED :String

External media has been removed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_REMOVED in the Android API Reference.


# ACTION_MEDIA_SCANNER_FINISHED

Availability
1.5
ACTION_MEDIA_SCANNER_FINISHED :String

The media scanner has finished scanning a directory.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_SCANNER_FINISHED in the Android API Reference.


# ACTION_MEDIA_SCANNER_SCAN_FILE

Availability
1.5
ACTION_MEDIA_SCANNER_SCAN_FILE :String

Request the media scanner to scan a file and add it to the media database.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_SCANNER_SCAN_FILE in the Android API Reference.


# ACTION_MEDIA_SCANNER_STARTED

Availability
1.5
ACTION_MEDIA_SCANNER_STARTED :String

The media scanner has started scanning a directory.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_SCANNER_STARTED in the Android API Reference.


# ACTION_MEDIA_SHARED

Availability
1.5
ACTION_MEDIA_SHARED :String

External media is unmounted because it is being shared via USB mass storage.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_SHARED in the Android API Reference.


# ACTION_MEDIA_UNMOUNTABLE

Availability
1.5
ACTION_MEDIA_UNMOUNTABLE :String

Corresponds to the Android Intent.ACTION_MEDIA_UNMOUNTABLE constant.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_UNMOUNTABLE in the Android API Reference.


# ACTION_MEDIA_UNMOUNTED

Availability
1.5
ACTION_MEDIA_UNMOUNTED :String

External media is present, but not mounted at its mount point.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_UNMOUNTED in the Android API Reference.


# ACTION_NEW_OUTGOING_CALL

Availability
1.5
ACTION_NEW_OUTGOING_CALL :String

An outgoing call is about to be placed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

The application needs to also set the android.permission.NEW_OUTGOING_CALL permission in the Android manifest section of the tiapp.xml file.

<ti:app>
    <android>
        <manifest>
            <uses-permission android:name="android.permission.NEW_OUTGOING_CALL"/>
        </manifest>
    </android>
</ti:app>

See Intent.ACTION_NEW_OUTGOING_CALL in the Android API Reference.


# ACTION_PACKAGE_ADDED

Availability
1.5
ACTION_PACKAGE_ADDED :String

A new application package has been installed on the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_ADDED in the Android API Reference.


# ACTION_PACKAGE_CHANGED

Availability
1.5
ACTION_PACKAGE_CHANGED :String

An existing application package has been changed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_CHANGED in the Android API Reference.


# ACTION_PACKAGE_DATA_CLEARED

Availability
1.5
ACTION_PACKAGE_DATA_CLEARED :String

The user has cleared the data of a package.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_DATA_CLEARED in the Android API Reference.


# ACTION_PACKAGE_REMOVED

Availability
1.5
ACTION_PACKAGE_REMOVED :String

An existing application package has been removed from the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_REMOVED in the Android API Reference.


# ACTION_PACKAGE_REPLACED

Availability
1.5
ACTION_PACKAGE_REPLACED :String

A new version of an application package has been installed, replacing an existing version that was previously installed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_REPLACED in the Android API Reference.


# ACTION_PACKAGE_RESTARTED

Availability
1.5
ACTION_PACKAGE_RESTARTED :String

The user has restarted a package, and all of its processes have been killed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_RESTARTED in the Android API Reference.


# ACTION_PICK

Availability
1.5
ACTION_PICK :String

Pick an item from the directory indicated by the Intent's data property.

Use with the action property to create an Activity Intent.

See Intent.ACTION_PICK in the Android API Reference.


# ACTION_PICK_ACTIVITY

Availability
1.5
ACTION_PICK_ACTIVITY :String

Pick an activity given an intent.

Use with the action property to create an Activity Intent.

Add the activity intent using the intent's putExtra() method. Pass the method Titanium.Android.EXTRA_INTENT as the name parameter and the activity intent as the data parameter.

See Intent.ACTION_PICK_ACTIVITY in the Android API Reference.


# ACTION_POWER_CONNECTED

Availability
1.5
ACTION_POWER_CONNECTED :String

External power has been connected to the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_POWER_CONNECTED in the Android API Reference.


# ACTION_POWER_DISCONNECTED

Availability
1.5
ACTION_POWER_DISCONNECTED :String

External power has been disconnected from the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_POWER_DISCONNECTED in the Android API Reference.


# ACTION_POWER_USAGE_SUMMARY

Availability
1.5
ACTION_POWER_USAGE_SUMMARY :String

Show power usage information to the user.

Use with the action property to create an Activity Intent.

See Intent.ACTION_POWER_USAGE_SUMMARY in the Android API Reference.


# ACTION_PROVIDER_CHANGED

Availability
1.5
ACTION_PROVIDER_CHANGED :String

Content provider published new events or items.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PROVIDER_CHANGED in the Android API Reference.


# ACTION_REBOOT

Availability
1.5
ACTION_REBOOT :String

Device rebooted.

Only used by the system.

See Intent.ACTION_REBOOT in the Android API Reference.


# ACTION_RUN

Availability
1.5
ACTION_RUN :String

Run the data.

Use with the action property to create an Activity Intent.

See Intent.ACTION_RUN in the Android API Reference.


# ACTION_SCREEN_OFF

Availability
1.5
ACTION_SCREEN_OFF :String

Sent when the device goes to sleep and becomes non-interactive.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_SCREEN_OFF in the Android API Reference.


# ACTION_SCREEN_ON

Availability
1.5
ACTION_SCREEN_ON :String

Sent when the device wakes up and becomes interactive.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_SCREEN_ON in the Android API Reference.


Availability
1.5
ACTION_SEARCH :String

Perform a search.

Use with the action property to create an Activity Intent.

See Intent.ACTION_SEARCH in the Android API Reference.


# ACTION_SEARCH_LONG_PRESS

Availability
1.5
ACTION_SEARCH_LONG_PRESS :String

Start action associated with long pressing on the search key.

Use with the action property to create an Activity Intent.

See Intent.ACTION_SEARCH_LONG_PRESS in the Android API Reference.


# ACTION_SEND

Availability
1.5
ACTION_SEND :String

Deliver data to another activity.

Use with the action property to create an Activity Intent.

See Intent.ACTION_SEND in the Android API Reference.


# ACTION_SEND_MULTIPLE

Availability
1.5
ACTION_SEND_MULTIPLE :String

Deliver multiple data to another activity.

Use with the action property to create an Activity Intent.

See Intent.ACTION_SEND_MULTIPLE in the Android API Reference.


# ACTION_SENDTO

Availability
1.5
ACTION_SENDTO :String

Deliver data to the recipient specified by the Intent's data property.

Use with the action property to create an Activity Intent.

See Intent.ACTION_SENDTO in the Android API Reference.


# ACTION_SET_WALLPAPER

Availability
1.5
ACTION_SET_WALLPAPER :String

Show settings for choosing the system wallpaper.

Use with the action property to create an Activity Intent.

See Intent.ACTION_SET_WALLPAPER in the Android API Reference.


# ACTION_SHUTDOWN

Availability
1.5
ACTION_SHUTDOWN :String

Device is shutting down.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_SHUTDOWN in the Android API Reference.


# ACTION_SYNC

Availability
1.5
ACTION_SYNC :String

Perform data synchronization.

Use with the action property to create an Activity Intent.

See Intent.ACTION_SYNC in the Android API Reference.


# ACTION_SYSTEM_TUTORIAL

Availability
1.5
ACTION_SYSTEM_TUTORIAL :String

Start the platform-defined tutorial.

Use with the action property to create an Activity Intent.

See Intent.ACTION_SYSTEM_TUTORIAL in the Android API Reference.


# ACTION_TIME_CHANGED

Availability
1.5
ACTION_TIME_CHANGED :String

The time was set.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_TIME_CHANGED in the Android API Reference.


# ACTION_TIME_TICK

Availability
1.5
ACTION_TIME_TICK :String

The current time changed. Sent every minute.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_TIME_TICK in the Android API Reference.


# ACTION_UID_REMOVED

Availability
1.5
ACTION_UID_REMOVED :String

A user ID was removed from the system.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_UID_REMOVED in the Android API Reference.


# ACTION_USER_PRESENT

Availability
1.5
ACTION_USER_PRESENT :String

Sent when the user is present after device wakes up.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_USER_PRESENT in the Android API Reference.


# ACTION_VIEW

Availability
1.5
ACTION_VIEW :String

Display data to the user.

Use with the action property to create an Activity Intent.

See Intent.ACTION_VIEW in the Android API Reference.


# ACTION_VOICE_COMMAND

Availability
1.5
ACTION_VOICE_COMMAND :String

Start voice command.

Use with the action property to create an Activity Intent.

See Intent.ACTION_VOICE_COMMAND in the Android API Reference.


# ACTION_WALLPAPER_CHANGED

Availability
1.5
ACTION_WALLPAPER_CHANGED :String

The current system wallpaper has changed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_WALLPAPER_CHANGED in the Android API Reference.


Availability
1.5
ACTION_WEB_SEARCH :String

Perform a web search.

Use with the action property to create an Activity Intent.

See Intent.ACTION_WEB_SEARCH in the Android API Reference.


# CATEGORY_ALARM

Availability
3.6.0
CATEGORY_ALARM :String

Notification category indicating an alarm or timer.

Use with the category property.

See Notification.CATEGORY_ALARM in the Android API Reference.


# CATEGORY_ALTERNATIVE

Availability
1.5
CATEGORY_ALTERNATIVE :String

Set if the activity should be considered as an alternative action to the data the user is currently viewing.

Pass to the Intent's addCategory method to set a category.

See Intent.CATEGORY_ALTERNATIVE in the Android API Reference.


# CATEGORY_BROWSABLE

Availability
1.5
CATEGORY_BROWSABLE :String

Activity can browse the Internet.

Pass to the Intent's addCategory method to set a category.

The Titanium.Android.ACTION_MAIN constant must also be set in the intent's action property.

See Intent.CATEGORY_BROWSABLE in the Android API Reference.


# CATEGORY_CALL

Availability
3.6.0
CATEGORY_CALL :String

Notification category indicating an incoming call (voice or video) or similar synchronous communication request.

Use with the category property.

See Notification.CATEGORY_CALL in the Android API Reference.


# CATEGORY_DEFAULT

Availability
1.5
CATEGORY_DEFAULT :String

Activity should be used as the default action to perform on a piece of data.

Pass to the Intent's addCategory method to set a category.

See Intent.CATEGORY_DEFAULT in the Android API Reference.


# CATEGORY_DEVELOPMENT_PREFERENCE

Availability
1.5
CATEGORY_DEVELOPMENT_PREFERENCE :String

Activity is in the development preference panel.

Pass to the Intent's addCategory method to set a category.

See Intent.CATEGORY_DEVELOPMENT_PREFERENCE in the Android API Reference.


# CATEGORY_EMAIL

Availability
3.6.0
CATEGORY_EMAIL :String

Notification category indicating an asynchronous bulk message (email).

Use with the category property.

See Notification.CATEGORY_EMAIL in the Android API Reference.


# CATEGORY_EMBED

Availability
1.5
CATEGORY_EMBED :String

Activity can run inside a parent activity.

See Intent.CATEGORY_EMBED in the Android API Reference.


# CATEGORY_ERROR

Availability
3.6.0
CATEGORY_ERROR :String

Notification category indicating an error in background operation or authentication status.

Use with the category property.

See Notification.CATEGORY_ERROR in the Android API Reference.


# CATEGORY_EVENT

Availability
3.6.0
CATEGORY_EVENT :String

Notification category indicating a calendar event.

Use with the category property.

See Notification.CATEGORY_EVENT in the Android API Reference.


# CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST

Availability
1.5
CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST :String

To be used as test code for framework instrumentation tests.

See Intent.CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST in the Android API Reference.


# CATEGORY_HOME

Availability
1.5
CATEGORY_HOME :String

Home activity, the first activity that is displayed when the device boots.

Pass to the Intent's addCategory method to set a category.

See Intent.CATEGORY_HOME in the Android API Reference.


# CATEGORY_INFO

Availability
1.5
CATEGORY_INFO :String

Provides information about the package it is in.

Pass to the Intent's addCategory method to set a category.

See Intent.CATEGORY_INFO in the Android API Reference.


# CATEGORY_LAUNCHER

Availability
1.5
CATEGORY_LAUNCHER :String

Activity is in the device's launcher.

Pass to the Intent's addCategory method to set a category.

See Intent.CATEGORY_LAUNCHER in the Android API Reference.


# CATEGORY_MESSAGE

Availability
3.6.0
CATEGORY_MESSAGE :String

Notification category indicating an incoming direct message (SMS, instant message, etc.).

Use with the category property.

See Notification.CATEGORY_MESSAGE in the Android API Reference.


# CATEGORY_MONKEY

Availability
1.5
CATEGORY_MONKEY :String

This activity may be exercised by the monkey or other automated test tools.

See Intent.CATEGORY_MONKEY in the Android API Reference.


# CATEGORY_OPENABLE

Availability
1.5
CATEGORY_OPENABLE :String

Activity can open raw file:// or scheme:// URIs.

See Intent.CATEGORY_OPENABLE in the Android API Reference.


# CATEGORY_PREFERENCE

Availability
1.5
CATEGORY_PREFERENCE :String

This activity is a preference panel.

Pass to the Intent's addCategory method to set a category.

See Intent.CATEGORY_PREFERENCE in the Android API Reference.


# CATEGORY_PROGRESS

Availability
3.6.0
CATEGORY_PROGRESS :String

Notification category indicating the progress of a long-running background operation.

Use with the category property.

See Notification.CATEGORY_PROGRESS in the Android API Reference.


# CATEGORY_PROMO

Availability
3.6.0
CATEGORY_PROMO :String

Notification category indicating a promotion or advertisement.

Use with the category property.

See Notification.CATEGORY_PROMO in the Android API Reference.


# CATEGORY_RECOMMENDATION

Availability
3.6.0
CATEGORY_RECOMMENDATION :String

Notification category indicating a specific, timely recommendation for a single thing.

Use with the category property.

See Notification.CATEGORY_RECOMMENDATION in the Android API Reference.


# CATEGORY_SAMPLE_CODE

Availability
1.5
CATEGORY_SAMPLE_CODE :String

To be used as a sample code example (not part of the normal user experience).

See Intent.CATEGORY_SAMPLE_CODE in the Android API Reference.


# CATEGORY_SELECTED_ALTERNATIVE

Availability
1.5
CATEGORY_SELECTED_ALTERNATIVE :String

Activity should be considered as an alternative selection action to the data the user has currently selected.

Pass to the Intent's addCategory method to set a category.

See Intent.CATEGORY_SELECTED_ALTERNATIVE in the Android API Reference.


# CATEGORY_SERVICE

Availability
3.6.0
CATEGORY_SERVICE :String

Notification category for a running background service.

Use with the category property.

See Notification.CATEGORY_SERVICE in the Android API Reference.


# CATEGORY_SOCIAL

Availability
3.6.0
CATEGORY_SOCIAL :String

Notification category for a social network or sharing update.

Use with the category property.

See Notification.CATEGORY_SOCIAL in the Android API Reference.


# CATEGORY_STATUS

Availability
3.6.0
CATEGORY_STATUS :String

Notification category indicating ongoing information about device or contextual status.

Use with the category property.

See Notification.CATEGORY_STATUS in the Android API Reference.


# CATEGORY_TAB

Availability
1.5
CATEGORY_TAB :String

Activity to be used in a tab activity.

Pass to the Intent's addCategory method to set a category.

See Intent.CATEGORY_TAB in the Android API Reference.


# CATEGORY_TEST

Availability
1.5
CATEGORY_TEST :String

To be used as a test (not part of the normal user experience).

Pass to the Intent's addCategory method to set a category.

See Intent.CATEGORY_TEST in the Android API Reference.


# CATEGORY_TRANSPORT

Availability
3.6.0
CATEGORY_TRANSPORT :String

Notification category indicating media transport control for playback.

Use with the category property.

See Notification.CATEGORY_TRANSPORT in the Android API Reference.


# CATEGORY_UNIT_TEST

Availability
1.5
CATEGORY_UNIT_TEST :String

To be used as a unit test (run through the Test Harness).

See Intent.CATEGORY_UNIT_TEST in the Android API Reference.


# DEFAULT_ALL

Availability
1.5
DEFAULT_ALL :Number

Use all default settings for a notification; see defaults.

See Notification.DEFAULT_ALL in the Android API Reference.


# DEFAULT_LIGHTS

Availability
1.5
DEFAULT_LIGHTS :Number

Use the default light settings for a notification; see defaults.

See Notification.DEFAULT_LIGHTS in the Android API Reference.


# DEFAULT_SOUND

Availability
1.5
DEFAULT_SOUND :Number

Use the default sound settings for a notification; see defaults.

See Notification.DEFAULT_SOUND in the Android API Reference.


# DEFAULT_VIBRATE

Availability
1.5
DEFAULT_VIBRATE :Number

Use the default vibration settings for a notification; see defaults.

See Notification.DEFAULT_VIBRATE in the Android API Reference.


# EXTRA_ALARM_COUNT

Availability
1.5
EXTRA_ALARM_COUNT :String

Integer indicating how many pending alarms are being delivered with the intent.

See Intent.EXTRA_ALARM_COUNT in the Android API Reference.


# EXTRA_BCC

Availability
1.5
EXTRA_BCC :String

String array containing e-mail addresses for blind carbon copying.

See Intent.EXTRA_BCC in the Android API Reference.


# EXTRA_CC

Availability
1.5
EXTRA_CC :String

String array containing e-mail addresses for carbon copying.

See Intent.EXTRA_CC in the Android API Reference.


# EXTRA_DATA_REMOVED

Availability
1.5
EXTRA_DATA_REMOVED :String

Boolean indicating full uninstall (true) or partial uninstall (false).

Sent with the Titanium.Android.ACTION_PACKAGE_REMOVED broadcast.

See Intent.EXTRA_DATA_REMOVED in the Android API Reference.


# EXTRA_DONT_KILL_APP

Availability
1.5
EXTRA_DONT_KILL_APP :String

Boolean indicating to restart the application or not.

Sent with the Titanium.Android.ACTION_PACKAGE_REMOVED and Titanium.Android.ACTION_PACKAGE_CHANGED broadcasts.

See Intent.EXTRA_DONT_KILL_APP in the Android API Reference.


# EXTRA_EMAIL

Availability
1.5
EXTRA_EMAIL :String

String array containing e-mail addresses.

See Intent.EXTRA_EMAIL in the Android API Reference.


# EXTRA_INTENT

Availability
1.5
EXTRA_INTENT :String

An Intent describing the choices you would like shown.

Set if the Intent's action is Titanium.Android.ACTION_PICK_ACTIVITY.

See Intent.EXTRA_INTENT in the Android API Reference.


# EXTRA_KEY_EVENT

Availability
1.5
EXTRA_KEY_EVENT :String

A KeyEvent object containing the event that triggered the creation of the Intent it is in.

See Intent.EXTRA_KEY_EVENT in the Android API Reference.


# EXTRA_PHONE_NUMBER

Availability
1.5
EXTRA_PHONE_NUMBER :String

String holding the phone number to call or number that was called.

Sent with the Titanium.Android.ACTION_NEW_OUTGOING_CALL broadcast.

Set if the Intent's action is Titanium.Android.ACTION_CALL.

See Intent.EXTRA_PHONE_NUMBER in the Android API Reference.


# EXTRA_REPLACING

Availability
1.5
EXTRA_REPLACING :String

Boolean indicating if the package is being replaced.

Sent with the Titanium.Android.ACTION_PACKAGE_REMOVED broadcast.

See Intent.EXTRA_REPLACING in the Android API Reference.


# EXTRA_SHORTCUT_ICON

Availability
1.5
EXTRA_SHORTCUT_ICON :String

Bitmap icon.

Return value of an intent with a Titanium.Android.ACTION_CREATE_SHORTCUT action.

See Intent.EXTRA_SHORTCUT_ICON in the Android API Reference.


# EXTRA_SHORTCUT_ICON_RESOURCE

Availability
1.5
EXTRA_SHORTCUT_ICON_RESOURCE :String

Resource of the shortcut.

Return value of an intent with a Titanium.Android.ACTION_CREATE_SHORTCUT action.

See Intent.EXTRA_SHORTCUT_ICON_RESOURCE in the Android API Reference.


# EXTRA_SHORTCUT_INTENT

Availability
1.5
EXTRA_SHORTCUT_INTENT :String

Intent of a shortcut.

Return value of an intent with a Titanium.Android.ACTION_CREATE_SHORTCUT action.

See Intent.EXTRA_SHORTCUT_INTENT in the Android API Reference.


# EXTRA_SHORTCUT_NAME

Availability
1.5
EXTRA_SHORTCUT_NAME :String

Name of the shortcut.

Return value of an intent with a Titanium.Android.ACTION_CREATE_SHORTCUT action.

See Intent.EXTRA_SHORTCUT_NAME in the Android API Reference.


# EXTRA_STREAM

Availability
1.5
EXTRA_STREAM :String

URI containing the stream data.

Use if the Intent's action is Titanium.Android.ACTION_SEND.

See Intent.EXTRA_STREAM in the Android API Reference.


# EXTRA_SUBJECT

Availability
1.5
EXTRA_SUBJECT :String

Subject line of a message.

See Intent.EXTRA_SUBJECT in the Android API Reference.


# EXTRA_TEMPLATE

Availability
1.5
EXTRA_TEMPLATE :String

Initial data to place in a newly created record.

Use if the Intent's action is Titanium.Android.ACTION_INSERT.

See Intent.EXTRA_TEMPLATE in the Android API Reference.


# EXTRA_TEXT

Availability
1.5
EXTRA_TEXT :String

Corresponds to the Android Intent.EXTRA_TEXT constant.

See Intent.EXTRA_TEXT in the Android API Reference.


# EXTRA_TITLE

Availability
1.5
EXTRA_TITLE :String

Corresponds to the Android Intent.EXTRA_TITLE constant.

Set if the Intent's action is Titanium.Android.ACTION_CHOOSER.

See Intent.EXTRA_TITLE in the Android API Reference.


# EXTRA_UID

Availability
1.5
EXTRA_UID :String

UID of the assigned packaged.

Sent with the Titanium.Android.ACTION_UID_REMOVED broadcast, and may be sent with the Titanium.Android.ACTION_PACKAGE_CHANGED and Titanium.Android.ACTION_PACKAGE_REMOVED broadcasts.

See Intent.EXTRA_UID in the Android API Reference.


# FILL_IN_ACTION

Availability
1.5
FILL_IN_ACTION :Number

Not used.

See Intent.FILL_IN_ACTION in the Android API Reference.


# FILL_IN_CATEGORIES

Availability
1.5
FILL_IN_CATEGORIES :Number

Not used.

See Intent.FILL_IN_CATEGORIES in the Android API Reference.


# FILL_IN_COMPONENT

Availability
1.5
FILL_IN_COMPONENT :Number

Not used.

See Intent.FILL_IN_COMPONENT in the Android API Reference.


# FILL_IN_DATA

Availability
1.5
FILL_IN_DATA :Number

Not used.

See Intent.FILL_IN_DATA in the Android API Reference.


# FILL_IN_PACKAGE

Availability
1.5
FILL_IN_PACKAGE :Number

Not used.

See Intent.FILL_IN_PACKAGE in the Android API Reference.


# FLAG_ACTIVITY_BROUGHT_TO_FRONT

Availability
1.5
FLAG_ACTIVITY_BROUGHT_TO_FRONT :Number

If activity is already running, bring it to the foreground.

Set by the system when launching a task.

See Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT in the Android API Reference.


# FLAG_ACTIVITY_CLEAR_TOP

Availability
1.5
FLAG_ACTIVITY_CLEAR_TOP :Number

If the activity is present, removes any activities on top of it to make it the foreground activity.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_CLEAR_TOP in the Android API Reference.


# FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET

Availability
1.5
FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET :Number

Corresponds to the Android Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET constant.

See Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET in the Android API Reference.


# FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS

Availability
1.5
FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS :Number

Exclude the activity from recently launched activities.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS in the Android API Reference.


# FLAG_ACTIVITY_FORWARD_RESULT

Availability
1.5
FLAG_ACTIVITY_FORWARD_RESULT :Number

Return result to the original calling activity.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_FORWARD_RESULT in the Android API Reference.


# FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY

Availability
1.5
FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY :Number

Activity was launched from history.

Set by the system when launching a task.

See Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY in the Android API Reference.


# FLAG_ACTIVITY_MULTIPLE_TASK

Availability
1.5
FLAG_ACTIVITY_MULTIPLE_TASK :Number

Start the activity as a new task even if it exists.

Must be used with the Titanium.Android.FLAG_ACTIVITY_NEW_TASK.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_MULTIPLE_TASK in the Android API Reference.


# FLAG_ACTIVITY_NEW_TASK

Availability
1.5
FLAG_ACTIVITY_NEW_TASK :Number

Activity will be the start of a new task (collection of activities).

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_NEW_TASK in the Android API Reference.


# FLAG_ACTIVITY_NO_ANIMATION

Availability
1.5
FLAG_ACTIVITY_NO_ANIMATION :Number

Prevent transition animation.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_NO_ANIMATION in the Android API Reference.


# FLAG_ACTIVITY_NO_HISTORY

Availability
1.5
FLAG_ACTIVITY_NO_HISTORY :Number

Do not keep the activity in the history stack.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_NO_HISTORY in the Android API Reference.


# FLAG_ACTIVITY_NO_USER_ACTION

Availability
1.5
FLAG_ACTIVITY_NO_USER_ACTION :Number

Disables the onUserLeaveHint() callback.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_NO_USER_ACTION in the Android API Reference.


# FLAG_ACTIVITY_PREVIOUS_IS_TOP

Availability
1.5
FLAG_ACTIVITY_PREVIOUS_IS_TOP :Number

Corresponds to the Android Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP constant.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP in the Android API Reference.


# FLAG_ACTIVITY_REORDER_TO_FRONT

Availability
1.5
FLAG_ACTIVITY_REORDER_TO_FRONT :Number

If the activity already exists, place it at the top of the history stack.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_REORDER_TO_FRONT in the Android API Reference.


# FLAG_ACTIVITY_RESET_TASK_IF_NEEDED

Availability
1.5
FLAG_ACTIVITY_RESET_TASK_IF_NEEDED :Number

If the task already exists, resets the task to its initial state.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED in the Android API Reference.


# FLAG_ACTIVITY_SINGLE_TOP

Availability
1.5
FLAG_ACTIVITY_SINGLE_TOP :Number

Do not launch the activity if it is already running.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_SINGLE_TOP in the Android API Reference.


# FLAG_AUTO_CANCEL

Availability
1.5
FLAG_AUTO_CANCEL :Number

Cancel the notification when it is clicked by the user.

Use with flags.

See also: Notification.FLAG_AUTO_CANCEL in the Android API Reference.


# FLAG_CANCEL_CURRENT

Availability
1.5
FLAG_CANCEL_CURRENT :Number

Cancel the current pending intent before creating a new one.

Use with the flags property.

See PendingIntent.FLAG_CANCEL_CURRENT in the Android API Reference.


# FLAG_DEBUG_LOG_RESOLUTION

Availability
1.5
FLAG_DEBUG_LOG_RESOLUTION :Number

Enable a log message to print out the resolution of the intent.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_DEBUG_LOG_RESOLUTION in the Android API Reference.


# FLAG_FROM_BACKGROUND

Availability
1.5
FLAG_FROM_BACKGROUND :Number

Indicates the intent is coming from a background operation.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_FROM_BACKGROUND in the Android API Reference.


# FLAG_GRANT_READ_URI_PERMISSION

Availability
1.5
FLAG_GRANT_READ_URI_PERMISSION :Number

Grant read permission on the URI in the Intent's data or clipboard.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_GRANT_READ_URI_PERMISSION in the Android API Reference.


# FLAG_GRANT_WRITE_URI_PERMISSION

Availability
1.5
FLAG_GRANT_WRITE_URI_PERMISSION :Number

Grants write permission on the URI in the Intent's data or clipboard.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_GRANT_WRITE_URI_PERMISSION in the Android API Reference.


# FLAG_IMMUTABLE

Availability
10.1.0
FLAG_IMMUTABLE :Number

Pending intent should be immutable.

Use with the flags property.

See PendingIntent.FLAG_IMMUTABLE in the Android API Reference.


# FLAG_INSISTENT

Availability
1.5
FLAG_INSISTENT :Number

Repeat audio until the notification is cancelled or the notification window is opened.

Use with flags.

See also: Notification.FLAG_INSISTENT in the Android API Reference.


# FLAG_MUTABLE

Availability
10.1.0
FLAG_MUTABLE :Number

Pending intent should be mutable.

Use with the flags property.

See PendingIntent.FLAG_MUTABLE in the Android API Reference.


# FLAG_NO_CLEAR

Availability
1.5
FLAG_NO_CLEAR :Number

Do not cancel the notification when the user clicks the Clear All button.

Use with flags.

See also: Notification.FLAG_NO_CLEAR in the Android API Reference.


# FLAG_NO_CREATE

Availability
1.5
FLAG_NO_CREATE :Number

If the current intent does not exist, do not create it.

Use with the flags property.

See PendingIntent.FLAG_NO_CREATE in the Android API Reference.


# FLAG_ONE_SHOT

Availability
1.5
FLAG_ONE_SHOT :Number

The pending intent can only be used once.

Use with the flags property.

See PendingIntent.FLAG_ONE_SHOT in the Android API Reference.


# FLAG_ONGOING_EVENT

Availability
1.5
FLAG_ONGOING_EVENT :Number

Specifies that a notification is in reference to something that is ongoing, like a phone call.

Use with flags.

See also: Notification.FLAG_ONGOING_EVENT in the Android API Reference.


# FLAG_ONLY_ALERT_ONCE

Availability
1.5
FLAG_ONLY_ALERT_ONCE :Number

Play an alert (sound, lights, and/or vibration) once each time the notification is sent, even if it has not been canceled before that.

Use with flags.

See also: Notification.FLAG_ONLY_ALERT_ONCE in the Android API Reference.


# FLAG_RECEIVER_REGISTERED_ONLY

Availability
1.5
FLAG_RECEIVER_REGISTERED_ONLY :Number

When sending a broadcast, only registered receivers will be called.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_RECEIVER_REGISTERED_ONLY in the Android API Reference.


# FLAG_SHOW_LIGHTS

Availability
1.5
FLAG_SHOW_LIGHTS :Number

Use LED lights to alert the user to the notification.

Use with flags.

See also: Notification.FLAG_SHOW_LIGHTS in the Android API Reference.


# FLAG_UPDATE_CURRENT

Availability
1.5
FLAG_UPDATE_CURRENT :Number

If the current pending intent already exists, only update the current intent's extra data.

Use with the flags property.

See PendingIntent.FLAG_UPDATE_CURRENT in the Android API Reference.


# FOREGROUND_SERVICE_TYPE_CAMERA

Availability
9.3.0
FOREGROUND_SERVICE_TYPE_CAMERA :Number

Allows the camera to be used while the app is in the background.

This constant is passed to the foregroundNotify method.

To use this constant, you must also set your <service/> element to the foregroundServieType attribute value as shown below.

<ti:app>
    <android>
        <services>
            <service url="<YourService.js>" android:foregroundServiceType="camera"/>
        </services>
    </android>
</ti:app>

See Google's ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA documentation for more details.


# FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE

Availability
8.3.0
FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE :Number

Allows connecting to Android Auto, bluetooth, TV or other devices while app is in the background.

This constant is passed to the foregroundNotify method.

To use this constant, you must also set your <service/> element to the foregroundServieType attribute value as shown below.

<ti:app>
    <android>
        <services>
            <service url="<YourService.js>" android:foregroundServiceType="connectedDevice"/>
        </services>
    </android>
</ti:app>

See Google's ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE documentation for more details.


# FOREGROUND_SERVICE_TYPE_LOCATION

Availability
8.3.0
FOREGROUND_SERVICE_TYPE_LOCATION :Number

Allows accessing location from the GPS, map, etc. while the app is in the background.

This constant is passed to the foregroundNotify method.

To use this constant, you must also set your <service/> element to the foregroundServieType attribute value as shown below.

<ti:app>
    <android>
        <services>
            <service url="<YourService.js>" android:foregroundServiceType="location"/>
        </services>
    </android>
</ti:app>

See Google's ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION documentation for more details.


# FOREGROUND_SERVICE_TYPE_MANIFEST

Availability
8.3.0
FOREGROUND_SERVICE_TYPE_MANIFEST :Number

A special value indicates to use all types set in manifest file.

This constant is passed to the foregroundNotify method.

See Google's ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST documentation for more details.


# FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK

Availability
8.3.0
FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK :Number

Allows music, video, news or other media playback while the app is in the background.

This constant is passed to the foregroundNotify method.

To use this constant, you must also set your <service/> element to the foregroundServieType attribute value as shown below.

<ti:app>
    <android>
        <services>
            <service url="<YourService.js>" android:foregroundServiceType="mediaPlayback"/>
        </services>
    </android>
</ti:app>

See Google's ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK documentation for more details.


# FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION

Availability
8.3.0
FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION :Number

Allows managing a media projection session for screen recording or taking screenshots while app is in the background.

This constant is passed to the foregroundNotify method.

To use this constant, you must also set your <service/> element to the foregroundServieType attribute value as shown below.

<ti:app>
    <android>
        <services>
            <service url="<YourService.js>" android:foregroundServiceType="mediaProjection"/>
        </services>
    </android>
</ti:app>

See Google's ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION documentation for more details.


# FOREGROUND_SERVICE_TYPE_MICROPHONE

Availability
9.3.0
FOREGROUND_SERVICE_TYPE_MICROPHONE :Number

Allows the microphone to be used while the app is in the background.

This constant is passed to the foregroundNotify method.

To use this constant, you must also set your <service/> element to the foregroundServieType attribute value as shown below.

<ti:app>
    <android>
        <services>
            <service url="<YourService.js>" android:foregroundServiceType="microphone"/>
        </services>
    </android>
</ti:app>

See Google's ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE documentation for more details.


# FOREGROUND_SERVICE_TYPE_NONE

Availability
8.3.0
FOREGROUND_SERVICE_TYPE_NONE :Number

The default foreground service type.

This constant is passed to the foregroundNotify method.

See Google's ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE documentation for more details.


# FOREGROUND_SERVICE_TYPE_PHONE_CALL

Availability
8.3.0
FOREGROUND_SERVICE_TYPE_PHONE_CALL :Number

Allows ongoing phone call or video conferencing access while the app is in the background.

This constant is passed to the foregroundNotify method.

To use this constant, you must also set your <service/> element to the foregroundServieType attribute value as shown below.

<ti:app>
    <android>
        <services>
            <service url="<YourService.js>" android:foregroundServiceType="phoneCall"/>
        </services>
    </android>
</ti:app>

See Google's ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL documentation for more details.


# IMPORTANCE_DEFAULT

Availability
7.0.0
IMPORTANCE_DEFAULT :Number

Used with Titanium.Android.NotificationChannel to specify an importance level.


# IMPORTANCE_HIGH

Availability
7.0.0
IMPORTANCE_HIGH :Number

Used with Titanium.Android.NotificationChannel to specify an importance level.


# IMPORTANCE_LOW

Availability
7.0.0
IMPORTANCE_LOW :Number

Used with Titanium.Android.NotificationChannel to specify an importance level.


# IMPORTANCE_MAX

Availability
7.0.0
IMPORTANCE_MAX :Number

Used with Titanium.Android.NotificationChannel to specify an importance level.


# IMPORTANCE_MIN

Availability
7.0.0
IMPORTANCE_MIN :Number

Used with Titanium.Android.NotificationChannel to specify an importance level.


# IMPORTANCE_NONE

Availability
7.0.0
IMPORTANCE_NONE :Number

Used with Titanium.Android.NotificationChannel to specify an importance level.


# IMPORTANCE_UNSPECIFIED

Availability
7.0.0
IMPORTANCE_UNSPECIFIED :Number

Used with Titanium.Android.NotificationChannel to specify an importance level.


Availability
3.2.0
NAVIGATION_MODE_STANDARD :Number

Standard Action Bar navigation mode.

Use with the navigationMode property. Note: NAVIGATION_MODE_STANDARD has been deprecated in API level 21 and up.


Availability
3.2.0
NAVIGATION_MODE_TABS :Number

Action Bar tab navigation mode.

Use with the navigationMode property. Note: NAVIGATION_MODE_TABS has been deprecated in API level 21 and up.


# PENDING_INTENT_FOR_ACTIVITY DEPRECATED

Availability
1.5
PENDING_INTENT_FOR_ACTIVITY :Number

DEPRECATED SINCE 2.0.0

Not used.


# PENDING_INTENT_FOR_BROADCAST DEPRECATED

Availability
1.5
PENDING_INTENT_FOR_BROADCAST :Number

DEPRECATED SINCE 2.0.0

Not used.


# PENDING_INTENT_FOR_SERVICE DEPRECATED

Availability
1.5
PENDING_INTENT_FOR_SERVICE :Number

DEPRECATED SINCE 2.0.0

Not used.


# PENDING_INTENT_MAX_VALUE DEPRECATED

Availability
1.5
PENDING_INTENT_MAX_VALUE :Number

DEPRECATED SINCE 2.0.0

Not used.


# PRIORITY_DEFAULT

Availability
3.6.0
PRIORITY_DEFAULT :Number

Default priority if it does not fit into another priority category.

Use with the priority property.

See also: Notification.PRIORITY_DEFAULT in the Android API Reference.


# PRIORITY_HIGH

Availability
3.6.0
PRIORITY_HIGH :Number

Use for high priority notifications like real-time chat messages.

Use with the priority property.

See also: Notification.PRIORITY_HIGH in the Android API Reference.


# PRIORITY_LOW

Availability
3.6.0
PRIORITY_LOW :Number

Use for low priority notifications like software updates.

Use with the priority property.

See also: Notification.PRIORITY_LOW in the Android API Reference.


# PRIORITY_MAX

Availability
3.6.0
PRIORITY_MAX :Number

Use for urgent or time-critical notifications, for example, turn-by-turn directions or emergency alerts.

Use with the priority property.

See also: Notification.PRIORITY_MAX in the Android API Reference.


# PRIORITY_MIN

Availability
3.6.0
PRIORITY_MIN :Number

Use for expired events.

Use with the priority property.

Note that the user will not be alerted to the notification (sound, vibration, etc.), but the notification will appear in the drawer.

See also: Notification.PRIORITY_MIN in the Android API Reference.


# R

Availability
1.5

Accessor for Android system resources.

To access your application's resources, use R.


# RESULT_CANCELED

Availability
1.5
RESULT_CANCELED :Number

Used with setResult to specify that an activity was canceled.


# RESULT_FIRST_USER

Availability
1.5
RESULT_FIRST_USER :Number

Used with setResult to specify a user-defined result.

User-defined result constants values start at RESULT_FIRST_USER.


# RESULT_OK

Availability
1.5
RESULT_OK :Number

Used with setResult to specify that an activity succeeded.


# SCREEN_ORIENTATION_BEHIND

Availability
1.5
SCREEN_ORIENTATION_BEHIND :Number

Use with requestedOrientation to specify the activity should run in the same orientation as the activity behind it in the activity stack.


# SCREEN_ORIENTATION_LANDSCAPE

Availability
1.5
SCREEN_ORIENTATION_LANDSCAPE :Number

Use with requestedOrientation to specify a landscape screen orientation.


# SCREEN_ORIENTATION_NOSENSOR

Availability
1.5
SCREEN_ORIENTATION_NOSENSOR :Number

Use with requestedOrientation to specify that the sensor should be ignored and the display should not rotate.


# SCREEN_ORIENTATION_PORTRAIT

Availability
1.5
SCREEN_ORIENTATION_PORTRAIT :Number

Use with requestedOrientation to specify a portrait screen orientation.


# SCREEN_ORIENTATION_SENSOR

Availability
1.5
SCREEN_ORIENTATION_SENSOR :Number

Use with requestedOrientation to specify that orientation should be determined by the orientation sensor.


# SCREEN_ORIENTATION_UNSPECIFIED

Availability
1.5
SCREEN_ORIENTATION_UNSPECIFIED :Number

Use with requestedOrientation to specify that the system should use its default rules for determining the best orientation.


# SCREEN_ORIENTATION_USER

Availability
1.5
SCREEN_ORIENTATION_USER :Number

Use with requestedOrientation to specify that the system should use the user's preferred orientation.


# SHOW_AS_ACTION_ALWAYS

Availability
3.0.0
SHOW_AS_ACTION_ALWAYS :Number

Always show this item as an action button in the action bar.

Use with the MenuItem's showAsAction property.


# SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW

Availability
3.0.0
SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW :Number

The action view can collapse to a normal menu item.

Use with the MenuItem's showAsAction property.


# SHOW_AS_ACTION_IF_ROOM

Availability
3.0.0
SHOW_AS_ACTION_IF_ROOM :Number

Show this item as an action button if the system decides there is room for it.

Use with the MenuItem's showAsAction property.


# SHOW_AS_ACTION_NEVER

Availability
3.0.0
SHOW_AS_ACTION_NEVER :Number

Never display this item as an action button in the action bar.

Use with the MenuItem's showAsAction property.


# SHOW_AS_ACTION_WITH_TEXT

Availability
3.0.0
SHOW_AS_ACTION_WITH_TEXT :Number

When this item is in the action bar, always show it with a text label.

Use with the MenuItem's showAsAction property.


# START_NOT_STICKY

Availability
1.5
START_NOT_STICKY :Number

A Service start mode indicating that if the host application is stopped by Android, the service should not be restarted automatically.

Use as a startMode value in the options object passed to createServiceIntent.


# START_REDELIVER_INTENT

Availability
1.5
START_REDELIVER_INTENT :Number

A Service start mode indicating that if the host application is stopped by Android, the service should be restarted automatically and the original Intent re-sent.

Use as a startMode value in the options object passed to createServiceIntent.


# STREAM_ALARM

Availability
1.5
STREAM_ALARM :Number

Use with audioStreamType to request that the alarm stream type for notifications be used.


# STREAM_DEFAULT

Availability
1.5
STREAM_DEFAULT :Number

Use with audioStreamType to request that the default stream type for notifications be used.


# STREAM_MUSIC

Availability
1.5
STREAM_MUSIC :Number

Use with audioStreamType to request that the music stream type for notifications be used.


# STREAM_NOTIFICATION

Availability
1.5
STREAM_NOTIFICATION :Number

Use with audioStreamType to request that the notification stream type for notifications be used.


# STREAM_RING

Availability
1.5
STREAM_RING :Number

Use with audioStreamType to request that the ring stream type for notifications be used.


# STREAM_SYSTEM

Availability
1.5
STREAM_SYSTEM :Number

Use with audioStreamType to request that the system stream type for notifications be used.


# STREAM_VOICE_CALL

Availability
1.5
STREAM_VOICE_CALL :Number

Use with audioStreamType to request that the voice call stream type for notifications be used.


# TILE_STATE_ACTIVE

Availability
7.0.0
TILE_STATE_ACTIVE :Number

QuickSettings tile is active.

The Tile is in enabled state and the user can interact with it.


# TILE_STATE_INACTIVE

Availability
7.0.0
TILE_STATE_INACTIVE :Number

QuickSettings tile is inactive.

The Tile is in disabled state, but the user can interact with it.


# TILE_STATE_UNAVAILABLE

Availability
7.0.0
TILE_STATE_UNAVAILABLE :Number

QuickSettings tile is unavailble.

For some reason the Tile is not avaialable to the user and will have no click action.


# URI_INTENT_SCHEME

Availability
1.5
URI_INTENT_SCHEME :Number

The URI scheme used for intent URIs.


# VISIBILITY_PRIVATE

Availability
3.6.0
VISIBILITY_PRIVATE :Number

Shows basic information about the notification.

Use with the visibility property.

Only the application name and icon appear in the lock screen with the message: "Contents hidden".

See also: Notification.VISIBILITY_PRIVATE in the Android API Reference.


# VISIBILITY_PUBLIC

Availability
3.6.0
VISIBILITY_PUBLIC :Number

Shows the notification's full content on the lockscreen. This is the system default if visibility is left unspecified.

Use with the visibility property.

See also: Notification.VISIBILITY_PUBLIC in the Android API Reference.


# VISIBILITY_SECRET

Availability
3.6.0
VISIBILITY_SECRET :Number

Shows the most minimal information of the notification on the lockscreen.

Use with the visibility property.

See also: Notification.VISIBILITY_SECRET in the Android API Reference.


# WAKE_LOCK_ACQUIRE_CAUSES_WAKEUP

Availability
6.2.0
WAKE_LOCK_ACQUIRE_CAUSES_WAKEUP :Number

Turn the screen on when the wake lock is acquired.

Use with the wakeLock property.

See also: PowerManager.ACQUIRE_CAUSES_WAKEUP in the Android API Reference.


# WAKE_LOCK_FULL

Availability
6.2.0
WAKE_LOCK_FULL :Number

Ensures that the screen and keyboard backlight are on at full brightness.

Use with the wakeLock property.

See also: PowerManager.FULL_WAKE_LOCK in the Android API Reference.


# WAKE_LOCK_ON_AFTER_RELEASE

Availability
6.2.0
WAKE_LOCK_ON_AFTER_RELEASE :Number

When this wake lock is released, poke the user activity timer so the screen stays on for a little longer.

Use with the wakeLock property.

See also: PowerManager.ON_AFTER_RELEASE in the Android API Reference.


# WAKE_LOCK_PARTIAL

Availability
6.2.0
WAKE_LOCK_PARTIAL :Number

Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off.

Use with the wakeLock property.

See also: PowerManager.PARTIAL_WAKE_LOCK in the Android API Reference.


# WAKE_LOCK_SCREEN_BRIGHT

Availability
6.2.0
WAKE_LOCK_SCREEN_BRIGHT :Number

Ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off.

Use with the wakeLock property.

See also: PowerManager.SCREEN_BRIGHT_WAKE_LOCK in the Android API Reference.


# WAKE_LOCK_SCREEN_DIM

Availability
6.2.0
WAKE_LOCK_SCREEN_DIM :Number

Ensures that the screen is on (but may be dimmed); the keyboard backlight will be allowed to go off.

Use with the wakeLock property.

See also: PowerManager.SCREEN_DIM_WAKE_LOCK in the Android API Reference.