Url
我用来解析读取的文档Json
是:
https://graph.facebook.com/150205375156742/feed?access_token=520625188052604|GsCYVGBJKs5N_O1AX9XrrsulrWc
这是扔IllegalArgumentException
:
04-19 23:08:02.220: E/AndroidRuntime(17068): Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 76: https://graph.facebook.com/150205375156742/feed?access_token=520625188052604|GsCYVGBJKs5N_O1AX9XrrsulrWc
当我尝试使用urlEncoder.encode()
它对 url 进行编码时,会导致另一个异常:
04-20 11:43:16.280: W/System.err(31984): java.net.UnknownHostException: Unable to resolve host "graph.facebook.com": No address associated with hostname