title: How to use mapfragment in a fragment
body: <p>Mainly i got a FragmentActivity with a drop down menu that once you choose an item from that menu it makes my private class that extends Fragment to show every time other things on the map it self
  Now the problem is that when i make the line inside the fragment class that controls the map :</p>
  
  <pre><code>GoogleMap map = ((MapFragment)getFragmentManager.findFragmentById(R.id.map)).getMap()
  </code></pre>
  
  <p>It says you cant cast fragment to MapFragment so i tried to extend the MapFragment for the class but when i choose an item inside the dropdown menu i do this section of the code :</p>
  
  <pre><code>Fragment fragment = new MyFragmentClass()();
  Bundle args = new Bundle();
  args.putInt(PlacesFinder.ARG_SECTION_NUMBER, position + 1);
  fragment.setArguments(args);
  getSupportFragmentManager().beginTransaction().replace(R.id.container, fragment).commit();
  </code></pre>
  
  <p>i can only use fragment so how can i use the google map inside the fragment  if i cant findview it inside the fragment class and cant extends mapfragment because of the dropdown menu?</p>
  
  <p>Thanks head up :)</p>