在应用里添加关注微信公众账号功能
在应用里添加关注微信公众账号功能
1,点击微信公众账号桌面的快捷方式,查看打印的log信息,如:
2,取其中action 及flag参数,以下六行代码即可实现。
Intent intent = new Intent();intent.setClassName("com.tencent.mm", "com.tencent.mm.ui.LauncherUI");
intent.addFlags(0x14000000);
intent.setAction("gh_xxxxx");
intent.putExtra("LauncherUI_From_Biz_Shortcut", true);
startActivity(intent);
最新文章
- oracle中 rownum和rowid的用法
- Platforms
- 公布C#写的网游外挂源代码
- 微软上海招 Principal Manager!
- principal java
- html怎么多行超出省略号,css+js 如何实现多行文字超出显示省略号(需要同时兼容ie chrome等浏览器)...
- mmap例子详解
- anchor的用法
- SAP 启动物料帐后不可更改物料价格的处理方法
- Linux中EXT3与EXT4的区别!
- YumRepo Error: All mirror URLs are not using ftp, http[s] or file解决办法
- 网上订餐系统1
- SAR成像系列:【3】合成孔径雷达(SAR)的二维回波信号与简单距离多普勒(RD)算法 (附matlab代码)
- [机器学习算法]支持向量机SVM原理简介
- 前端必备:五大css自动化生成网站(稀有级别!)
- 【Spring Boot JPA】ManyToOne OneToMany学习笔记
- PHP使用header实现文件下载功能