Android App Actions

App Actions feature lets the users launch a specific feature in your app using the Google Assistant. By enabling Android App Actions to extend your app, users can easily deep link into your apps via the Assistant by simply speaking a request to the Assistant. If the user has your app already installed, the Assistant triggers deep linking when users say an invocation phrase that includes your app name, such as ”Ok Google, order a pizza from the Pizza app”.

The Android operating system has provided some built-in actions for the ease of developers.

As an example we can see this :actions.intent.ORDER_MENU_ITEM, an action to order something.

Similarly, we can check other actions as well.

To enable App Actions, you add an actions.xml file to your Android app project that tells Google what built-in intents your app supports.

Actions will run on devices back till Android 5 (API level 21). The recommended OS version is Android 8 (API level 26) or higher.

Integrating an Action in your app

Create a new actions.xml file in your res/xml directory.

Here’s an example(to book a taxi) of an actions.xml with an Action that is fulfilled using an App Links URL:

Once created, reference your actions.xml file from your AndroidManifest.xml file using a <meta-data> tag:

Key features and capabilities

  • Deep linking into Android apps
  • Android Slice triggering
  • Built-in intents for app categories
  • App Actions test tool

 

Credits

. . .

Comment

Add Your Comment

Be the first to comment.

css.php
Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again
Close