button1.setOnClickListener(new View.OnClickListener( ){
            @Override
            public void onClick(View v) {
                String data ="Hello!SecondActivity";
                int data1 = 1 ;
                Intent intent = new Intent(FirstActivity.this , SecondActivity.class);
                intent.putExtra("Extra_data" , data);
                intent.putExtra("Extra_time" ,data1);
                startActivity(intent);
            }
        });