如何在android中使用Uri.parse

如何在android中使用Uri.parse,android,parsing,Android,Parsing,嗨,我正在测试一个web url的加密和解密,并试图开发web浏览器的意图 String decrypted = DecodeAES.decrypt(AESkey, encrypted); decryptedValue.setText(decrypted); 在这里,我想检索“decryptedValue”,并将其放在Uri.parse中 实际上这里的“decryptedValue”包含一些要在webbrowser中打开的网站 Intent browserIntent = new Intent

嗨,我正在测试一个web url的加密和解密,并试图开发web浏览器的意图

String decrypted = DecodeAES.decrypt(AESkey, encrypted);
decryptedValue.setText(decrypted);
在这里,我想检索“decryptedValue”,并将其放在Uri.parse中 实际上这里的“decryptedValue”包含一些要在webbrowser中打开的网站

Intent browserIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.google.com"));
startActivity(browserIntent);
请告诉我如何使用Uri.parse&要使用什么

提前感谢。

更改-

Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("www.google.com"));
至-


uri需要协议,这个例子是,http是协议。问题是我想把文本解析成字符串。这意味着这里的“decryptValue”=Intent-browserIntent=newintent(Intent.ACTION\u视图,Uri.parse('decryptValue');因此它可以是-
Intent-browserint=newintent(Intent.ACTION_视图,Uri.parse(“http://“+decryptValue”)
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));