Skip navigation links
A B C D E F G H I J K L M N O P R S T V W 

A

ActivityUtils - Class in github.nisrulz.androidutils.activity
The type Activity utils.
AesCbcWithIntegrity - Class in github.nisrulz.androidutils.crypto
Simple library for the "right" defaults for AES key generation, encryption, and decryption using 128-bit AES, CBC, PKCS5 padding, and a random 16-byte IV with SHA1PRNG.
AesCbcWithIntegrity() - Constructor for class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
 
AesCbcWithIntegrity.CipherTextIvMac - Class in github.nisrulz.androidutils.crypto
Holder class that allows us to bundle ciphertext and IV together.
AesCbcWithIntegrity.PrngFixes - Class in github.nisrulz.androidutils.crypto
Fixes for the RNG as per http://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html

This software is provided 'as-is', without any express or implied warranty.

AesCbcWithIntegrity.PrngFixes.LinuxPRNGSecureRandom - Class in github.nisrulz.androidutils.crypto
SecureRandomSpi which passes all requests to the Linux PRNG ( /dev/urandom).
AesCbcWithIntegrity.SecretKeys - Class in github.nisrulz.androidutils.crypto
Holder class that has both the secret AES key for encryption (confidentiality) and the secret HMAC key for integrity.
app_launched(Context) - Static method in class github.nisrulz.androidutils.rateapp.RateMyApp
Launch Rate the app dialogue when the app is launched for the first time.
apply() - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.PrngFixes
Applies all fixes.
AudioUtils - Class in github.nisrulz.androidutils.audio
The type Audio utils.

B

BASE64_FLAGS - Static variable in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
The constant BASE64_FLAGS.
BatteryUtils - Class in github.nisrulz.androidutils.battery
The type Battery utils.
BatteryUtils.BatteryChargeListener - Interface in github.nisrulz.androidutils.battery
The interface Battery charge listener.
broadcastData(Context, String, String, String) - Static method in class github.nisrulz.androidutils.broadcastreceiver.BroadcastReceiverUtils
Broadcast data as a message
BroadcastReceiverUtils - Class in github.nisrulz.androidutils.broadcastreceiver
The type Broadcast receiver utils.

C

checkCorrectBufferSize(int, int, int, int) - Static method in class github.nisrulz.androidutils.audio.AudioUtils
Check correct buffer size for your AudioRecord instance
checkIfPermissionGranted(Context, String) - Static method in class github.nisrulz.androidutils.misc.MiscUtils
Check if permission granted boolean.
CipherTextIvMac(byte[], byte[], byte[]) - Constructor for class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.CipherTextIvMac
Construct a new bundle of ciphertext and IV.
CipherTextIvMac(String) - Constructor for class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.CipherTextIvMac
Constructs a new bundle of ciphertext and IV from a string of the format base64(iv):base64(ciphertext).
constantTimeEq(byte[], byte[]) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
Simple constant-time equality of two byte arrays.
ConvertUtils - Class in github.nisrulz.androidutils.convert
The type Convert utils.

D

decodedMessage(String) - Static method in class github.nisrulz.androidutils.crypto.EncodeDecodeBase64
Decode encoded message using Base64
decrypt(AesCbcWithIntegrity.CipherTextIvMac, AesCbcWithIntegrity.SecretKeys) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
AES CBC decrypt.
decryptString(AesCbcWithIntegrity.CipherTextIvMac, AesCbcWithIntegrity.SecretKeys) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
AES CBC decrypt.
decryptString(AesCbcWithIntegrity.CipherTextIvMac, AesCbcWithIntegrity.SecretKeys, String) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
AES CBC decrypt.
disableScreenshotFunctionality(Activity) - Static method in class github.nisrulz.androidutils.misc.MiscUtils
Disable screenshot functionality.
dpToPixels(Activity, int) - Static method in class github.nisrulz.androidutils.convert.ConvertUtils
Dp to pixels

E

