title: button visible is all checkbox is true
body: <p>I am new with android usually I develop for windows platform with powershell.</p>
  <p>I am trying to find a way to make the button visible if all checkbox are tik .</p>
  <p>I tried so many code from google but still doesn't work so which parts I miss ?</p>
  <p><a href="https://u.pcloud.link/publink/show?code=kZcynFVZ4pP6hOIhpSYbhLr4qNLgU7nbiD5V" rel="nofollow noreferrer">I put all file because I got no ideas which one you will need</a>
  You can directly edit on it should to work</p>
  <p>Thank you for your help and times
  <a href="https://www.youtube.com/watch?v=jLDISZ-FXWo" rel="nofollow noreferrer">https://www.youtube.com/watch?v=jLDISZ-FXWo</a></p>
  <pre><code>    package com.example.checkbox;
  
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.CheckBox;
  import android.widget.Toast;
  
  public class MainActivity extends AppCompatActivity {
  
  
  
      private CheckBox ch1,ch2,ch3, ch4 ;
      private button btnSubmit;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          init();
  
          btnSubmit.setOnclickListnener (new View.OnClickListener() {
              @Override
  
              public void OnClick(View View) {
  
                  StringBuffer result = new StringBuffer();
                  result.append(&quot;gold:\n&quot;);
                  if (ch1.isChecked()){
                      result.append(ch1.getText().toString()).append(&quot;\n&quot;);
                  }
                  if (ch2.isChecked()){
                      result.append(ch2.getText().toString()).append(&quot;\n&quot;);
                  }
                  if (ch3.isChecked()){
                      result.append(ch3.getText().toString()).append(&quot;\n&quot;);
                  }
                  if (ch4.isChecked()){
                      result.append(ch4.getText().toString()).append(&quot;\n&quot;);
                  }
                  Toast.makeText( context: MainActivity.this,
                                  result,toString(),
                                  Toast.LENGTH_LONG).show();
  
              }
  
          });
  
      }
  
  
      Private void init(){
          Ch1=findViewById(R.id.Check_pump);
          Ch2=findViewById(R.id.Check_GPS);
          Ch3=findViewById(R.id.carbone_arms);
          ch4=findViewById(R.id.Check_battery);
  
  
      }
  
  }
  </code></pre>