Some useful android codes