Some useful android and java stuff