@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // FacebookSdk.sdkInitialize(getApplicationContext()); setContentView(getLayout()); ButterKnife.bind(this); gameUtils = GameUtils.getInstance(this); init(); edt_borndate.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { DialogFragment dialogFragment = new DatePickerFragment(); dialogFragment.show(getFragmentManager(), "Date"); } }); btn_continue.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { /* Intent navIntent = new Intent(RegisterActivity.this, MainActivity.class); navIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(navIntent);*/ validateData(); } }); btn_cancel.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { // onBackPressed(); Aviso aviso = new Aviso(getApplicationContext()); aviso.show(); } }); }
@Override protected void onStart() { super.onStart(); }