TransactionTooLargeException 的原因

问题 适配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

Linux开启虚拟AP

安装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

Typecho-Android客户端开发

协议 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

WordPress XML-RPC wp接口文档

外边慢,备份下

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