Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
/**
* 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