Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy is my Activity not being launched by URL?
    primarykey
    data
    text
    <p>I realize there are several similar questions, but none of the accepted answers are working for me. As part of an oauth process I want a browser redirect to launch my activity. As I've seen everywhere, I have set up an intent-filter that supposedly does that:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.codesta.test" android:versionCode="1" android:versionName="1.0"&gt; &lt;uses-sdk android:minSdkVersion="7" /&gt; &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt; &lt;activity android:name=".BrowsableActivity" android:label="@string/app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.VIEW"/&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;category android:name="android.intent.category.BROWSABLE" /&gt; &lt;data android:scheme="http" android:host="oauth.android.mydomain.com" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>However when I open the browser and enter <a href="http://oauth.android.mydomain.com" rel="noreferrer">http://oauth.android.mydomain.com</a> I get the "web page not available" error page. I also tried defining my own scheme (which I've read is not generally recommended) but that didn't work either.</p> <p>I am targeting api level 7 and have tested the code on emulated devices running 2.1 and 2.2 without success. Any help would be greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload