Created
June 4, 2016 03:27
-
-
Save shogonir/bb8b63515e9de6b57c703271b67cdbf9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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