I am trying to create a android app that has one activity and multiple fragments. Each fragment will ocupy the entire screen when it is in view and with a replace transacti
The problem is that I was trying to change the map element before it was displayed setUpMapIfNeeded()
is called in onCreate()
(the view is inflated only in onCreateView()
).
If I move the call setUpMapIfNeeded()
in onResume()
everything works because then the view is inflated and it can use the map and modify it.
This is where I found the answer