![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
文章平均质量分 60
Joyce_ZhuRouRou
这个作者很懒,什么都没留下…
展开
-
android 媒体数据库刷新
android在启动的时候会启动MediaScannerService扫描系统上的多媒体文件,然后将这些多媒体文件的信息加入到多媒体数据库中,应用程序要取得这些多媒体信息就是从这个多媒体数据库里面去取的,并不是从SD卡中取。也就是说,如果开机后增加或删除了一些多媒体,这个多媒体数据库是不会自动刷新的。android提供了两个Intent来发广播让系统自动刷新多媒体数据库,分别是Intent.ACT原创 2013-04-09 15:46:57 · 5362 阅读 · 7 评论 -
ScheduledExecutorService
private ScheduledExecutorService scheduledExecutorService;scheduledExecutorService = Executors.newSingleThreadScheduledExecutor();scheduledExecutorService.scheduleAtFixedRate(new ScrollTask(), 1, 2,原创 2013-06-07 10:13:26 · 1633 阅读 · 0 评论 -
Java 特殊字符URL转义
URL中如果包含的特殊字符,比如#、+、&等,如果不对其进行转义,则通过Http不能进行下载(Client通过Get方法访问HttpServer)。 比如URL为 :http://192.168.49.20:8192/mnt/sdcard/MIUI/music/mp3/only love +can_the verse.mp3 如果不对 + 进行转义,在HttpServer中收到原创 2013-06-07 18:57:44 · 13262 阅读 · 1 评论 -
notification 加 button 按键
public class NotificationExtend { private Activity context; private final String TAG = "NotificationExtend"; public boolean flag = false; RemoteViews notificationView; Notification notification;转载 2014-03-14 14:40:13 · 5083 阅读 · 1 评论