Skip to content

Commit 29abdbf

Browse files
author
salendron
committed
readme update
1 parent 683deee commit 29abdbf

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,18 @@ Simple-Rss2-Android
44
A really simple RSS 2.0 Parser Library for Android. For easier use it also includes an asynchronous call to get feeds in the background and nofies the UI thread using a callback object.
55

66
== Example: ==
7-
<code>
8-
SimpleRss2Parser parser = new SimpleRss2Parser("http://pingeb.org/feed",
7+
<pre><code>SimpleRss2Parser parser = new SimpleRss2Parser("http://pingeb.org/feed",
98
new SimpleRss2ParserCallback() {
109
@Override
1110
public void onFeedParsed(List<RSSItem> items) {
1211
for(int i = 0; i < items.size(); i++){
1312
Log.d("SimpleRss2ParserDemo",items.get(i).getTitle());
1413
}
1514
}
16-
1715
@Override
1816
public void onError(Exception ex) {
1917
Toast.makeText(mContext, ex.getMessage(), Toast.LENGTH_SHORT).show();
2018
}
2119
};
22-
2320
);
24-
25-
parser.parseAsync();
26-
</code>
21+
parser.parseAsync();</code></pre>

README.md~

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,18 @@ Simple-Rss2-Android
44
A really simple RSS 2.0 Parser Library for Android. For easier use it also includes an asynchronous call to get feeds in the background and nofies the UI thread using a callback object.
55

66
== Example: ==
7-
8-
SimpleRss2Parser parser = new SimpleRss2Parser("http://pingeb.org/feed",
7+
<code>SimpleRss2Parser parser = new SimpleRss2Parser("http://pingeb.org/feed",
98
new SimpleRss2ParserCallback() {
109
@Override
1110
public void onFeedParsed(List<RSSItem> items) {
1211
for(int i = 0; i < items.size(); i++){
1312
Log.d("SimpleRss2ParserDemo",items.get(i).getTitle());
1413
}
1514
}
16-
1715
@Override
1816
public void onError(Exception ex) {
1917
Toast.makeText(mContext, ex.getMessage(), Toast.LENGTH_SHORT).show();
2018
}
2119
};
22-
2320
);
24-
25-
parser.parseAsync();
21+
parser.parseAsync();</code>

0 commit comments

Comments
 (0)