title: Android - Calling Activity into Fragments - Navigation Drawer
body: <p>I've downloaded the sample project from the Android official site <a href="http://developer.android.com/training/implementing-navigation/nav-drawer.html" rel="nofollow">http://developer.android.com/training/implementing-navigation/nav-drawer.html</a>. I am trying to understand how the Navigation Drawer works. So, I have one doubt, they call a Fragment for each item from the left menu. In my project, I have a big activity which I am trying to call by this Fragment: </p>
  
  <p>public class HomeFragment extends Fragment {</p>
  
  <pre><code>public HomeFragment() {
  }
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
  
      Intent intent = new Intent();
      intent.setClass(getActivity(), ListMatch.class);
      startActivity(intent);
      View rootView = inflater.inflate(R.layout.list_match, container, false);
      return rootView;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>But, if I do that, it calls perfectly my Activity, but the menu disappear. How can I call this activity and keep my menu? Thanks a lot.</p>