【发布时间】:2013-09-13 20:00:46
【问题描述】:
您好,我正在测试网络 url 的加密和解密,并尝试开发网络浏览器的意图。
String decrypted = DecodeAES.decrypt(AESkey, encrypted);
decryptedValue.setText(decrypted);
在这里我想检索“decryptedValue”并放在 Uri.parse 实际上这里的“decryptedValue”包含一些要在浏览器中打开的网站。
Intent browserIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.google.com"));
startActivity(browserIntent);
请告诉我如何使用 Uri.parse 以及使用什么。
提前致谢。
【问题讨论】:
-
uri需要协议,本例为google.com,http为协议。