Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static String convertImageURL(String url, int w, int h) { url = TextUtils.isEmpty(url) ? "" : url; String str = new StringBuilder(url).append("?imageView2").append("/1/w/").append(w).append("/h/").append(h) .toString(); return str; } }