public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Binder.setAndBindContentView(this, R.layout.tab, this); // getActionBar().setDisplayHomeAsUpEnabled(false); if (isFirstTime()) { Intent i = new Intent(this, ActivityHelp.class); this.startActivity(i); getSharedPreferences(KEY, Context.MODE_PRIVATE) .edit() .putBoolean(KEY_IS_FIRST_TIME, false) .commit(); } }
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewModel vm = new ProfileViewModel(this); Binder.init(this.getApplication()); Binder.setAndBindContentView(this, R.layout.profile, vm); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); model = new RepairUploadModel(this); Binder.setAndBindContentView(this, R.layout.repair_upload, model); }