Last active
August 29, 2015 13:57
-
-
Save pwittchen/9923557 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
public class SampleActivity extends Activity implements SampleView { | |
@InjectView(R.id.sample_textview) | |
private sampleTextView; | |
private SampleController controller; | |
@Override | |
public displayData(String data) { | |
sampleTextView.setText(data); | |
} | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
this.controller = new SampleController(this); | |
} | |
@Override | |
protected void onResume() { | |
super.onResume(); | |
controller.generateData(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment