I'm trying to add the Google Maps API snippet to the main project screen
error: Incompatible types: MapsFragment can not be converted to Fragment
part of the code:
fragmentManager = getSupportFragmentManager();
FragmentTransaction transaction = fragmentManager.beginTransaction();
transaction.add(R.id.container, new MapsFragment(), "MapsFragment" ) ;
transaction.commitAllowingStateLoss();
The error appears when I give the New .. command that it can not be converted to a fragment ..
How do I use it on the main screen then?