Java tutorial
//package com.java2s; import android.util.Base64; public class Main { public static byte[] decodeBase64FromUrlSafe(String content) { int flags = Base64.URL_SAFE; return Base64.decode(content, flags); } }