摘要: /** 判断网络是否可用*/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 优化设计 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 使用了android:launchMode="singleTask"模式,改为标准即可。通过 为知笔记 发布 阅读全文
posted @ 2012-06-12 11:36 优化设计 阅读(487) 评论(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 优化设计 阅读(389) 评论(0) 推荐(0) 编辑