Android Question Help Ok Google

Lucas Siqueira

Active Member
Licensed User
Hello, I've already visited the links below and can't get it to work.




can someone test and help me fix the following problem?

I want to search for names in my app ...

I've tried to tell him: ok google, search for john in power.

but the app doesn't seem to recognize search commands.

if someone can post an example of a project that works, it would be great!

sorry for my English.
 

Attachments

Lucas Siqueira

Active Member
Licensed User
In the google guide says that you have to add the intent ...


<activity android: name = ". SearchActivity">
<intent-filter>
<action android: name = "com.google.android.gms.actions.SEARCH_ACTION" />
<category android: name = "android.intent.category.DEFAULT" />
</intent-filter>
</activity>
 

Lucas Siqueira

Active Member
Licensed User
Have you tried to create such an Intentfilter?
how can I create an Intentfilter?

in the source code in the manifest I created one, but I don't know if it's correct ... Can you see if I'm doing something wrong?

if you can test the code, sometimes I am not able to talk to the app to do the search ...
 

Lucas Siqueira

Active Member
Licensed User
Thank you, I created, the manifest has:

AddActivityText(main,
<intent-filter>
<action android:name="com.google.android.gms.actions.SEARCH_ACTION"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>)

can you test the source code please?
 

Lucas Siqueira

Active Member
Licensed User
No, i canΒ΄t. I have totally diabled OK GOOGLE on my Device.

I suggest to try it by yourself.
Sorry, but already corrects the translation!

can you take a look at the documentation if i'm doing it wrong?



com.google.android.gms.actions.SEARCH_ACTION
 
Top