Java tutorial
//package com.java2s; /* * oxPush2 is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ import android.util.Base64; public class Main { public static byte[] base64UrlDecode(String arg) { return Base64.decode(arg, Base64.URL_SAFE | Base64.NO_WRAP); } }