title: Using OnClick from another activity in another package
body: <p>I'm trying to call from a Fragment an OnClick method from the parent activity in another package.</p>
  
  <p>The code for the onClick methods are:</p>
  
  <pre><code>public static void Back(View v) {
      mPager.setCurrentItem(mPager.getCurrentItem() - 1, true);
  }
  
  public static void Next(View v) {
      mPager.setCurrentItem(mPager.getCurrentItem() + 1, true);
  }
  </code></pre>
  
  <p>And here's the code for the Fragment where I want to call these methods from</p>
  
  <pre><code>public class Level1Question1 extends Fragment {
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      View rootView = inflater.inflate(R.layout.fragment_a, container, false);
  
      Button buttonQuestion = (Button) rootView.findViewById(R.id.buttonQuestion);
  
      What do I do here?
  
      return rootView;
  </code></pre>