Code example for CheckBox

Methods: isChecked

0
  } 
 
  private File getTarget() {
    File root=null;
 
    if (external != null && external.isChecked()) {
      root=getActivity().getExternalFilesDir(null);
    } 
    else { 
      root=getActivity().getFilesDir();
    } 
 
    return(new File(root, FILENAME));
  } 
 
  private void boom(Exception e) {
    Toast.makeText(getActivity(), e.toString(), Toast.LENGTH_LONG)
         .show(); 
    Log.e(getClass().getSimpleName(), "Exception saving file", e);
  }