Java RSS 订阅源 Reader Android 工作室

Java RSS Feed Reader Android Studio

我找不到 Java Android Studio 的 RSS Feed reader 指南。

Have you some advices?

谢谢

您应该可以将它放在网络视图中。

我的做法是:

package (INSERT STUFF HERE);

import android.content.Intent;
import android.os.Bundle;
import android.provider.CalendarContract;
import android.support.v4.app.FragmentActivity;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;


public class (INSERT ACTIVITY) extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.(YOUR ACTIVITY));
        //identifies the webview
        WebView webView = (WebView) findViewById(R.id.(WEBVIEW ID));
        //loads the url
        webView.loadUrl("INSERT RSS FEED");
        //cancels all hyperlinks
        webView.setWebViewClient(new WebViewClient() {
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                return false;
            }
        });
    }
}