摘要: 1、重写onSaveInstanceState方法 protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); } 2、在onCreate方法中判断(Bundle savedIn 阅读全文
posted @ 2018-03-06 12:18 鱼一的记忆 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 1、Http请求:get方式 解析传入参数: 2、Http请求 :post方式 关于Content-Type类型特别说明,相关连接http://blog.csdn.net/blueheart20/article/details/45174399 阅读全文
posted @ 2017-03-27 17:36 鱼一的记忆 阅读(128) 评论(0) 推荐(0) 编辑
摘要: public class ContextUtils { private static Context applicationContext = null; public static Context getApplicationContext() { if (null != applicationContext) { return app... 阅读全文
posted @ 2017-03-27 17:24 鱼一的记忆 阅读(505) 评论(0) 推荐(0) 编辑
摘要: private boolean isNetworkConnected(Context context) { ConnectivityMannger cManager = (ConnectivityMannger)context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo nInfo = cManager.... 阅读全文
posted @ 2017-03-27 12:03 鱼一的记忆 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 成员属性类: 逻辑方法类: 测试类:控制器:根据不同的功能调用不同的方法 阅读全文
posted @ 2016-08-04 11:16 鱼一的记忆 阅读(653) 评论(1) 推荐(1) 编辑