Android调用系统shareAPI实现分享转发功能

上传者: qq15577969 | 上传时间: 2020-04-06 03:08:11 | 文件大小: 1.32MB | 文件类型: ZIP
在开发APP过程中,一般都需要实现分享转发,比如分享到QQ、微信等,这里我使用的是安卓系统自带的shareAPI,可以直接通过ResolveInfo获取手机中所有提供分享接口的应用,从而实现分享功能。 具体实现代码,请看博客文章: https://blog.csdn.net/qq15577969/article/details/82725897

文件下载

资源详情

[{"title":"( 58 个子文件 1.32MB ) Android调用系统shareAPI实现分享转发功能","children":[{"title":"分享转发","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 877B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"layout","children":[{"title":"share_dialog.xml <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"appinfo_item.xml <span style='color:#111;'> 973B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-ldpi","children":null,"spread":false},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 263B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"shape_circle_dialog_bg.xml <span style='color:#111;'> 536B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'> 203B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'> 277B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 229B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"t20","children":[{"title":"sharedemo","children":[{"title":"MainActivity.java <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"view","children":[{"title":"SharePopupWindow.java <span style='color:#111;'> 5.03KB </span>","children":null,"spread":false}],"spread":true},{"title":"entity","children":[{"title":"AppInfo.java <span style='color:#111;'> 937B </span>","children":null,"spread":false}],"spread":true},{"title":"util","children":[{"title":"ShareUtil.java <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false}],"spread":true},{"title":"adapter","children":[{"title":"AppInfoAdapter.java <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"t20","children":[{"title":"sharedemo","children":[{"title":"view","children":[{"title":"SharePopupWindow.class <span style='color:#111;'> 4.60KB </span>","children":null,"spread":false},{"title":"SharePopupWindow$2.class <span style='color:#111;'> 860B </span>","children":null,"spread":false},{"title":"SharePopupWindow$1.class <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"entity","children":[{"title":"AppInfo.class <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"BuildConfig.class <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 663B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"util","children":[{"title":"ShareUtil.class <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false}],"spread":false},{"title":"R$layout.class <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 464B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 608B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 469B </span>","children":null,"spread":false},{"title":"adapter","children":[{"title":"AppInfoAdapter$ViewHolder.class <span style='color:#111;'> 918B </span>","children":null,"spread":false},{"title":"AppInfoAdapter.class <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false}],"spread":false},{"title":"R$menu.class <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 458B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 450B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"dexedLibs","children":[{"title":"android-support-v4-54b3e3d204a49e43df590f4b555619de.jar <span style='color:#111;'> 206.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 877B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"classes.dex <span style='color:#111;'> 616.71KB </span>","children":null,"spread":false},{"title":"分享转发.apk <span style='color:#111;'> 255.99KB </span>","children":null,"spread":false},{"title":"resources.ap_ <span style='color:#111;'> 42.46KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 543.16KB </span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 848B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"t20","children":[{"title":"sharedemo","children":[{"title":"R.java <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false},{"title":"BuildConfig.java <span style='color:#111;'> 159B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明