Java tutorial
//package com.java2s; import android.util.Base64; import java.io.UnsupportedEncodingException; public class Main { public static String decodeString(String base64String) { byte[] data = Base64.decode(base64String, Base64.DEFAULT); String text = null; try { text = new String(data, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return text; } }