从完整网址中提取基本网址的快速方法?例如,如果我有http://test.example.com/abcd/test.html - 我只想http://test.example.com.
我总是可以进行字符串解析 - 但是想知道Uri中是否有东西我可以直接获取它.
android
android ×1