我找不到适用于Java Android Studio的RSS Feed阅读器的指南。
Have you some advices?
由于
答案 0 :(得分:0)
您应该能够将其放在网页浏览中。
我是怎么做的:
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;
}
});
}
}