Protocol not supported android

5.8k Views Asked by At

Im getting this error when trying to get links to launch my activity from the browser

08-24 16:38:13.877: ERROR/Tab(358): onReceivedError -10 wizi://logout The protocol is not supported.

<activity android:name="UrlActivity">

<intent-filter>
<category android:name="android.intent.category.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"/> 
<category android:name="android.intent.category.LAUNCHER"/> 
<data android:scheme="wizi" />

</intent-filter>
</activity>

this error is being thrown before onCreate() is called on UrlActivity,can anybody see what I'm doing wrong?

2

There are 2 best solutions below

0
On

Are you using HTTPS protocol in any of your links? If so, you need to accept the certificate then. Make sure the protocol identifier is correct in your urls.

9
On

Try giving both the scheme and the host -

<data android:scheme="wizi" android:host="logout"/>