Updated Android code with working HTTP capabilities