Answer the question
In order to leave comments, you need to log in
How to parse this resource?
static.feed.rbc.ru/rbc/internal/rss.rbc.ru/rbc.ru/...
public class NewThread extends AsyncTask<String, Void, String> {
Document doc;
@Override
protected String doInBackground(String... arg) {
String url = "http://static.feed.rbc.ru/rbc/internal/rss.rbc.ru/rbc.ru/mainnews.rss";
try {
doc = Jsoup.connect(url)
.parser(Parser.xmlParser())
.get();
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
@Override
protected void onPostExecute(String result) {
textView.setText(doc.toString());
}
}
Answer the question
In order to leave comments, you need to log in
You either freelance, or at least start writing an analysis and ask specifically what doesn’t work.
So far it looks like "write for me".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question