上一页 1 2 3 4 5 6 ··· 9 下一页
  2014年10月25日
摘要: 1.Authentication Error errorcode: 102 uid: null appid -1 msg 这个错误说明你的当前运行的签名和百度申请的key不同2.Authentication Error errorcode: -1 uid: -1 appid -1 msg ........ 阅读全文
posted @ 2014-10-25 10:54 冲锋的路上的兵 阅读(492) 评论(0) 推荐(0) 编辑
  2014年9月24日
摘要: 今天碰到一个服务在配置文件里android:process=":updataService" 是个独立的线程在Application里我有个SharedPreferences统一管理单例工具,当我在Service里访问并设置了一个SP(发现会new这个SP工具!!!)但在Application反问时... 阅读全文
posted @ 2014-09-24 17:14 冲锋的路上的兵 阅读(254) 评论(0) 推荐(0) 编辑
  2014年8月9日
摘要: 把这两个功能封装起来,经常使用到。private static Uri photoUri; public static final int NONE = 0; public static final int PHOTOHRAPH = 1;// 拍照 public static final int P... 阅读全文
posted @ 2014-08-09 11:02 冲锋的路上的兵 阅读(450) 评论(0) 推荐(0) 编辑
  2014年7月29日
摘要: Gson解析json 先定义好一个对象,对象的成员类型都已经确定,如果json数据里的类型不对,这样直接报错。如果json数据放回 {“reslult”:["xxx","xxx"]} 对象定义是个数组即可解析出来,如果遇到“result” 为空?({“reslult”:null})怎么办?Gson解... 阅读全文
posted @ 2014-07-29 18:44 冲锋的路上的兵 阅读(307) 评论(0) 推荐(0) 编辑
  2014年7月14日
摘要: private class SimpleView extends ImageView{ int point_x; int point_y; int radius = 0; public SimpleView(Context c... 阅读全文
posted @ 2014-07-14 10:22 冲锋的路上的兵 阅读(447) 评论(0) 推荐(0) 编辑
  2014年7月2日
摘要: 在使用ThinkPHP中第一个简单hello word,应该没有问题。当在Controller文件新建个控制器展示个View时 需要注意:1.你写的控制器的类名必须是:xxx.class.php2.控制器里的的方法名对应的就是 界面(View下对应的xxx控制器名称)。例如: 这个Head控制器对... 阅读全文
posted @ 2014-07-02 13:00 冲锋的路上的兵 阅读(1383) 评论(0) 推荐(0) 编辑
  2014年6月30日
摘要: php5.0 连接数据 用之前的方法$con=mysqli_connect("localhost","my_user","my_password","my_db"); 总是出现Warning!请使用 PDO 和 mysqli .那我就改写用 mysqli$conn = new mysqli(“lo... 阅读全文
posted @ 2014-06-30 13:43 冲锋的路上的兵 阅读(539) 评论(0) 推荐(0) 编辑
  2014年6月26日
摘要: String w = "The quick fox jumps over the lazy dog"; int start = w.indexOf('q'); int end = w.indexOf('k') + 1; Spannab... 阅读全文
posted @ 2014-06-26 16:15 冲锋的路上的兵 阅读(151) 评论(0) 推荐(0) 编辑
  2014年5月22日
摘要: 直接上代码做记录,不多说gird.post(new Runnable() { @Override public void run() { gird.setSelection(0); } });mPull... 阅读全文
posted @ 2014-05-22 17:13 冲锋的路上的兵 阅读(428) 评论(0) 推荐(0) 编辑
  2014年5月21日
摘要: 把一些资源文件存在assets下用openFd打开文件有些文件会遇到错误原因是“文件不能打开,可能被压缩了”,网络搜索了许多,没有发现很好的解决方法。http://stackoverflow.com/questions/10141251/android-getassets-openfd-and-fi... 阅读全文
posted @ 2014-05-21 16:21 冲锋的路上的兵 阅读(449) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页