开发Android browser浏览器,经常会遇到几个绕不过去的问题,现在回过头来,主要有几个问题点:
http://blog.csdn.net/a704755096/article/details/46608335
1,点击外部链接调用自己的浏览器
在manifest.xml里主activity另外增加intent-filter :
- - 1.For these schemes were not particular MIME type has been
- supplied, we are a good candidate. -->
- <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="http" />
- <data android:scheme="https" />
- <data android:scheme="about" />
- <data android:scheme="javascript" />
- </intent-filter>
- <!-- 2.For these schemes where any of these particular MIME types
- have been supplied, we are a good candidate. -->
- <intent-filter>
- <action android:name="android.intent.action.VIEW" />
- <category