2014-02-20 30 views
1

我創建了一個應用程序。但問題是它將自己註冊爲瀏覽器。當在手機上,我點擊任何鏈接的選項顯示瀏覽器和我的應用程序。爲什麼這樣?爲什麼我的應用程序將自己註冊爲瀏覽器?

+2

你可以發佈你的AndroidManifest.xml嗎? – donfuxx

+0

你應該在提問時包含足夠的細節,否則你不得不面對「關閉」! –

回答

2

您的應用程序註冊的意圖過濾器用於處理http方案的意圖。

an example of building a custom browser on Lars Vogel's blog,這可以歸結爲:如果要禁用此行爲,從活動中刪除<intent-filter>標籤

<application android:icon="@drawable/icon" android:label="@string/app_name"> 
    <activity android:name=".BrowserActivitiy" 
       android:label="@string/app_name"> 
     <intent-filter> 
      <action android:name="android.intent.action.VIEW" /> 
      <category android:name="android.intent.category.DEFAULT" /> 
      <data android:scheme="http"/> 
     </intent-filter> 
    </activity> 
</application> 

2

你應該在你的Android 清單檢查意圖過濾器的一部分,你可能已經定義了一個意圖過濾器來瀏覽

+0

好的我檢查一下,然後轉回給你,謝謝 – user3086226

相關問題