GoogleMaps - call onPause () function

I was wondering: when using Google Maps v2 mapView should call

mapView.onPause()

in onPause ().

Should there be a call to super.onPause () before mapView.onPause () or afterwards? If it will be like this:

@Override          
public void onPause()
{
   super.onPause();
   mapView.onPause();
}

or like this:

@Override          
public void onPause()
{

   mapView.onPause();
   super.onPause();
}

? Both seem to work (no errors in the compiler and when the application starts), but what is the correct use?

+4
source share
1 answer

. onCreate(), onStart(), onResume() .. super -, , , onPause(), onDestroy() , super , , super.

+4

Source: https://habr.com/ru/post/1539774/


All Articles