How to open an android application from browser

58 views Asked by At

The schema given is "desk://" to my application.How can i open my application when I call this from my browser?I went through many sites but could not properly come to a conclusion.

1

There are 1 answers

0
Zack Matthews On BEST ANSWER

I was able to accomplish what your asking with my personal website by adding the following elements to my Activity's Intent Filter in my Manifest:

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data
                    android:host="zackmatthews.com"
                    android:pathPrefix="/projects/"
                    android:scheme="http" />
            <data
                android:host="www.zackmatthews.com"
                android:pathPrefix="/projects/"
                android:scheme="http" />

This produced the following output when clicking a link to my projects page: Open with dialog