title: Cannot resolve method getSupportFragmentManager
body: <p>here i'm getting the error: "Cannot resolve method getSupportFragmentManager" though i have added the import statement for it. I can't seem to understand the problem. Can anyone help?</p>
  
  <p>Here's the code:</p>
  
  <pre><code>package com.example.veeresh.parsegeo;
  import android.content.Context;
  import android.view.View;
  import android.view.animation.Animation;
  import android.view.animation.AnimationUtils;
  import android.widget.AdapterView;
  import android.widget.AdapterView.OnItemClickListener;
  import android.widget.TextView;
  import android.widget.Toast;
  
  import com.google.android.gms.maps.GoogleMap;
  import com.google.android.gms.maps.SupportMapFragment;
  
  public class AgentsDropdownOnItemClickListener  implements OnItemClickListener {
  public String selectedItemTag;
  
  public GoogleMap mMap;
  MapsActivity agent = new MapsActivity();
  
  @Override
  public void onItemClick(AdapterView&lt;?&gt; arg0, View v, int arg2, long arg3) {
  
  
      Context mContext = v.getContext();
      MapsActivity mainActivity = ((MapsActivity) mContext);
  
  
      Animation fadeInAnimation = AnimationUtils.loadAnimation(v.getContext(), android.R.anim.fade_in);
      fadeInAnimation.setDuration(10);
      v.startAnimation(fadeInAnimation);
  
  
      mainActivity.popupWindowDogs.dismiss();
  
  
  
      selectedItemTag = ((TextView) v).getTag().toString();
      if ( selectedItemTag.equals("VISA")) {
          Toast.makeText(mContext, "Agent ID is: ", Toast.LENGTH_SHORT).show();
          if (mMap == null) {
                          // Try to obtain the map from the SupportMapFragment.
                          mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
                                  .getMap();
                          // Check if we were successful in obtaining the map.
                          if (mMap != null) {
                             agent.setUpMapVisa();
                          }
                      }
          mMap.clear();
          agent.setUpMapAadhar();
      }
  
  
  
  }
  
  }
  </code></pre>