Kann die Methode 'getSupportFragmentManager ()' in Fragment @ nicht auflös

Ich habe die Meldung gefunden. Methode 'getSupportFragmentManager ()' kann nicht aufgelöst werden. Ich möchte als Aktivität fragmentieren. weil ich Maps auf den Registerkarten verwenden möchte, streichen Sie.

public class PETAcikarangsukatani extends Fragment {
Context context;

private static final LatLng SUKATANI = new LatLng(-6.171327, 107.178108);
private static final LatLng WRPOJOK = new LatLng(-6.222411, 107.162158);
private static final LatLng PILAR = new LatLng(-6.257033, 107.156472);
private static final LatLng CIKARANG = new LatLng(-6.256073, 107.143984);


GoogleMap googleMap;
final String TAG = "PathGoogleMapActivity";

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {

    View rootView = inflater.inflate(R.layout.activity_path_google_map, container, false);
    context = rootView.getContext();

    SupportMapFragment fm = (SupportMapFragment)getSupportFragmentManager()
            .findFragmentById(R.id.map);
    googleMap = fm.getMap();

Antworten auf die Frage(28)

Ihre Antwort auf die Frage