Launch an android application via web link
<p>I want to launch my own application when the web link in browser is clicked.
I search a lot on internet,and the method of solving this question is similar.
But mine does't work. There is no effect when i click the web link
Is there some other things i don't notice?
Can anyone tell me where my application is wrong?Thank you</p>

<p>Here is my program:</p>

<p>the link is:
    google</p>

<p>URLApp.java:</p>

<pre><code>public class URLApp extends Activity {
/** Called when the activity is first created. */

public void OnCreate(Bundle savedInstanceState){
    super.onCreate(savedInstanceState);

    final Intent intent = getIntent();
    final Uri uri = intent.getData();

    Log.i("++++++++++++++++++++++", uri.getScheme().toString());
}
}
</code></pre>

<p>AndroidManifest.xml:</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.receiver"
android:versionCode="1"
android:versionName="1.0" &gt;

&lt;uses-sdk android:minSdkVersion="8" /&gt;
&lt;uses-permission android:name="android.permission.INTERNET"/&gt;

&lt;application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" &gt;
    &lt;activity
        android:name=".URLApp"
        android:label="@string/app_name" 
        android:launchMode="singleTask"&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"&gt;&lt;/data&gt;
            &lt;data android:host="www.google.com"&gt;&lt;/data&gt;
        &lt;/intent-filter&gt;   
    &lt;/activity&gt;
&lt;/application&gt;
&lt;/manifest&gt;
</code></pre>

<p>Edit:
After i define my own URL scheme,the program works.
My own web link is</p>

<pre><code>&lt;a href="myapp://test"&gt;click me!&lt;/a&gt;
&lt;data android:scheme="myapp"&gt;&lt;/data&gt;
</code></pre>

<p>Why it does not work by using android:scheme="http"
Does anyone have the same problem?</p>
