Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uri.builder vs string based url construction

Tags:

android

url

uri

Why would one use Uri.Builder when Urls can be constructed by simply concatenating string variables?

In which cases is advisable to use uribuilder over string variables and vice-versa?

like image 849
Flame of udun Avatar asked Jun 16 '15 17:06

Flame of udun


1 Answers

Uri.Builder is a helper class using which you can offload the work of constructing various kinds of uri. It is always recommended to use this class instead of creating it yourself.

Uri.Builder

like image 119
siva Avatar answered Oct 20 '22 09:10

siva