【问题标题】:How to pass url to webview from rss reader如何从 rss 阅读器将 url 传递给 webview
【发布时间】:2012-04-16 13:19:50
【问题描述】:

我根据本教程创建了一个简单的 rss 阅读器,http://automateddeveloper.blogspot.com/2010/08/android-rss-reader-tutorial.html

这显示了当前 rss 提要的列表,但是我怎样才能使它可点击,以便当您选择它在 web 视图中打开的提要时,我知道如何设置 web 视图我遇到的问题是如何获取 url来自 rss 以及将代码放在哪里。

提前致谢

【问题讨论】:

    标签: java android eclipse rss


    【解决方案1】:
    public void onItemClick(AdapterView<?> a, View v, int position,
                        long arg3) {
                    // TODO Auto-generated method stub
                    Intent message = new Intent(Intent.ACTION_VIEW, 
                              Uri.parse(urvariable.get(position)));
                           startActivity(message);
                }
    

    【讨论】:

      猜你喜欢
      • 2013-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-07
      • 2022-01-25
      • 2017-01-13
      相关资源
      最近更新 更多