Removed Base64 code since that is part of Android API Level 8, which is the minSdkVersion.