问题 适配7.0时发生了TransactionTooLargeException的异常.
原因 1.Fragment关闭时会调用onSaveInstanceState,而在onSaveInstanceState中保存了比较大的数据.
2.调用fragment.setArguments(bundle)时,往bundle中放了过大的数据,FragmentManager管理Fragment时saveState报错.
解决方法 由于保存的数据较多,无法确定那个数据比较大,最后使用这个库_toolargetool_定位到数据较大的对象.
将_toolargetool_引入到项目
在Application中初始
这个库会在每次关闭Activity,Fragment时,打印出onSaveInstanceState的对象及大小.如图
查找log中较大的对象,进行相应的处理即可.比如保存到数据库,缩小对象等
相关链接 https://github.com/guardian/toolargetool
安装create_ap pacman -S create_ap
增加一个虚拟网络接口并设置一个mac地址 sudo iw dev wlp3s0 interface add wlp3s0_ap type __ap
sudo ip link set dev wlp3s0_ap address 04:e2:b9:17:18:72
创建AP sudo create_ap -c 11 wlp3s0_ap wlp3s0 xfans_ap 321321321
create_ap下载 https://github.com/oblique/create_ap
参考 https://wiki.archlinux.org/index.php/Software_access_point_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
https://www.zhihu.com/question/24961490
协议 XML-RPC_wp协议:https://codex.wordpress.org/XML-RPC_wp 地址:http://xxxx.com/xmlrpc Typecho XML-RPC协议:https://github.com/typecho/typecho/blob/master/var/Widget/XmlRpc.php#L2249-L2322 Demo XML-RPC_wp协议Demo:https://github.com/xfans/android-xmlrpc1 Typecho XML-RPC返回数据:IXR/Value.php
查找可用内核 pacman -Ss linux-headers
安装 pacman -S linuxXY linuxXY-headers
注意:XY为你要安装的版本号,如:
pacman -S linux49 linux49-headers
外边慢,备份下
wp.getUsersBlogs
Retrieve the blogs of the users.
Parameters
- string username
- string password
Return Values
- array
- struct
- boolean isAdmin
- string url
- string blogid
- string blogName
- string xmlrpc
地址:http://bigbadaboom.github.io/androidsvg/use_with_ImageView.html
Github:https://github.com/BigBadaboom/androidsvg