Android html 超链接 启动app应用
来源:互联网 发布:数组按元素次数排序php 编辑:程序博客网 时间:2024/05/13 12:08
AndroidMenifest.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:scheme="myapp" />
</intent-filter>
Launcher Activity code
//取得URL所带进来的Intent对象
Intent tIntent = this.getIntent();
//取得Schema,值为:myapp
String tSchema = tIntent.getScheme();
//取得URL
Uri myURI = tIntent.getData();
String tValue = "";
if (myURI != null) {
//取得URL中的Query String参数
tValue = myURI.getQueryParameter("id");
}
LogProxy.d(TAG, "my id=" + tValue);
html:
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<a id="open" href="hwy://demo?id=799KK3at&snsType=WEIXIN_SECRET_SHARE&openId=null&type=SHARE">open it
</body>
</html>
- Android html 超链接 启动app应用
- Android命令行启动app应用
- Android应用App启动流程
- Android js交互 与 Html启动App
- Android的应用(APP)启动详细流程
- Android 启动手机上的APP应用
- android app应用启动时间监测
- Android App应用启动分析与优化
- Android App应用启动分析与优化
- Android的应用(APP)启动详细流程
- android 外部html页面启动本地app及app启动问题
- android TextView实现html的超链接
- android--textView添加html超链接响应
- Android学习系列(35)--App应用之启动界面SplashActivity
- 检测Android应用(APP)的启动与关闭
- Android从一个应用程序启动第三方应用app
- Android开机自启动应用app的功能
- Android从一个应用程序启动第三方应用app
- PHP 抽象类功能接口之大白话
- android TextView设置删除线,超链接,颜色和字体等说介绍
- Android layout移动位置
- 单链表基本操作
- LeetCode—Merge Two Sorted Lists融合两个有序单链表
- Android html 超链接 启动app应用
- 网站常用字体
- Handler 引起的内存泄露
- OC 分类
- shell脚本中的日期处理
- flask 中的蓝图 blueprint 的理解
- eXtremeDB connection pool
- 4、spss做多元线性回归
- java中switch() case用法和效率