Reputation: 4007
I have read all the other posts on doing this but none have solved my problem. Obviously the scheme has to be http for the link otherwise it is not clickable in the sms.
if I use what others have posted and i click on an http link i get offered:
open url, add to bookmarks, copy message text
if I open the URL, I just get the option to choose a browser, nothing else.
I need it to open the application, not give browser options.
Please help.
XML:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.testapp"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.catagory.DEFAULT"/>
<category android:name="android.intent.catagory.BROWSABLE"/>
<data android:scheme="http" android:host="starttestapp.com"/>
</intent-filter>
</activity>
</application>
Upvotes: 5
Views: 1511
Reputation: 46
If you copy pasted your code, then you have a spelling error:
catagory should be category like this:
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
Upvotes: 3