android - Launch Intent from URL not working -


i made test android app trying have launch when browser hits url "blargh://yolo". not working; instead browser google search.

it brand new project created eclipse/adt; thing i've edited manifest, below:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.example.testurlscheming"     android:versioncode="1"     android:versionname="1.0" >      <uses-permission android:name="android.permission.internet"/>      <uses-sdk         android:minsdkversion="8"         android:targetsdkversion="17" />      <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/apptheme" >         <activity             android:name="com.example.testurlscheming.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="blargh" />             </intent-filter>          </activity>     </application> 

some web browsers, aosp browser app, treat address bar differently hyperlinks. hyperlinks route through check handles action_view url. address bar assumed relevant browser app; if not recognize it, conducts search, if had typed blargh yolo.

do know if works redirect?

i hope so. however, may browser-dependent. hope browser makers follow lead of browser (and, on time, chrome), that's not guaranteed.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -