Reputation: 3200
The import android.util.Base64 cannot be resolved
is Base64 class really inside the util package? Need some help! Thanks
Upvotes: 4
Views: 12768
Reputation: 2486
android.util.Base64
has been included since Android API Level 8 (i.e. Android 2.2.x or later)
http://developer.android.com/reference/android/util/Base64.html
For older version, you have to download the library or source code manually and put it under your project.
Upvotes: 13
Reputation: 4503
take a look at this http://androidcodemonkey.blogspot.com/2010/03/how-to-base64-encode-decode-android.html
Upvotes: 2