android app develop common method