こんにちは。Androidアプリ開発初心者の者です。
この度、URLスキームを使ってWebviewからアプリを起動したいため
下記設定をしたところ、 net::ERR_UNKNOWN_URL_SCHEME のエラーが出て一向に進めないでおります。
設定箇所:
Android Manifest:
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.schemetes" android:versionCode="1" android:versionName="1.0" >
</manifest><uses-sdk android:minSdkVersion="19" android:targetSdkVersion="22" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".MainActivity" android:label="@string/app_name" > <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.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE"/> <data android:scheme="myapp" android:host="simple" /> </intent-filter> </activity> </application>
マニフェストに上記のスキームを設定した上で、
<html> <head> <meta name="viewport" content="width=device-width, user-scale=yes, initial-scale=1.0, maximum-scale=5.0" /> </head> <body> <p>テストページ</p> <a href="myapp://simple">TEST Link</a> </body> </html>WebView内にてこちらの処理を記述し、アプリ起動を試みておるのですが
エラーが出てしまい解決出来ないままでおります。ご教授頂けると幸いです。
宜しくお願い致します。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。