@@ -0,0 +1,2460 @@
+package usuario.app.bancodehoras;%0A%0Aimport android.app.DatePickerDialog;%0Aimport android.app.Dialog;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.os.Bundle;%0Aimport android.view.View;%0Aimport android.widget.Button;%0Aimport android.widget.DatePicker;%0Aimport android.widget.Toast;%0A%0A%0Apublic class HorasActivity extends AppCompatActivity %7B%0A%0A    Button bttela2, bttelaprincipal,btcalendario;%0A    int day_x,month_x,year_x;%0A    static final int DILOG_ID = 0;%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_horas);%0A        CarregarTelaPrincipal();%0A%0A    %7D%0A%0A    public void CarregarTelaPrincipal() %7B%0A        setContentView(R.layout.activity_horas);%0A        bttela2 = (Button) findViewById(R.id.bttela2);%0A        bttela2.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A                CarregarTela2();%0A                showDialogOnButtonClick();%0A            %7D%0A        %7D);%0A    %7D%0A%0A    public void CarregarTela2() %7B%0A        setContentView(R.layout.tela2);%0A        bttelaprincipal = (Button) findViewById(R.id.bttelaprincipal);%0A        bttelaprincipal.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A                CarregarTelaPrincipal();%0A%0A            %7D%0A        %7D);%0A%0A%0A%0A%0A    %7D%0A    //meu codigo%0A%0A    public void showDialogOnButtonClick()%7B%0A        btcalendario = (Button) findViewById(R.id.btcalendario);%0A%0A        btcalendario.setOnClickListener(%0A                new View.OnClickListener() %7B%0A                    @Override%0A                    public void onClick(View v) %7B%0A                        showDialog(DILOG_ID);%0A%0A                    %7D%0A                %7D);%0A%0A    %7D%0A    @Override%0A    protected Dialog onCreateDialog(int id)%7B%0A        if (id == DILOG_ID)%0A            return new DatePickerDialog(this, dpickerListner,day_x,month_x,year_x);%0A        return null;%0A%0A%0A    %7D%0A    private DatePickerDialog.OnDateSetListener dpickerListner%0A            = new DatePickerDialog.OnDateSetListener() %7B%0A        @Override%0A        public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) %7B%0A            day_x = dayOfMonth;%0A            month_x = monthOfYear;%0A            year_x = year;%0A            Toast.makeText(HorasActivity.this,day_x  + %22/%22 + month_x + %22/%22 + year_x, Toast.LENGTH_LONG).show();%0A        %7D%0A    %7D;%0A%0A%7D%0A%0A%0A

Create HorasActivity.java