I am facing some issue\"Null pointer Expcepttion at getmap()\" in Google Map Fragments . I want to insert mapfragment in a fragment Please review the code and let know whet
You need to inflate the layout first. The problem is you're doing that at the end of onCreateView, so the map fragment isn't there when you call findFragmentById.
Also, PerxDetailedFragment should extend Fragment, not SupportMapFragment.
public class PerxDetailedFragment extends Fragment {
// ...
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.perx_detailed, null, false);
map = ((SupportMapFragment) getFragmentManager().findFragmentById(R.id.map))
.getMap();
//...
return v;
}