What I am desperately trying to achieve is to launch my app when the user clicks on a link sent by email. The user will open his/her android gmail app (as of today version is 2.3.6 in my 2.3.3 Android phone) and instructed to follow the link so that my app can be launched and start working.
I have already read tons of documentation from the developer corner in the android site and also similar questions here in SO and have of course used google-fu, but no working answer has been given to date, not even from the Android crew itself which in fact is using SO as the de facto Q/A place.
I have tried putting in the manifest file this config:
<activity android:name=".MyApp" > <intent-filter> <action android:name="com.my.actions.MY_CUSTOM_ACTION" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> </intent-filter> </activity></code>
It didn't work so i also tried to write my custom scheme even though hackbod says not to, but also that didn't work at all. Another option is to have a custom website so that a "data" tag could be used in the intent-filter specifying an http scheme and the host, but this is a show stopper for a lot of people that don't have a website.
Maybe I am missing something. Is is possible at all what I am doing? i.e.: Is is possible to launch an activity from a link written in an email from the gmail android app?. If it is, what structure/syntax such link has to follow?. I can't believe this can be so strange. It's used in BB and iOS without any problems.
Any help appreciated. Thanks in advance.