Java tutorial
//package com.java2s; import android.util.Base64; import java.io.UnsupportedEncodingException; public class Main { public final static String ENCODING = "UTF-8"; public static String decode(String data) throws UnsupportedEncodingException { byte[] b = Base64.decode(data.getBytes(ENCODING), Base64.DEFAULT); return new String(b, ENCODING); } }