I modified the demo project to put the mapview in a fragment and remove the splash screen activity.
All the code from the splash screen activity was moved to the main activity and the code in the main activity was moved to the fragment.

I got it to work and display the map correctly.

I now have a problem when replacing the map fragment with another one and then coming back to the map fragment.
When I re open the map fragment, the map texture won't load properly and will just display the brown map background.

Any suggestion?

ps: mapview.onpause / on resume are set.

Thank you.