Skip to content

Instantly share code, notes, and snippets.

@shogonir
Created June 4, 2016 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shogonir/bb8b63515e9de6b57c703271b67cdbf9 to your computer and use it in GitHub Desktop.
Save shogonir/bb8b63515e9de6b57c703271b67cdbf9 to your computer and use it in GitHub Desktop.
/**
* Created by shogo on 2016/06/04.
*/
public class BookmarkApiCaller extends ApiCaller {
private TextView mTextView;
public BookmarkApiCaller (TextView textView) {
mTextView = textView;
}
public void fetchBookmarks () {
String url = "http://b.hatena.ne.jp/shogonir/rss?of=0";
callApi(url);
}
@Override
public void onResponseReceived(String responseBody) {
mTextView.setText(responseBody);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment