URLEncodedUtils
is deprecated in Android API 22+. What could I use instead in this code?
I need to change URLEncode.Utils.Format()
line.
public String construct() {
return (iftrue? HOSTING_NAME : _NAME) + yDomain
+ (param.size() > 0 ? "?"
+ URLEncodedUtils.format(yParam, "utf-8") : "");
}