Java tutorial
//package com.java2s; //License from project: Open Source License import android.util.Base64; import java.io.UnsupportedEncodingException; public class Main { public static String base64Decode(String s) { byte[] dataDec = Base64.decode(s, Base64.NO_WRAP); String decodedString = ""; try { decodedString = new String(dataDec, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } finally { return decodedString; } } }