how to pass data from one activity to another in android studio :  this is my first activity call CreateMessageActivity were the user is ask to check the ckeckboxes so that it can calculate the total 

      public void myClickHandler(View view) {
        double fish1 = 0;
        double chicken1 = 0;
        double steak1 = 0;
        double total;
        String total1;
        
        CheckBox fish = (CheckBox) findViewById(R.id.checkFish);
        CheckBox chicken = (CheckBox) findViewById(R.id.checkChicken);
        CheckBox steak = (CheckBox) findViewById(R.id.checkSteak);

        //switch (view.getId()) {
           // case R.id.checkFish:
                if (fish.isChecked()) {
                    fish1 = 5;

                } else {
                    fish1 = 0;
                }
               // break;
           // case R.id.checkChicken:
                if (chicken.isChecked()) {
                    chicken1 = 2;

                } else {
                    chicken1 = 0;
                }
                // R.id.checkSteak:
                if (steak.isChecked()) {
                    steak1 = 10;
                } else {
                    steak1 = 0;
                }
                //break;
       // }
        total = fish1 + chicken1 + steak1;
        total1 = Double.toString(total);
        i need to pass total1 to the other activity call ReceiveMessageActivity.
        Intent intent = new Intent(CreateMessageActivity.this, ReceiveMessageActivity.class);
        intent.putExtra("message", total1);               
        startActivity(intent);

    }

this is my second activity that it have to display total in the textview.

       protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_receive_message);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        TextView TXT = new TextView(this);


        Bundle bundle = getIntent().getExtras();
        String status = bundle.getString("message");
        TXT = (TextView)findViewById(R.id.textViewactivity2);
        TXT.setText(status);
