title: How to call an activity after click checkbox?
body: <p>I'm new in android studio and this is my first time using checkbox.I have a fragment <code>(Auto_Billing_Postpaid_Fragment)</code> and an <code>activity(AutoBillingActivity)</code>.I have checkbox with id name <code>"checkbox_auto_billing"</code> in fragment.Supposedly, after click in <code>checkbox</code>,it will open <code>AutoBillingActivity</code> .but after check the box,the activity did not open.I'd followed some similar tutorials but didn't work.What is wrong with my code or anything I missed?</p>
  
  <p><strong><code>Auto_Billing_Postpaid_Fragment :</code></strong> </p>
  
  <pre><code>@Override
  public void onClick(View v) {
  
      CheckBox checkbox_auto_billing = (CheckBox)v.findViewById(R.id.checkbox_auto_billing);
      Intent intent = new Intent(getActivity(), AutoBillingActivity.class);
      startActivity(intent);
  }
  </code></pre>
  
  <p><strong><code>AutoBillingActivity :</code></strong></p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_auto_billing);
      Intent intent= getIntent();
  }
  </code></pre>