Skip to content

Instantly share code, notes, and snippets.

@stephanenicolas
Created November 1, 2012 22:12
Show Gist options
  • Save stephanenicolas/3997009 to your computer and use it in GitHub Desktop.
Save stephanenicolas/3997009 to your computer and use it in GitHub Desktop.
@Override
public void onActivityCreated( Bundle savedInstanceState ) {
super.onActivityCreated( savedInstanceState );
mainActivity = (MainActivity) getActivity();
buttonStart.setOnClickListener( new OnClickListener() {
@Override
public void onClick( View v ) {
onStart( v );
}
} );
buttonStop.setOnClickListener( new OnClickListener() {
@Override
public void onClick( View v ) {
onStop( v );
}
} );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment