Closed alvin-reyes closed 3 years ago
Parameterize the dimensions so that the size can be customized.
// 200x200 or 400x400 public static String qrImageUrl(String keyId, String secret, String dimension) { StringBuilder sb = new StringBuilder(128); sb.append("https://chart.googleapis.com/chart?chs="+dimension+"&cht=qr&chl="+dimension+"&chld=M|0&cht=qr&chl="); addOtpAuthPart(keyId, secret, sb); return sb.toString(); }
Thanks added.
Parameterize the dimensions so that the size can be customized.