小编Tho*_*ran的帖子

EXCEPTION DETAILS:java.lang.IllegalStateException:进程3188超出游标配额100,将使用Rom MIUI终止它

我使用此代码在Sdcard上加载缩略图,设备工作正常,但是设备使用rom MIUI然后它有问题"EXCEPTION DETAILS:java.lang.IllegalStateException:进程3188超出游标配额100,将杀死它"

请帮我修理一下,谢谢.

public static Bitmap getThumbnailByPath(ContentResolver cr, String path)
        throws Exception {
    String[] projection = { MediaStore.Images.Media._ID };
    Cursor cursor = cr.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
            projection, MediaStore.Images.Media.DATA + "=?",
            new String[] { path }, null);
    if (cursor != null && cursor.moveToFirst()) {
        long id = cursor.getLong(0);
        return getThumbnailById(cr, id);
    } else
        cursor.close();
    return null;
}

public static Bitmap getThumbnailById(ContentResolver cr, long idPhoto)
        throws Exception {
    return MediaStore.Images.Thumbnails.getThumbnail(cr, idPhoto,
            MediaStore.Images.Thumbnails.MINI_KIND, options);
}
Run Code Online (Sandbox Code Playgroud)

sqlite android

3
推荐指数
1
解决办法
2175
查看次数

使用 RemoteViews 设置 TextClock 的时区

我开发了一个小部件应用程序。每个小部件都有一个TextClock,我想为每个文本时钟设置时区,但RemoteViews不支持设置时区。

我如何设置时区?

timezone android remoteview

1
推荐指数
1
解决办法
672
查看次数

标签 统计

android ×2

remoteview ×1

sqlite ×1

timezone ×1