android.provider.ContactsContract.DisplayPhoto的实例源码

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

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...