Tools for Android developpment
Dertermine if the network access is available:
- public boolean isOnline(Boolean withAlert)
- public static boolean isOnline(Boolean withAlert, Context context)
Toast easily:
- public void toast(String tstString)
Encode string in SHA 256:
- public static String encodeSHA256(String key, String data)
Encode string in Base64:
- public static String encodeBase64(String data)
Encode string to valid url string:
- public static String encodeURL(String url)
Encode string to MD5:
- public static String toMD5(String in)
Format a number with at most 2 digits after the dot or coma:
- public static String format(Object object)
Check if a string is a number:
- public static boolean isNumeric(String str)
Check if a string is a valid email address
- public final static boolean isValidEmail(CharSequence target)
Convert seconds to minutes:seconds display
- public static String secondsToMinutes(int seconds)