![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
移动开发
文章平均质量分 59
huanghaojiahpk
这个作者很懒,什么都没留下…
展开
-
刷新 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 · 395 阅读 · 0 评论 -
获取安装应用程序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 · 1305 阅读 · 0 评论 -
找到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 · 732 阅读 · 0 评论 -
判断包以什么字母开头
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 · 449 阅读 · 0 评论 -
actionbarsherlock导入红叉
在windows系统下,library project必须和project处于相同的盘符中,因为如果在不同盘符,project.properties中的android.library.reference.1值变成绝对路径,而ADT推荐是在ubuntu下使用的,对windows绝对路径有支持bug。原创 2014-01-13 18:06:41 · 460 阅读 · 0 评论