enableJavaScript(WebView, boolean) - Static method in class github.nisrulz.androidutils.webview.WebViewUtils
Enable java script.
enableStrictMode(boolean) - Static method in class github.nisrulz.androidutils.misc.MiscUtils
Enable strict mode.
enableWebViewDebugging(boolean) - Static method in class github.nisrulz.androidutils.webview.WebViewUtils
Enable web view debugging.
EncodeDecodeBase64 - Class in github.nisrulz.androidutils.crypto
The type Encode decode base 64.
encodedMessage(String) - Static method in class github.nisrulz.androidutils.crypto.EncodeDecodeBase64
Encode message using Base64 encoding
encrypt(String, AesCbcWithIntegrity.SecretKeys) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
Generates a random IV and encrypts this plain text with the given key.
encrypt(String, AesCbcWithIntegrity.SecretKeys, String) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
Generates a random IV and encrypts this plain text with the given key.
encrypt(byte[], AesCbcWithIntegrity.SecretKeys) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
Generates a random IV and encrypts this plain text with the given key.
engineGenerateSeed(int) - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.PrngFixes.LinuxPRNGSecureRandom
 
engineNextBytes(byte[]) - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.PrngFixes.LinuxPRNGSecureRandom
 
engineSetSeed(byte[]) - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.PrngFixes.LinuxPRNGSecureRandom
 
equals(Object) - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.CipherTextIvMac
 
equals(Object) - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.SecretKeys
 

F

FileIOUtil - Class in github.nisrulz.androidutils.fileio
The type File io util.
FragmentUtils - Class in github.nisrulz.androidutils.fragments
The type Fragment utils.

G

generateCsvFile(String, String) - Static method in class github.nisrulz.androidutils.misc.MiscUtils
Write String data to a csv file
generateIv() - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
Creates a random Initialization Vector (IV) of IV_LENGTH_BYTES.
generateKey() - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
A function that generates random AES & HMAC keys and prints out exceptions but doesn't throw them since none should be encountered.
generateKeyFromPassword(String, String) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
A function that generates password-based AES & HMAC keys.
generateKeyFromPassword(String, byte[]) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
A function that generates password-based AES & HMAC keys.
generateMac(byte[], SecretKey) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
Generate the mac based on HMAC_ALGORITHM
generateSalt() - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
Generates a random salt.
getBooleanData(Context, String) - Static method in class github.nisrulz.androidutils.sharedpreferences.SharedPrefUtils
Gets boolean data.
getCipherText() - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.CipherTextIvMac
Get cipher text byte [ ].
getConfidentialityKey() - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.SecretKeys
Gets confidentiality key.
getIntData(Context, String) - Static method in class github.nisrulz.androidutils.sharedpreferences.SharedPrefUtils
Gets int data.
getIntegrityKey() - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.SecretKeys
Gets integrity key.
getIv() - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.CipherTextIvMac
Get iv byte [ ].
getMac() - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.CipherTextIvMac
Get mac byte [ ].
getNetworkInfo(Context) - Static method in class github.nisrulz.androidutils.network.NetworkUtils
Get the network info
getRandomNumberInRange(int, int) - Static method in class github.nisrulz.androidutils.misc.MiscUtils
Gets random number in range.
getScreenSize(Activity) - Static method in class github.nisrulz.androidutils.view.ViewUtil
Get the screen dimensions
getStringData(Context, String) - Static method in class github.nisrulz.androidutils.sharedpreferences.SharedPrefUtils
Gets string data.
getValidSampleRates(int, int) - Static method in class github.nisrulz.androidutils.audio.AudioUtils
Get a valid sample rate for the device
github.nisrulz.androidutils.activity - package github.nisrulz.androidutils.activity
 
github.nisrulz.androidutils.audio - package github.nisrulz.androidutils.audio
 
github.nisrulz.androidutils.battery - package github.nisrulz.androidutils.battery
 
github.nisrulz.androidutils.broadcastreceiver - package github.nisrulz.androidutils.broadcastreceiver
 
github.nisrulz.androidutils.convert - package github.nisrulz.androidutils.convert
 
github.nisrulz.androidutils.crypto - package github.nisrulz.androidutils.crypto
 
github.nisrulz.androidutils.fileio - package github.nisrulz.androidutils.fileio
 
github.nisrulz.androidutils.fragments - package github.nisrulz.androidutils.fragments
 
github.nisrulz.androidutils.json - package github.nisrulz.androidutils.json
 
github.nisrulz.androidutils.misc - package github.nisrulz.androidutils.misc
 
github.nisrulz.androidutils.network - package github.nisrulz.androidutils.network
 
github.nisrulz.androidutils.rateapp - package github.nisrulz.androidutils.rateapp
 
github.nisrulz.androidutils.service - package github.nisrulz.androidutils.service
 
github.nisrulz.androidutils.sharedpreferences - package github.nisrulz.androidutils.sharedpreferences
 
github.nisrulz.androidutils.string - package github.nisrulz.androidutils.string
 
github.nisrulz.androidutils.view - package github.nisrulz.androidutils.view
 
github.nisrulz.androidutils.wakelock - package github.nisrulz.androidutils.wakelock
 
github.nisrulz.androidutils.webview - package github.nisrulz.androidutils.webview
 

H

hashCode() - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.CipherTextIvMac
 
hashCode() - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.SecretKeys
 
hashMap2String(HashMap<String, String>) - Static method in class github.nisrulz.androidutils.convert.ConvertUtils
Convert HashMap to key=value type String
hideActionBar(Activity) - Static method in class github.nisrulz.androidutils.activity.ActivityUtils
Hides the activity's action bar
hideOnScreenKeyboardForEditText(Activity, EditText) - Static method in class github.nisrulz.androidutils.view.ViewUtil
Hide On Screen Keyboard for EditText
holdWakeLock(Context) - Static method in class github.nisrulz.androidutils.wakelock.WakeLockUtils
Hold wake lock.

I

implicit2ExplicitIntent(Context, Intent) - Static method in class github.nisrulz.androidutils.convert.ConvertUtils
Android L (lollipop, API 21) introduced a new problem when trying to invoke implicit intent, "java.lang.IllegalArgumentException: Service Intent must be explicit"

If you are using an implicit intent, and know only 1 target would answer this intent, This method will help you turn the implicit intent into the explicit form.

isCharging() - Method in interface github.nisrulz.androidutils.battery.BatteryUtils.BatteryChargeListener
Is charging.
isConnected(Context) - Static method in class github.nisrulz.androidutils.network.NetworkUtils
Check if there is any connectivity
isConnectedFast(Context) - Static method in class github.nisrulz.androidutils.network.NetworkUtils
Check if there is fast connectivity
isConnectedMobile(Context) - Static method in class github.nisrulz.androidutils.network.NetworkUtils
Check if there is any connectivity to a mobile network
isConnectedWifi(Context) - Static method in class github.nisrulz.androidutils.network.NetworkUtils
Check if there is any connectivity to a Wifi network
isConnectionFast(int, int) - Static method in class github.nisrulz.androidutils.network.NetworkUtils
Check if the connection is fast
isDiscahrging() - Method in interface github.nisrulz.androidutils.battery.BatteryUtils.BatteryChargeListener
Is discahrging.
isFull() - Method in interface github.nisrulz.androidutils.battery.BatteryUtils.BatteryChargeListener
Is full.
isServiceRunning(Context, Class<?>) - Static method in class github.nisrulz.androidutils.service.ServiceUtils
Check if the service is running in the device.
iterateOverJSON(JSONObject) - Static method in class github.nisrulz.androidutils.json.JSONUtils
Iterate over all keys of the JSON
ivCipherConcat(byte[], byte[]) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.CipherTextIvMac
Concatinate the IV to the cipherText using array copy.

J

JSONUtils - Class in github.nisrulz.androidutils.json
The type Json utils.

K

keys(String) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
An aes key derived from a base64 encoded key.
keyString(AesCbcWithIntegrity.SecretKeys) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
Converts the given AES/HMAC keys into a base64 encoded string suitable for storage.

L

LinuxPRNGSecureRandom() - Constructor for class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.PrngFixes.LinuxPRNGSecureRandom
 
loadHashMapFromFile(Context, String) - Static method in class github.nisrulz.androidutils.fileio.FileIOUtil
Load hash map from file hash map.
loadJSONFromAsset(Context, String) - Method in class github.nisrulz.androidutils.json.JSONUtils
Read and parse a JSON file stored in assets folder

M

MD5 - Class in github.nisrulz.androidutils.crypto
The type Md 5.
md5(String) - Static method in class github.nisrulz.androidutils.crypto.MD5
Get MD5 value for a string
MiscUtils - Class in github.nisrulz.androidutils.misc
The type Misc utils.
MyFragment - Class in github.nisrulz.androidutils.fragments
The type My fragment.
MyFragment() - Constructor for class github.nisrulz.androidutils.fragments.MyFragment
 

N

NetworkUtils - Class in github.nisrulz.androidutils.network
The type Network utils.
newInstance(int) - Static method in class github.nisrulz.androidutils.fragments.MyFragment
Static factory method that takes an int parameter, initializes the fragment's arguments, and returns the new fragment to the client.

O

OkHTTPUtils - Class in github.nisrulz.androidutils.network
The type Ok http utils.

P

