Thursday, May 23, 2013

[android-developers] How to recognize the app was called as a result of a voice action?

You can (since 4.1 I think) go to Voice Search and say "Open app app_name_here" and the app will be launched.

How can I recognize in my app (in Application or Activity) that it was launched as a result of such action?

I tried inspecting getCallingActivity(), getCallingPackage(), getExtras(), but they are all null.

Thanks,
Andre

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment