Android http client refactoring fixing issue #145

Android http client refactoring fixing issue #145
and avoiding code duplication