Popular Posts
javax.net.ssl.SSLHandshakeException: Connection closed by peer in Android 5.0 Lollipop Recently, there is a error occurs when access website via ssl connection like below although it worked fine several days ago. // Enable SSL... Create barcode import java.io.File; import java.io.FileNotFoundException; import net.sourceforge.barbecue.Barcode; import net.sourceforge.barbecue.Barcode... Enable SSL connection for Jsoup import org.jsoup.Connection; import org.jsoup.Jsoup; import javax.net.ssl.*; import java.io.IOException; import java.security.KeyManagement...
Stats
Convert relative url to absolute
Uri baseUri = new Uri("http://www.domain.com/path/sample");
Uri absoluteUri = new Uri(baseUri, "../../other/path");
Uri uri;
Uri.TryCreate("http://www.domain.com/base/uri", "../relative/uri", out uri);