Google map v2 android method getMap() returns null
问题 In my application I am using google map programmatically, but when I call getMap() it returns null. even I have tried onActivityCreated() but still it returns null. somebody please help me.. Here is my code, public void callMap() { try { int status = GooglePlayServicesUtil .isGooglePlayServicesAvailable(mActivity); if (status == ConnectionResult.SUCCESS) { Log.d("sreedhu", "Google Play Service Available"); gmo = (new GoogleMapOptions()).zoomControlsEnabled(true) .rotateGesturesEnabled(true);