I’d like to register an intent filter so that the “View work address” action in the People app can launch my app – but what is that intent ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After searching all day through the Contacts source code, I came up with the following solution:
I then went to the documentation to find out what I should have gotten…
http://developer.android.com/guide/appendix/g-app-intents.html
As you can imagine, I was shocked not to see a “geo” scheme used. (which explains why I couldn’t find the geo URI in the source code).
EDIT: I am trying to implement the app’s intent-filter; it’s not so easy to hack this…
this works – but it also captures intents other than “View work address” (which is not good)
EDIT 2: this is the best intent-filter I can come up with for this scenario
EDIT 3: I can do better … this is the EXACT intent filter to use