Android Utility Methods
Android tutorial
HOME
Android Utility Methods
Introduction
Android utility methods are organized in the following chapters.
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
A
ActionBar Set
Activity Finish
Activity Get
Activity Home Get
Activity Package Get
Activity Rotate
Activity Set
Activity Start
Activity Title Set
Address Get
AES Decrypt
AES Encrypt
AES Key Get
Alarm Cancel
Alarm Create
Alarm Get
Alarm Start
AlertDialog Create
Altitude to Foot Convert
Altitude to Meter Convert
Android Version Check
Angle Convert
Angle Difference Get
Animation Create
Animation Setup
APK Debuggable Check
APK Icon Get
APK Information Get
APK Installation Check
APK Version Get
Arabic Char Count
Array Add
Array Average
Array Clean
Array Clone
Array Concatenate
Array Contains
Array Convert
Array Copy
Array Create
Array Cut
Array Empty Check
Array Equal
Array Expand
Array Hash
Array Index Of
Array Join
Array Last Index Of
Array Length Compare
Array Length Get
Array List Element Swap
Array Move
Array Permutate
Array Primitive to Object Convert
Array Random
Array Randomize
Array Range Copy
Array Remove
Array Reverse
Array Search
Array Sort
Array Split
Array Sub Array
Array Sum
Array to ArrayList Convert
Array to List Convert
Array to Map Convert
Array to Matrix Convert
Array to Primitive Type Convert
Array to Set Convert
Array to String Convert
Array Total
Array Type Check
ArrayAdapter Search
ArrayDeque Create
ArrayList Create
ArrayList Random
ArrayList to Array Convert
ArrayList to String Convert
ASCII Check
ASCII to Byte Array Convert
Asset Load
Asset Read
AsyncTask Run
Audio Mode Check
Audio Sound Turn
B
Base64 Byte Array Decode
Base64 Byte Array Encode
Base64 Decode
Base64 Encode
Base64 File Decode
Base64 File Encode
Base64 InputStream Decode
Base64 InputStream Encode
Base64InputStream Create
Base64OutputStream Create
Big Endian Convert
Big Endian to Char Convert
Big Endian to Int Convert
Big Endian to Long Convert
Big Endian to Short Convert
BigDecimal Format
BigDecimal Point Move
BigInteger Create
BigInteger Power Calculate
Binary File Read
Binary to Byte Convert
Binary to Hex Convert
Binomial Coefficient
Bit Check
Bit Get
Bit Set
Bit Shift
Bitmap Blur
Bitmap Clip
Bitmap Color Change
Bitmap Color Get
Bitmap Combine
Bitmap Compress
Bitmap Corner Round
Bitmap Create
Bitmap Crop
Bitmap Decode
Bitmap Encode
Bitmap Frame Draw
Bitmap from Byte Array Create
Bitmap Load
Bitmap Option Get
Bitmap Pixel Get
Bitmap Recycle
Bitmap Reflect
Bitmap Resize
Bitmap Rotate
Bitmap Save
Bitmap Scale
Bitmap Size Get
Bitmap Thumbnail Create
Bitmap to Byte Array Convert
Bitmap to Drawable Convert
Bitmap to InputStream Convert
Bitmap to OutputStream Convert
Bitmap to String Convert
Bitmap Transform
Boolean Array Create
Boolean Array to Byte Array Convert
Boolean to Int Convert
Buffer Create
Buffer Get
BufferedImage Load
BufferedImage Pixel Get
BufferedReader Create
BufferedReader Read
BufferedWriter Write
Byte Array Base64 Encode
Byte Array Bit Get
Byte Array Checksum
Byte Array Clone
Byte Array Compare
Byte Array Concatenate
Byte Array Convert From
Byte Array Copy
Byte Array Cut
Byte Array Decode
Byte Array Decrypt
Byte Array Digest
Byte Array Encode
Byte Array Encrypt
Byte Array Equal
Byte Array Expand
Byte Array Fill
Byte Array Hash
Byte Array Merge
Byte Array Randomize
Byte Array Reverse
Byte Array Rotate
Byte Array Save to File
Byte Array Search
Byte Array Sub Array Get
Byte Array to ASCII Convert
Byte Array to Bitmap Convert
Byte Array to Boolean Array Convert
Byte Array to Bundle Convert
Byte Array to Char Convert
Byte Array to Content Convert
Byte Array to Double Convert
Byte Array to Drawable Convert
Byte Array to File Save
Byte Array to Float Convert
Byte Array to Hex Convert
Byte Array to InputStream Convert
Byte Array to Int Convert
Byte Array to Little Endian Convert
Byte Array to Long Convert
Byte Array to Object Convert
Byte Array to Short Convert
Byte Array to String Convert
Byte Array to Unicode Convert
Byte Array to UTF8 String Convert
Byte Array Unzip
Byte Array XOR
Byte Array Zip
Byte Bit Set
Byte to Binary Convert
Byte to Bit Convert
Byte to Char Convert
Byte to Hex Convert
Byte to Int Convert
Byte to Short Convert
ByteArrayInputStream Create
ByteArrayInputStream to String Convert
ByteArrayOutputStream Write
ByteBuffer Check
ByteBuffer Compare
ByteBuffer Copy
ByteBuffer Create
ByteBuffer Get
ByteBuffer Grow
ByteBuffer Merge
ByteBuffer Put
ByteBuffer to Byte Array Convert
ByteBuffer to InputStream Convert
ByteBuffer to Long Convert
ByteBuffer to OutputStream Convert
ByteBuffer to String Convert
ByteBuffer Ungzip
C
Cadence Format
Calendar Add
Calendar Compare
Calendar Create
Calendar Equal
Calendar Format
Calendar Get
Calendar Interval Get
Calendar Parse
Calendar Set
Calendar String Parse
Calendar to Date Convert
Calendar to Long Convert
Calendar to String Convert
Calendar to Timestamp Convert
Camera Check
Camera Facing Get
Camera Flash Set
Camera Get
Camera Orientation Check
Camera Orientation Set
Camera Parameter Get
Camera Picture Take
Camera Preview Check
Camera Release
Camera Result Get
Camera Set
Camera Size Get
Canvas Draw
Celsius to Fahrenheit Convert
Celsius to Kelvin Convert
Certificate Create
Char Bit Set
Char Compare
Char Repeat
Char to Byte Array Convert
Char to Int Convert
Char Value Check
CharArrayBuffer Read
CharBuffer Create
CharSequence Convert
CharSequence Empty Check
CharSequence Search
Charset Convert
Charset Create
Charset Decode
Charset Encode
Charset Get
Chinese String Check
Chinese String Length Get
Class Field Find
Class Name Get
Classpath to Path Convert
Clipboard Copy
Clipboard Get
Clipboard Paste
Clipboard Read
Collection Append
Collection Average
Collection Contains
Collection Duplicate Remove
Collection Element Get
Collection Empty Check
Collection Equal
Collection Filter
Collection Join
Collection Merge
Collection Print
Collection Random
Collection Size Get
Collection Sub Collection Get
Collection Sum
Collection to Array Convert
Collection to ArrayList Convert
Collection to CSV Convert
Collection to Map Convert
Collection to String Convert
Color Adjust
Color Average
Color Blend
Color Convert
Color Darker
Color Filter
Color Lighter
Color Parse
Color Sum
Color to Hex String Convert
ConcurrentHashMap Create
Contact Create
Contact Get
Contact Search
ContentResolver Read
Context Check
Context Delete
Context Get
Context Set
CopyOnWriteArrayList Create
Credit Card Check
Cursor Put
Cursor Read
D
DataInputStream Read
DataOutputStream Write
Date Add
Date Clone
Date Compare
Date Current Get
Date Equal
Date Format
Date Format String Create
Date Get
Date Interval Get
Date Month Get
Date Offset
Date Relative Format
Date Set
Date String Parse
Date String to Date Convert
Date Time Get
Date Time Hour Get
Date Timezone Change
Date to Calendar Convert
Date to GMT Date Convert
Date to ISO Format
Date to Long Convert
Date to Milliseconds Convert
Date to String Convert
Date to Timestamp Convert
Date to UTC Convert
Date Today Get
Date Tomorrow Get
Date Trim
Date Yesterday Get
DatePicker Get
Day Add
Day Compare
Day Get
Day in Month Get
Day of Week Get
Daylight Check
Decimal Format
Degree to Radian Convert
DES Decrypt
DES encrypt
Device Information Get
Device Reboot
Device Type Check
Device Version Check
Dialog Create
Dimension Resize
Dip to Pixel Convert
Directory Accessible Check
Directory Check
Directory Checksum
Directory Clean
Directory Compress
Directory Content Get
Directory Copy
Directory Create
Directory Delete
Directory Remove Recursive
Directory Search
Directory Size Get
Directory Sub Directory Get
Directory Temp Create
Directory Validate
Directory Visit
Display Density Get
Distance Calculate
Distance Readable Format
Double Array Average
Double Array Max
Double Array Min
Double Calculate
Double Format
Double Round
Double to Byte Array Convert
Double to String Convert
DoubleBuffer Copy
DoubleBuffer Create
DoubleBuffer to ByteBuffer Convert
Drawable Color
Drawable Create
Drawable to Bitmap Convert
E
Easter Day Get
EditText Value Get
Email Send
Email String Validate
Emulator Check
English Check
Enum Get
Enumeration to Array Convert
Enumeration to Iterator Convert
Exception Log
ExifInterface Get
F
Factorial
Fahrenheit to Celsius Convert
Fahrenheit to Kelvin Convert
Field Get
Field Set
File Attribute Get
File Backup
File Checksum
File Compare
File Content Compare
File Content Get
File Content Remove
File Content Search
File Copy
File Create
File Delete
File Encode Guess
File Exist
File Extension Name Add
File Extension Name Get
File Extension Name Remove
File Link Check
File MD5 Hash
File Move
File Name Check
File Name Create
File Name Get
File Overwrite
File Path Get
File Read
File Remove
File Rename
File Size get
File Size Readable Format
File System Volume Get
File Temp Create
File to Byte Array Read
File to ByteBuffer Read
File to String Read
File to URL Convert
File Touch
File Type Check
File Upload
File Write
FileInputStream Read
FileInputStream to Properties Save
FileOutputStream Write
FileReader Create
FileReader Read
Float Clamp
Float Constraint
Float Format
Float Round
Float to Byte Array Convert
FloatBuffer Copy
FloatBuffer Create
FloatBuffer to ByteBuffer Convert
Folder Backup
Folder Copy
Folder Create
Folder File List
Folder Recursive Delete
Folder Search
Folder Size Get
Folder Temp Create
Font Set
Fxml Load
G
GB2312 to String Convert
Gif File Check
GL10 Draw
GL10 State Change
GMT Date Get
GPS Send
GPS State Check
Gregorian Calendar Format
Gregorian Date Create
GZip Byte Array
GZip File Create
GZip String
H
Hash Code Calculate
HashMap Copy
HashMap Create
HashSet Create
Hashtable Display
Hebrew String Check
Hex String Create
Hex String Print
Hex String to Byte Array Convert
HMac Hash
HmacSHA256 Create
Hour Add
Hour Format
Hour Get
HTML Charset Get
HTML Decode
HTML Element Create
HTML Element Remove
HTML Element Search
HTML Encode
HTML String Escape
HTML String Unescape
HTML Tag Remove
HTML to Text Convert
Http Get
Http Post
Http Ungzip
HttpResponse Read
I
ID Generate
Image Orientation Get
Image Type Get
ImageView Drawable Get
ImageView Set
ImageView to Bitmap
IMEI Get
IMEI Hide
InputStream Close
InputStream Compare
InputStream Copy
InputStream Create
InputStream Encoding Get
InputStream Read
InputStream Save
InputStream Split
InputStream to Bitmap Convert
InputStream to Byte Array Convert
InputStream to ByteBuffer Read
InputStream to String Convert
InputStream Unzip
InputStream Zip
InputStreamReader Create
Int Array Contains
Int Array Create
Int Array Expand
Int Array Mean
Int Base Convert
Int Bit Set
Int Bit Shift
Int Clamp
Int Format
Int GCD
Int LCM
Int Overflow Check
Int Pad
Int Power Calculate
Int Range Check
Int to Binary Convert
Int to Byte Array Convert
Int to Color Convert
Int to Date Convert
Int to Float Convert
Int to Hex Convert
Int to IP Convert
Int to Long Convert
Int to String Convert
IntBuffer Copy
IntBuffer Create
IntBuffer to ByteBuffer Convert
Intent Check
Intent Copy
Intent Create
Intent Set
IP Address Check
IP Address Get
ISO Format to Date Convert
Iterable Compare
Iterable Contains
Iterable Element Get
Iterable Join
Iterable Size Get
Iterable to List Convert
Iterator Contains
Iterator Join
Iterator Size Get
Iterator to List Convert
Iterator to SortedSet Convert
J
Japanese String Check
JFileChooser Show
JList Element Move
JPG File Check
JSON Array to List
JSON Create
JSON Get
JSON Insert
JSON Parse
JSON Remove
JSON to String Convert
Julian Day to GregorianCalendar Convert
K
Kelvin to Celsius Convert
Kelvin to Fahrenheit Convert
Key Create
Keyboard Hide
Keyboard Show
KeyEvent Check
KPH to MPH Convert
L
Language Get
LineNumberReader Read
LinkedList Create
List Compare
List Duplicate Remove
List Empty Check
List Intersect
List Join
List Minus
List Permutation
List Random
List Remove
List Reverse
List Search
List Size Get
List Split
List Swap
List to Array Convert
List to String Convert
List Union
ListView Set
ListView Size Get
ListView Size Set
Little Endian Convert
Little Endian to Char Convert
Little Endian to Int Convert
Little Endian to Short Convert
Little Ending to Long Convert
Locale Check
Locale Get
Lock File Get
Log
Log File Write
Long Array Fill
Long Base Convert
Long Bit Set
Long Bit Shift
Long Format
Long GCD
Long LCM
Long Overflow Check
Long Power Calculate
Long Readable Format
Long to Base64 String Convert
Long to Boolean Convert
Long to Byte Array Convert
Long to Byte Convert
Long to Date Convert
Long to Hex Convert
Long to Week Convert
Long to Year Convert
Long Value Check
LongBuffer Copy
LongBuffer Create
LongBuffer to ByteBuffer Convert
Longest Common String Get
M
Mac Address Get
Map Empty Check
Map Sort
Map to JSON Convert
Map to URL Convert
Map Value Get
Matrix Product
Matrix Search
MD5 Encode
Memory Get
Menu Set
MessageDigest Update
Messenger Send
Meter to Foot Convert
Meter to Kilometer Convert
Meter to Mile Convert
Method Invoke
Method Name Create
Mile to Meter Convert
Milliliter to Ounce Convert
Milliliter to Pint Convert
Milliseconds Calculate
Milliseconds to Date Convert
Milliseconds to Hour Convert
Milliseconds to Minutes And Seconds Convert
Milliseconds to Month Convert
Milliseconds to Time Convert
Mime Type Get
Minute Get
Minute to Hour Convert
Money Parse
Month Date Get
Month Offset Get
Month String Get
MotionEvent Dispatch
MotionEvent Transform
MPH to KPH Convert
N
Network Information Get
Network State Check
Notification Remove
Number Format
O
Object Array Flatten
Object Array Join
Object Clone
Object Deserialization
Object Equal
Object Hash
Object Serialization
Object to Int Convert
Object to JSON Convert
Object to String Convert
Option Menu Show
OS Check
OS Version Get
OutputStream Write
P
Package Manage
Paint Color Set
Parcelable Create
Password Create
Password Descrypt
Password Encrypt
Password Regex Match
Path Check
Path Compare
Path Create
Path Normalize
Path Relative Get
Path Search
Path Separator Get
Path Split
Path Sub Path Get
Path to File Name Convert
Path to URL Convert
Permission Get
Phone Number Check
Phone Number Dial
Phone Number Format
Phone Number Get
Photo Take
Pixel to Dip Convert
Point Distance
Process Read
Progress Dialog Create
ProgressDialog Create
Properties Merge
Properties Print
Properties Read
Properties Write
Q
QName Create
R
Radian to Degree Convert
Random Boolean Create
Random Byte Array
Random Color Create
Random Double Create
Random Float Create
Random Int Create
Random String Create
RandomAccessFile Close
RandomAccessFile Read
RandomAccessFile Write
Reader Copy
Reader Read
Rect to RectF Convert
RectF to Rect Convert
Regex Compile
Regex Match
Resource Get
Resources Load
S
Salt Create
Screen Brightness Set
Screen Full Screen Set
Screen On
Screen Orientation Check
Screen Orientation Set
Screen Size Get
Screenshort Take
SDCard Check
SDCard Root Get
SDCard Size Get
SDK Version
Second Format
Second to Time
Service Check
Set Create
Set Join
Set Search
Set Union
SHA1 Hash Create
SHA256 Hash Create
SharedPreferences Delete
SharedPreferences Get
SharedPreferences Save
Shell Run
Short Array Fill
Short Bit Set
Short to Byte Array Convert
ShortBuffer Copy
ShortBuffer Create
ShortBuffer to ByteBuffer Convert
Signature Create
SMS Send
Socket Create
Sound Attribute Add
SpannableString Create
Spanned Create
SparseArray Create
SparseArray to List Convert
SparseBooleanArray Convert
SparseBooleanArray Search
Speed Readable Format
Spinner Get
SQL Date Compare
SQL Date Create
SQL Date Format
SQL Timestamp Create
SqliteDatabase Command
Square Root Get
StackTrace Print
StatusBar Size Get
Stream Close
StrictMode Set
String Append
String Array Create
String Array Join
String Array Search
String Array to CSV Convert
String Array to List Convert
String Array to String Convert
String Base64 Encode
String Camel Case
String Capitalize
String Case Convert
String Char Get
String Clone
String Compare
String Compress
String Contain
String Copy
String Cut
String Decode
String Decrypt
String Difference
String Empty Check
String Encode
String Encrypt
String End of Line Convert
String Ends With
String Equal
String Escape
String Extract
String Format
String Hash
String Indent
String Insert
String Length Check
String Levenshtein Distance Get
String Mask
String Merge
String Null Convert
String Pad
String Pad from Left
String Parse
String Permutation
String Quote
String Remove
String Repeat
String Replace
String Reverse
String Search
String Shorten
String Split
String Starts With
String Strip
String Sub String Get
String to ASCII Convert
String to Boolean Convert
String to Byte Array Convert
String to CSV Convert
String to Date Convert
String to Double Convert
String to File Write
String to Float Convert
String to Hex Byte Array Convert
String to Hex String Convert
String to InputStream Convert
String to Int Convert
String to Long Convert
String to Number Convert
String to Short Convert
String to URL Convert
String to UTF8 String Convert
String Tokenize
String Trim
String Value Check
String Whitespace Check
String Whitespace Normalize
String Width Get
StringBuffer Append
StringBuilder Append
StringBuilder Remove
StringReader Create
Surrogate Check
System Property Get
System Reboot
T
Tablet Check
Text File Append
Text File Content Remove
Text File Read
Text File Replace
Text File Write
Text Resize
TextToSpeech Get
TextView Get
TextView Highlight
TextView Set
Thread Delay
Thread Sleep
Throwable Method Get
Throwable to String Convert
Time Compare
Time Format
Time Get
Time Parse
Time Set
Time to Hour Convert
Time to Milliseconds Convert
Time to Week
Timer Start
Timestamp Compare
Timestamp Create
Timestamp Difference Get
Timestamp Format
Timestamp Get
Timestamp String to Timestamp Convert
Timestamp to Calendar Convert
Timezone Change
Timezone Date Format
Timezone Get
TitleBar Hide
Toast Create
Today Check
Today Get
Touch Screen Check
TreeMap Create
TreeSet Create
Trigonometric Functions
Turkish Check
Typeface Create
U
UI Thread Check
Unicode Check
Unicode Convert
Unicode to ASCII Convert
Unicode to String Convert
Unit Convert
Unzip Byte Array
Unzip File
Unzip Folder
Unzip InputStream
URI Create
URI to Path Convert
URL Create
URL Decode
URL Download
URL Encode
URL Normalize
URL Parameter Get
URL Parse
URL Read
URL Relative Resolve
URL String Validate
URL to File Name Convert
URL to Path Convert
URL to String Convert
User Home Get
UTC Get
UTF Check
UTF8 Encode
UTF8 File Read
UTF8 File Write
UTF8 to GB2312 Convert
UTF8 to String Convert
UUID Create
UUID to Byte Array Convert
V
Vector Create
Vector to String Convert
Version String Compare
Vibrator Vibrate
Video Thumbnail Create
View Accessibility Announce
View Check
View Children Get
View Close
View Fade In
View Fade Out
View Get
View Layout
View Orientation Change
View Position Get
View Remove
View Set
View Show
View Size Get
View to Drawable Convert
View to Image Capture
View Visibility Change
ViewGroup Get
ViewGroup Set
W
WeakHashMap Create
Week Compare
Week Day Get
Week Get
Week of Year Get
Weekend Count
Wifi Address Get
Wifi Connection Create
Wifi State Check
Word Count
Writer Write
X
XML Attribute Get
XML Attribute Set
XML CDATASection Create
XML Document Append
XML Document Builder Create
XML Document Create
XML Document Factory Create
XML Document Load
XML Document Save
XML Document Search
XML Document to String Convert
XML Element Attribute Get
XML Element Child Check
XML Element Child Create
XML Element Child Get
XML Element Create
XML Element Set
XML Element Value Get
XML Encode
XML EntityResolver Create
XML InputStream Parse
XML NamedNodeMap Get
XML Namespace Set
XML Node Attribute Get
XML Node Child Check
XML Node Child Get
XML Node Child Remove
XML Node Empty Check
XML Node List Search
XML Node Search
XML Node Set
XML Node to String Convert
XML Node Value Get
XML NodeList Convert
XML NodeList Length Check
XML NodeList to String Convert
XML Parse
XML Serializer Write
XML String Build
XML String Escape
XML String Format
XML String to Text Convert
XML String Unescape
XML to JSON Convert
XMLInputFactory Create
XmlPullParser Check
XmlPullParser Create
XmlPullParser Move to Next
XmlPullParser Read
XmlPullParser Search
XmlPullParser Skip
XmlPullParser Value Get
XPath Create
XPath Evaluate
Y
Year Format
Year Get
Year Leap Check
Year Offset Get
Yesterday Get
Z
Zip Byte Array
Zip Directory
Zip Entry Add
Zip Entry Get
Zip File Create
Zip Unzip Directory
Zip Unzip File
ZipInputStream Save
ZipOutputStream Write