Custom Intents

This Launcher feature invokes Android Intents during certain device or user actions.

Overview

Custom intents enable the integration of third-party applications with native applications to create more flexible, more cohesive, and more seamless communication between apps. Launcher has the ability to invoke Android Intents during certain device or user actions. These custom intents can occur at certain points in time, such as when the user logs in or out of the device.

User Guide

Each area is a collection of Custom Intent objects. Setting up the Custom Intent objects within the device will trigger multiple predefined sets of actions. These actions that will be performed or executed are those specified in the corresponding list of Custom Intent objects.

Feature Configuration

The Launcher configuration allows you to define the custom intents that will be performed or executed at certain processing points. Use the examples below as a guide:

Starting an Application

To start an application, use intent type "a" and supply the package name.

{
      "package": "com.android.calculator2",
      "typeIntent": "a"
}

After Login, start the calculator application:

"intents" : {
    "login" : [
        {
            "package": "com.android.calculator2",
            "typeIntent": "a"
        }
    ],
    "logout":[
    ],
    "postLogout":[

    ],
    "boot" : [],
    "uncradle": [],
    "cradle": [],
    "screenOn": [],
    "motionLockEnter" : [],
    "motionLockExit" : []    
  },

After Logout, start the battery application:

"intents" : {
    "login" : [
        {
            "package": "com.android.calculator2",
            "typeIntent": "a"
        }
    ],
    "logout":[
    ],
    "postLogout":[
         {
            "typeIntent" : "a",
            "package" : "com.symbol.batterymanager"
         }
    ],
    "boot" : [],
    "uncradle": [],
    "cradle": [],
    "screenOn": []
  },

Invoking an Action for an Application

To invoke an action for an application, use intent type "a", provide the action, and optionally the package name.

{
    "action": "com.bluefletch.ems.remotecontrol.ACTION_START",
    "package": "com.bluefletch.ems.emm.remoteagent",
    "class": "com.bluefletch.ems.remotecontrol.RemoteActivity",
    "flags" : 1,
    "typeIntent": "a"
}

Pausing Execution

To delay processing or pause execution before another intent is invoked, use the 'delay' intentType. Use type "d", and provide the delay, in milliseconds, within "data".

{
    "typeIntent": "d",
    "data": "5000"
}

Custom Intents was introduced in Launcher 2.6.x.

Last updated