Buenas intento transformar un activity a un fragment para usar un slidingmenu y tengo problemas con getFragmentManager , espero que me puedan ayudar...he buscado por todos lados
mi xml file:
Código XML:
Ver original<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/map"
tools:context="xpak.xparking.MapsFragment"
class ="com.google.android.gms.maps.SupportMapFragment" />
mi parte del java file donde esta el error:
Código Java:
Ver originalprivate void setUpMapIfNeeded() {
if (mMap == null) {
// Try to obtain the map from the SupportMapFragment.
mMap = ((SupportMapFragment) getFragmentManager().findFragmentById(R.id.map))
.getMap();
// Check if we were successful in obtaining the map.
if (mMap != null) {
setUpMap();
}
}
}
error: incompatible types , cannot cast "android.app.fragment" to "com.google.android.gms.maps.supportmapfragmen t"
he buscado tanto que ya me se el error de memoria

, estoy usando extends Fragment
Gracias por su ayuda en adelantado