pixelsToDp(Activity, int) - Static method in class github.nisrulz.androidutils.convert.ConvertUtils
Pixels to dp int.
pxToSp(Context, float) - Static method in class github.nisrulz.androidutils.convert.ConvertUtils
Px to sp

R

rateMyApp(Context) - Static method in class github.nisrulz.androidutils.misc.MiscUtils
Rate my app.
RateMyApp - Class in github.nisrulz.androidutils.rateapp
The type Rate my app.
registerBatteryChangeBroadcastReceiver(Context, BatteryUtils.BatteryChargeListener) - Static method in class github.nisrulz.androidutils.battery.BatteryUtils
Register a listener for getting updates of device charging, discharging or completely charged.
releaseWakeLock() - Static method in class github.nisrulz.androidutils.wakelock.WakeLockUtils
Release wake lock.
removeLastChar(String, String) - Static method in class github.nisrulz.androidutils.string.StringUtils
Remove the last specified character

S

saltString(byte[]) - Static method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity
Converts the given salt into a base64 encoded string suitable for storage.
saveBinaryFileFromResponse(Context, String, Response) - Static method in class github.nisrulz.androidutils.network.OkHTTPUtils
Save the response as a binary file i.e html file.
saveData(Context, String, String) - Static method in class github.nisrulz.androidutils.sharedpreferences.SharedPrefUtils
Save data.
saveData(Context, String, int) - Static method in class github.nisrulz.androidutils.sharedpreferences.SharedPrefUtils
Save data.
saveData(Context, String, boolean) - Static method in class github.nisrulz.androidutils.sharedpreferences.SharedPrefUtils
Save data.
saveHashMapToFile(Context, String, HashMap<String, String>) - Static method in class github.nisrulz.androidutils.fileio.FileIOUtil
Save hash map to file.
SecretKeys(SecretKey, SecretKey) - Constructor for class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.SecretKeys
Construct the secret keys container.
sendMail(Context, String, String, String) - Static method in class github.nisrulz.androidutils.misc.MiscUtils
Send mail.
ServiceUtils - Class in github.nisrulz.androidutils.service
The type Service utils.
setConfidentialityKey(SecretKey) - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.SecretKeys
Sets confidentiality key.
setFullScreen(Activity) - Static method in class github.nisrulz.androidutils.activity.ActivityUtils
Sets the activity in Fullscreen mode
setIntegrityKey(SecretKey) - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.SecretKeys
Sets integrity key.
setOrientation(Activity, boolean) - Static method in class github.nisrulz.androidutils.view.ViewUtil
Set orientation change lock
setStateOfReceiver(Context, Class<?>, boolean) - Static method in class github.nisrulz.androidutils.broadcastreceiver.BroadcastReceiverUtils
Enable/Disable Broadcast Receiver
SharedPrefUtils - Class in github.nisrulz.androidutils.sharedpreferences
The type Shared pref utils.
shareMyApp(Context, String, String) - Static method in class github.nisrulz.androidutils.misc.MiscUtils
Share my app.
short2byte(short[]) - Static method in class github.nisrulz.androidutils.convert.ConvertUtils
short array to byte array.
showRateDialog(Context, SharedPreferences.Editor) - Static method in class github.nisrulz.androidutils.rateapp.RateMyApp
Launch Rate the app dialogue when the app is launched based of some random logic.
spToPx(Context, float) - Static method in class github.nisrulz.androidutils.convert.ConvertUtils
Sp to px
string2HashMap(String) - Static method in class github.nisrulz.androidutils.convert.ConvertUtils
Convert key=value type String to HashMap
StringUtils - Class in github.nisrulz.androidutils.string
The type String utils.
syncCookieWithSystemBrowser(Context) - Static method in class github.nisrulz.androidutils.webview.WebViewUtils
Sync cookie with system browser.

T

toString() - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.CipherTextIvMac
Encodes this ciphertext, IV, mac as a string.
toString() - Method in class github.nisrulz.androidutils.crypto.AesCbcWithIntegrity.SecretKeys
Encodes the two keys as a string
toTitleCase(String) - Static method in class github.nisrulz.androidutils.string.StringUtils
Convert string to title case

V

ViewUtil - Class in github.nisrulz.androidutils.view
The type View utils.

W

WakeLockUtils - Class in github.nisrulz.androidutils.wakelock
The type Wake lock utils.
WebViewUtils - Class in github.nisrulz.androidutils.webview
The type Web view utils.
A B C D E F G H I J K L M N O P R S T V W 
Skip navigation links