Java tutorial
//package com.java2s; import android.util.Base64; import java.io.UnsupportedEncodingException; public class Main { public static String base64Decode(String str, String code) throws UnsupportedEncodingException { String string = new String(Base64.decode(str.getBytes(code), Base64.DEFAULT)); return string; } }