加入收藏 | 设为首页 | 会员中心 | 我要投稿 焦作站长网 (https://www.0391zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

HTML5打开本地app应用的方法

发布时间:2020-03-13 11:31:17 所属栏目:MySql教程 来源:站长网
导读:这篇文章主要介绍了HTML5打开本地app应用的方法,如果你的手机上安装有支付宝,那么在访问支付宝手机网页时就会自动打开支付宝app,否则在页面上会提示你进行下

首先为了保证能够打开你的app,你必须要在androidManifest.xml中配置的filter中data的属性表述。<data android:pathprefix="/taoge/open" android:scheme="xttblog"></data> androidManifest.xml代码如下:

XML/HTML Code复制内容到剪贴板

<?xml version="1.0" encoding="utf-8"?>  

<manifest xmlns:android=""  

    package="com.taoge"  

    android:versionCode="2"  

    android:versionName="3.24.03" >  

    <uses-sdk  

        android:minSdkVersion="8"  

        android:targetSdkVersion="17" />  

    <application  

        android:allowBackup="true"  

        android:configChanges="orientation|screenSize"  

        android:icon="@drawable/logo"  

        android:label="@string/app_name"  

        android:logo="@drawable/logo"  

        android:sharedUserId="android.uid.system"  

        android:theme="@android:style/Theme.Light.NoTitleBar" >  

        <activity  

            android:name="xttblog.WelcomeActivity"  

            android:excludeFromRecents="true"  

            android:screenOrientation="portrait"  

            android:theme="@android:style/Theme.Light.NoTitleBar" >  

            <intent-filter>  

                <action android:name="android.intent.action.MAIN" />  

                <category android:name="android.intent.category.LAUNCHER" />  

            </intent-filter>  

            <intent-filter>  

(编辑:焦作站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读