I have an application with a navigation drawer, one activity and many fragments. When I change the device orientation my main activity is recreate and it's my main fragment who appears, not the current fragment. Just like when I launch the app.
How can I restore the current fragment and maybe the data associated with the selected fragment ?
I Have seen this post but it doesn't work : Save fragment state with navigation drawer
Thanks in advance to those who can help me.