06 2013 档案

判断当前显示的是否是桌面
摘要:boolean isHome = isHome(context, getHomes(context));private static List getHomes(Context context) { List names = new ArrayList(); PackageManag... 阅读全文

posted @ 2013-06-28 09:33 bwlcool 阅读(124) 评论(0) 推荐(0)

判断是否有响应Intent的app
摘要:/** * 获取能启动intent的app信息 * * @param context * @param intent * @return */ public static List getAppsForIntent(Context context, Intent inten... 阅读全文

posted @ 2013-06-27 18:27 bwlcool 阅读(155) 评论(0) 推荐(0)

android显示和隐藏键盘
摘要:public class KeyboardUtil { public static void hideSoftInput(Activity acitivity) { InputMethodManager imm = (InputMethodManager) acitivity .ge... 阅读全文

posted @ 2013-06-27 18:20 bwlcool 阅读(165) 评论(0) 推荐(0)

正则表达式判断身份证和提取生日
摘要:public class IDCardUtil { public static boolean isValidIdCard(String idCard) { if (idCard == null) { return false; } Pattern p = Pattern.comp... 阅读全文

posted @ 2013-06-27 18:17 bwlcool 阅读(3556) 评论(0) 推荐(0)

JNI Local Reference Changes in ICS
摘要:http://android-developers.blogspot.com/2011/11/jni-local-reference-changes-in-ics.html这个网址fanqiang才能访问。下面是复制的内容 JNI Local Reference Changes in ICS... 阅读全文

posted @ 2013-06-27 17:34 bwlcool 阅读(209) 评论(0) 推荐(0)

实现类似微信的activity切换动画
摘要:1、首先定义4个动画文件。slide_left_in.xml slide_left_out.xml slide_right_in.xml slide_right_out.xml 2、定义一个style3、把定义的style放到AppTheme里边4、在AndroidM... 阅读全文

posted @ 2013-06-25 14:27 bwlcool 阅读(189) 评论(0) 推荐(0)

android httpclient 管理cookie
摘要:自带的CookieStore只能在内存里边管理cookie,但是有的时候需要把cookie保存到文件里边。为了长久保存cookie,自定义了BasicCookieStore,当添加cookie的时候,都保存到数据库,初始化的时候再从数据里边恢复cookie。1、自定义的CookieStore... 阅读全文

posted @ 2013-06-25 14:13 bwlcool 阅读(290) 评论(0) 推荐(0)

导航