Reputation: 5134
Why I am getting an error message showing change getSupportFragmentManager() to getFragmentManager()
googleMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
Upvotes: 0
Views: 3052
Reputation:
Here FragmentActivity docs:
You issue is MainActivity is not extending FragmentActivity and SupportPackage an Activity must inherit from FragmentActivity to get Methods like getSupportedFragmentManager().Activity is inheriting from another class, you implement one of classes and kind of merge them.
May be possible answer here
The method 'getSupportFragmentManager()' is unsuported
Upvotes: 2