在要被启动的activity下加上
-----------Manifest.xml-----------
<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:host="test.com"
android:pathPrefix="/myapp"
android:scheme="company05" />
</intent-filter>-----------test.html-----------
<script type="text/javascript">
function openApp(url) {
this.document.location.href = url;
}
openApp("company05://test.com/myapp");
</script>

本文介绍了如何在Android应用的Manifest.xml中配置自定义域名来启动特定的Activity,并通过test.html文件进行页面跳转。
2180

被折叠的 条评论
为什么被折叠?



