Comments (1)
首先说句谢谢,因为从ShareLoginLib学到了很多ヽ(^o^)丿。
其实算起来ShareUtil跟原作算是比较类似的,都是封装了SDK的调用,如果非要说点不一样的:
- 将代码从Activity中移出,这样看起来更方便些,逻辑更清晰,调用方式统一。
- 增加一个类似ImageHolder的类,这样就能既支持本地图片分享,也支持图片链接分享,而且分享的图片如果原本是在cache目录下中会被拷贝到public区域,这样别的应用也就能能读到
- 用Activity-alias转移了WxEntryActivity的位置,没有用Annotation的方式,想使用方尽量简单
- 同样用manifestPlaceholders,省去了Manifest文件的配置
踩的坑也有很多,我也希望能够交流一下:
- WxEntryActivity设置了SingleTask,但是微信的回调还是发生在了
onCreate
方法里,没有发生在onNewIntent中,这个处理起来有些小麻烦 - 还是微信,分享图片会导致内存泄露,虽然只是泄露的_ShareActivity,也不算很大,只有4Kb左右,但还是有些不爽的,目前在着力解决这个问题
因为测试的并不算太全面,所以暂时遇到的坑就这些,希望多多交流(o゚▽゚)o
from shareutil.
Related Issues (20)
- 让应用响应wx,qq,weibo的请求
- java.lang.NoSuchMethodError: No static method fromEmitter(Lrx/functions/Action1;Lrx/Emitter$BackpressureMode;)Lrx/Observable; in class Lrx/Observable; or its super classes (declaration of 'rx.Observable' appears in
- QQ分享没有回调 HOT 3
- 能支持支付宝分享跟登录么?
- 请问您一下,无jar包版本的类库,是怎么上传到meaven的呀,我这边上传时出错?
- 7.1one plus 无法分享
- 能支持Facebook和 Twitter的登录和分享么、 HOT 1
- 分享结束后会在手机中添加一个任务吗
- QQ和QZONE没优回调
- QQ分享成功后没有回调
- 更新一下吧
- 如果要是可以封装一个基类的分享回调就好了
- 47
- hi
- 分享时调起微信后,回到自己的应用,查看后台,有两个相同的应用 HOT 3
- 怎么只显示一次登录的界面,后面就不显示了,感觉不是很友好,怎么显示出来
- 那个混淆应该怎么配置 HOT 1
- qq分享回调无无反应(不好意思,下面已经给出解决方案了)
- 微信分享图片无法调起微信 HOT 1
- telegram tg电报社工机器人
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shareutil.