title: How to access Activity Variables from a fragment Android
body: <p>In the Activity I have :</p>
  
  <pre><code>public class tabsmain extends Activity{
      public static Context appContext;
  
      public boolean lf_ch=false;
  
      public void onCreate(Bundle savedInstanceState){
  </code></pre>
  
  <p>I would like to access and possibly change lf_ch from a fragment inside tabsmain;</p>
  
  <pre><code>public class tabquests extends Fragment{ 
      public CheckBox lc;
  @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)//onCreateView
      { 
  lc.setChecked(//set it to lf_ch);
  </code></pre>
  
  <p>However, I can't seem to access the value of lf_ch.</p>