general utils for android programming