How to navigate system voice action to my activity?
up vote
0
down vote
favorite
Android is giving support for launching custom activity for some system actions using voice command. What i need is whenever user says "Ok Google, Call Robert", my application activity should be launched or my application should be listed out to complete that call action. How can I achieve this?
Here is how i configured call intent
manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.callintent">
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.CALL"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
But no use, every time it is using the default dialer, also not giving complete action dialog.
android google-voice-actions
add a comment |
up vote
0
down vote
favorite
Android is giving support for launching custom activity for some system actions using voice command. What i need is whenever user says "Ok Google, Call Robert", my application activity should be launched or my application should be listed out to complete that call action. How can I achieve this?
Here is how i configured call intent
manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.callintent">
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.CALL"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
But no use, every time it is using the default dialer, also not giving complete action dialog.
android google-voice-actions
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Android is giving support for launching custom activity for some system actions using voice command. What i need is whenever user says "Ok Google, Call Robert", my application activity should be launched or my application should be listed out to complete that call action. How can I achieve this?
Here is how i configured call intent
manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.callintent">
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.CALL"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
But no use, every time it is using the default dialer, also not giving complete action dialog.
android google-voice-actions
Android is giving support for launching custom activity for some system actions using voice command. What i need is whenever user says "Ok Google, Call Robert", my application activity should be launched or my application should be listed out to complete that call action. How can I achieve this?
Here is how i configured call intent
manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.callintent">
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.CALL"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
But no use, every time it is using the default dialer, also not giving complete action dialog.
android google-voice-actions
android google-voice-actions
edited 2 days ago
Kling Klang
32.1k156287
32.1k156287
asked 2 days ago
Anbarasu Chinna
479217
479217
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373537%2fhow-to-navigate-system-voice-action-to-my-activity%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown