小编use*_*658的帖子

在 WebView 中显示 URL

在我的 JsonParsing 中,我从这个 json 中得到了 url。我需要在 webview 中显示该 Url 链接。我该怎么做?

代码 在这里:

     TextView tv = (TextView)findViewById(R.id.textView1);
     Bundle bundle = new Bundle();
     bundle  = getIntent().getExtras();

           String id = bundle .getString("id");
           String firstName = bundle.getString("firstName");
           String lastName = bundle.getString("lastName");
           String headline = bundle.getString("headline");
           String pictureUrl = bundle.getString("pictureUrl");
           String url = bundle.getString("url");


          Log.v("LV","id :"+id+"\n"+"firstname :"+firstName+"\n"+"lastname :"+lastName+"\n"+"headline :"+headline+"\n"+"pictureUrl :"+pictureUrl+"\n"+"siteStandardProfileRequest"+url);
          tv.setText("id :"+id+"\n"+"firstname :"+firstName+"\n"+"lastname :"+lastName+"\n"+"headline :"+headline+"\n"+"pictureUrl :"+pictureUrl+"\n"+"Profile URL :"+url);   
Run Code Online (Sandbox Code Playgroud)

url android webview

5
推荐指数
2
解决办法
5097
查看次数

标签 统计

android ×1

url ×1

webview ×1