public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.home, container, false);
/*Fragment내에서는 mapView로 지도를 실행*/
mapView = (MapView)v.findViewById(R.id.map);
mapView.onCreate(savedInstanceState);
mapView.onResume();
mapView.getMapAsync(this);
getActivity().getWindow().setFlags
(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
mLayout = v.findViewById(R.id.layout_main);
locationRequest = new LocationRequest()
.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)
.setInterval(UPDATE_INTERVAL_MS)
.setFastestInterval(FASTEST_UPDATE_INTERVAL_MS);
LocationSettingsRequest.Builder builder =
new LocationSettingsRequest.Builder();
builder.addLocationRequest(locationRequest);
mFusedLocationClient = LocationServices.
getFusedLocationProviderClient(getActivity());
SupportMapFragment mapFragment = (SupportMapFragment)
getSupportFragmentManager()// 이부분이 에러가 납니다.
.findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
return v;
}