General helper functions for android applications