Skip to content

Instantly share code, notes, and snippets.

@ebinjoy999
Created October 13, 2019 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebinjoy999/bfe0ee4fdc808db9d6dd03ad0f95d78a to your computer and use it in GitHub Desktop.
Save ebinjoy999/bfe0ee4fdc808db9d6dd03ad0f95d78a to your computer and use it in GitHub Desktop.
public class EbinHomeActivity extends AppCompatActivity {
@Inject
FriedRice friedRice;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ebin_home);
setupNextActivity();
SwiggyBoyComponent swiggyBoyComponent = DaggerSwiggyBoyComponent.builder().build();
swiggyBoyComponent.inject(this);
TextView textViewPlate = findViewById(R.id.textViewPlate);
textViewPlate.setText(friedRice.getFriedRice());
}
private void setupNextActivity() {
((Button) findViewById(R.id.buttonSwitchHome)).setOnClickListener(v -> {
startActivity(new Intent(this, KiranHomeActivity.class));
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment