Voice action cannot find my application

I am trying to add voice action to mine music app. When I do a voice action and say:

Play Someone like you

enter image description here

Google voice search recognized that this is a song and it allows the user to choose which applications should open this intention (including my application). When I clicked on my application, I got the name sony, as expected.

I noticed that I can say:

Play Someone like youonGoogle Music

enter image description here

This will allow Google voice search to open Google Music directly, after a short timeout.

= - = - =

So, what does not work, I can not use Play [Music] on [My App]; this will give me google search result.

enter image description here

, , - , Play [Music] on [My App] ?

:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.github.kylelam.musicvoiceaction" >

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >
        <intent-filter>

            <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
            <category android:name="android.intent.category.DEFAULT" />


            <action android:name="android.intent.action.MAIN" />


            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

</manifest>
+4

All Articles