项目: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();
}
}