update java class for google java sample app
Merge pull request #2 from danielamihalache/ReplaceMessageVarWithServerResponse-RES-928

 [CR] Update google java class - RES-928
url encode