06 2012 档案

摘要:使用了android:launchMode="singleTask"模式,改为标准即可。通过 为知笔记 发布 阅读全文
posted @ 2012-06-12 11:36 优化设计 阅读(491) 评论(0) 推荐(0)
摘要:/** 判断网络是否可用*/public static boolean isNetworkAvailable(Context ctx) {try {ConnectivityManager cm = (ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE);NetworkInfo info = cm.getAct... 阅读全文
posted @ 2012-06-12 11:36 优化设计 阅读(220) 评论(0) 推荐(0)
摘要:在AndroidManifest.xml里面选择那个acitivity, 把他的window soft input mode设置成stateHidden和adjustUnspecified如:Java代码 <activity android:name=".ClientSearchViewActivity" android:label="@string/app_name" android:s... 阅读全文
posted @ 2012-06-12 11:35 优化设计 阅读(419) 评论(0) 推荐(0)
摘要:Java中已经有不少的JSON工具,功能都很强大,可配置性很强。FastJSON虽然功能不如Json Lib等强大,但将对象转换为JSON,及反向操作都没有这个类简单。FastJSON,速度快,只需一行代码即可将类轻松转换为JSON字符串。FastJSON:http://119.38.217.15/wiki/display/fastjson/Examplesimport com.alibaba.fastjson.JSON;public class FastJson { public static void main(String[] args) { User u = new... 阅读全文
posted @ 2012-06-08 13:26 优化设计 阅读(585) 评论(0) 推荐(0)