Here you can find the source of decodeBase64(String encodedString)
public static String decodeBase64(String encodedString)
//package com.java2s; import java.io.UnsupportedEncodingException; import android.util.Base64; public class Main { public static String decodeBase64(String encodedString) { byte[] byteData = Base64.decode(encodedString, Base64.NO_WRAP); String decodedString = null; try {/*w ww . ja v a 2 s . c o m*/ decodedString = new String(byteData, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return decodedString; } }