- 博客(5)
- 资源 (5)
- 收藏
- 关注
原创 actionbarsherlock导入红叉
在windows系统下,library project必须和project处于相同的盘符中,因为如果在不同盘符,project.properties中的android.library.reference.1值变成绝对路径,而ADT推荐是在ubuntu下使用的,对windows绝对路径有支持bug。
2014-01-13 18:06:41 460
原创 判断包以什么字母开头
ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE); ComponentName cn = am.getRunningTasks(2).get(1).topActivity; if(cn.getPackageName().regionMatches(0, "cld.navi.", 0, 9))
2013-09-23 09:33:42 446
原创 找到launcher上面的程序并进行名字的排序(中文跟英文)
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
2013-09-05 17:57:19 730
原创 刷新 service
intent=new Intent(context,ClockService.class); refreshIntent=PendingIntent.getService(context, 0, intent, 0); alarm=(AlarmManager)context.getSystemService(Context.ALARM_SERVICE); a
2013-09-05 09:23:03 389
原创 获取安装应用程序apk的信息
获取已经安装的apk的信息 private PackageManager pm; private List list; pm=getActivity().getPackageManager(); list=pm.getInstalledApplications(PackageManager.GET_UNINSTALLED_PACKAGES | PackageManager.GET_
2013-09-03 15:51:43 1298
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人