Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MohammadSamandari/a809d44ed31e10357f0e0784f8711c8b to your computer and use it in GitHub Desktop.
Save MohammadSamandari/a809d44ed31e10357f0e0784f8711c8b to your computer and use it in GitHub Desktop.
Learning: Encode String So that they are URL friendly
// To Encode the text of Edit Text So that cities with space are converted to url type and no error happens:
String encodedCityName= URLEncoder.encode(edtCity.getText().toString(),"UTF-8");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment