摘要: private List modelLists = null; private class MyListSomeModelAdapter extends BaseAdapter{ @Override public int getCou... 阅读全文
posted @ 2015-08-18 23:51 cbooy 阅读(169) 评论(0) 推荐(0) 编辑
摘要: /** * 输入流转换成字符串 * @param is * @param destCode * @return * @throws IOException */ public static String readFromStream(In... 阅读全文
posted @ 2015-08-18 23:41 cbooy 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: public static boolean isServiceRun(Context context,String serviceName){ ActivityManager am = (ActivityManager) context.getSystemService(Con... 阅读全文
posted @ 2015-08-18 23:37 cbooy 阅读(124) 评论(0) 推荐(0) 编辑
摘要: public String getVersion(Context context){ PackageManager pm = null; PackageInfo packageInfo = null; ... 阅读全文
posted @ 2015-08-18 23:35 cbooy 阅读(101) 评论(0) 推荐(0) 编辑
摘要: public class LockScreenUtil { private static ... 阅读全文
posted @ 2015-08-18 17:45 cbooy 阅读(161) 评论(0) 推荐(0) 编辑
摘要: public class DialogUtil { private Context context; private Handler handler; public DialogUtil(Context context,Handler handler) { ... 阅读全文
posted @ 2015-08-18 17:37 cbooy 阅读(173) 评论(0) 推荐(0) 编辑
摘要: /** * 读取 联系人 * @param context * @return */ public static List> getLocalContacts(Context context) { List> datas =... 阅读全文
posted @ 2015-08-18 17:36 cbooy 阅读(138) 评论(0) 推荐(0) 编辑
摘要: /** * 动画集合:将多个动画放入集合后使用,动画累积 * @return */ private AnimationSet animationFactory() { //缩放动画 ScaleAnimation sa ... 阅读全文
posted @ 2015-08-18 17:29 cbooy 阅读(293) 评论(0) 推荐(0) 编辑
摘要: /** * 根据包名 卸载应用 */ private void removeApp(String packageName) { Intent intent = new Intent(); intent.setAction(In... 阅读全文
posted @ 2015-08-18 17:26 cbooy 阅读(244) 评论(0) 推荐(0) 编辑
摘要: /** * 分享应用,手机中所有带有分享功能的App都会被调起 */ private void sharedApp(String packageName) { Intent intent = new Intent(); int... 阅读全文
posted @ 2015-08-18 17:23 cbooy 阅读(108) 评论(0) 推荐(0) 编辑
摘要: /** * 开启应用 */ private void startApp(String packageName) { PackageManager pm = getPackageManager(); Intent intent ... 阅读全文
posted @ 2015-08-18 17:21 cbooy 阅读(237) 评论(0) 推荐(0) 编辑
摘要: private class MyAppInfoItemClickListener implements OnItemClickListener{ @Override public void onItemClick(AdapterView parent, View ... 阅读全文
posted @ 2015-08-18 16:59 cbooy 阅读(753) 评论(0) 推荐(0) 编辑
摘要: /** * 创建桌面快捷图标,LAUNCHER 是接收一个广播然后在桌面上创建图标 * 添加权限: */ private void createShutcut() { // 防止多次添加,将添加信息保存在本地 boolean isCr... 阅读全文
posted @ 2015-08-18 16:31 cbooy 阅读(277) 评论(0) 推荐(0) 编辑
摘要: private Context context; public void addSms(){ // 封装短信体 ContentValues values = new ContentValues(); //地址 values... 阅读全文
posted @ 2015-08-18 15:49 cbooy 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1 public final class DensityComputeTool { 2 3 private Context context; 4 5 private DensityComputeTool(Context context) { 6 this.con... 阅读全文
posted @ 2015-08-18 14:28 cbooy 阅读(759) 评论(0) 推荐(0) 编辑