Launching Android Application from link or email
Instead of using a custom scheme, you can have an <intent-filter>
that identifies a URL that you control:
<intent-filter> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.BROWSABLE"/> <data android:host="www.this-so-does-not-exist.com" android:path="/something" android:scheme="http"/></intent-filter>
Then, links to http://www.this-so-does-not-exist.com/something
will bring up your app (in a chooser, along with the Web browse) on devices that have your app, and will bring up your Web page on devices that do not have your app.
<activityandroid:name=".SplashEmailActivity"android:screenOrientation="portrait"android:exported="true"android:launchMode="singleInstance" android:configChanges="orientation|keyboard|keyboardHidden|screenSize"android:windowSoftInputMode="stateHidden|adjustResize" ><intent-filter><action android:name="android.intent.action.VIEW" /><category android:name="android.intent.category.DEFAULT" /><category android:name="android.intent.category.BROWSABLE" /><data android:scheme="http" android:host="your.domain.name"/></intent-filter></activity>