项目:Linphone4Android
文件:ContactEditorFragment.java
private int getThumbnailSize() {
int value = -1;
Cursor c = LinphoneActivity.instance().getContentResolver().query(displayPhoto.CONTENT_MAX_DIMENSIONS_URI,new String[] { displayPhoto.THUMBNAIL_MAX_DIM },null,null);
try {
c.movetoFirst();
value = c.getInt(0);
} catch (Exception e) {
Log.e(e);
}
return value;
}
项目:ntsync-android
文件:ICSPhotoHelper.java
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
public static int getdisplayPhotoSize(Context context) {
// Note that this URI is safe to call on the UI thread.
Cursor c = context.getContentResolver()
.query(displayPhoto.CONTENT_MAX_DIMENSIONS_URI,new String[] { displayPhoto.disPLAY_MAX_DIM },null);
try {
c.movetoFirst();
return c.getInt(0);
} finally {
c.close();
}
}
项目:haxsync
文件:BitmapUtil.java
public static int getMaxSize(Context context) {
// Note that this URI is safe to call on the UI thread.
Cursor c = context.getContentResolver().query(displayPhoto.CONTENT_MAX_DIMENSIONS_URI,new String[]{ displayPhoto.disPLAY_MAX_DIM },null);
try {
c.movetoFirst();
return c.getInt(0);
} finally {
c.close();
}
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。