Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How come I can not use android.util.Base64?

Tags:

android

base64

The import android.util.Base64 cannot be resolved

is Base64 class really inside the util package? Need some help! Thanks

like image 784
sammiwei Avatar asked Dec 07 '22 16:12

sammiwei


2 Answers

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.

like image 90
Victor Wong Avatar answered Dec 25 '22 05:12

Victor Wong


take a look at this http://androidcodemonkey.blogspot.com/2010/03/how-to-base64-encode-decode-android.html

like image 20
Rakhita Avatar answered Dec 25 '22 05:12

Rakhita