Here you can find the source of decode(String str)
public static String decode(String str)
//package com.java2s; import android.util.Base64; public class Main { public static String decode(String str) { try {/*from w w w .j a v a 2 s. c om*/ byte[] result = Base64.decode(str, Base64.DEFAULT); return new String(result); } catch (Exception e) { return str; } } }