Android打开浏览器进行非最终链接

时间:2014-07-30 04:16:01

标签: android android-intent uri final

我是Android开发的新手,请帮助我。 同意此代码

String URL = "http://google.com";
Intent webIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(URL));
startActivity(webIntent);

但是我需要从web服务获取url,每当我传递可变的URL(在运行时分配)时它显示“不能引用非最终变量”。我不能把它作为最终的,因为它来自网络服务

0 个答案:

没有答案
相关问题