An Android app can be launched after an event trigger by providing the package name in the launch app action.
Custom intents can be launched by providing the data required for the Android Intent. Supported data includes:
Name | Example | Description |
---|---|---|
action |
android.intent.action.VIEW |
The Android action to perform. |
data |
http://www.example.com/ |
Data to provide for the action. (optional) |
category |
android.intent.category.LAUNCHER |
The category of the event. (optional) |
package |
com.android.chrome |
The package name for the Intent handling class. (optional) |
type |
text/plain |
Content type of the data. (optional) |
Extra intent data is application specific. Data names must not contain dots. Extra intent data is automatically added prefixed with android.intent.extra.
. For example, TEXT
will add android.intent.extra.TEXT
to the extras of the intent.
Example for launching Chrome to display web page
Custom
action |
android.intent.action.VIEW |
data |
http://www.example.com/ |
package |
com.android.chrome |
Example for printing using QuickPrinter
Custom
action |
pe.diegoveloper.printing |
type |
text/plain |
Extras
TEXT |
<BIG>Text Title<BR>Testing <BIG>BIG<BR><BIG><BOLD>string <SMALL> text<BR><LEFT>Left aligned<BR><CENTER>Center aligned<BR><UNDERLINE>underline text<BR><QR>12345678<BR><CENTER>QR: 12345678<BR>Line<BR><LINE><BR>Double Line<BR><DLINE><BR><CUT> |
Resuming digital signage
The resume delay will be used to automatically restart DS Loader and the configured digital signage player software after a period of time.
For more flexibility, the custom app could manually launch DS Loader. This can be be achieved by adding the following Android intent to the custom app:
Intent launchIntent = getPackageManager().getLaunchIntentForPackage("net.targetr.stacks.central");
startActivity(launchIntent);
Comments
0 comments
Please sign in to leave a comment.