Instantly share code, notes, and snippets.

What would you like to do?
Good Old Way: MainActivity
public static class MainActivity extends Activity
implements HeadlinesFragment.HeadlineListener{
public void onArticleSelected(int position) {
// The user selected the headline of an article from the HeadlinesFragment
// Do something here to display that article
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment