私はこれを行うことに関する他のすべての投稿を読みましたが、どれも私の問題を解決していません。明らかに、スキームはリンクのhttpである必要があります。そうでない場合、SMSでクリックできません。
他の人が投稿したものを使用して、httpリンクをクリックすると、次のように表示されます。
URLを開き、ブックマークに追加し、メッセージテキストをコピーします
URLを開くと、ブラウザを選択するオプションが表示されます。他には何もありません。
ブラウザオプションを提供するのではなく、アプリケーションを開くために必要です。
助けてください。
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>