I am using the latest design support library. And I have set up the navigation view with four fragments as its menu items.
I would like to have my first fragment (i.e first item in the navigation drawer)opened when the user starts the app.
By default it shows me the MainActivity layout.
I tried
navigationView.getMenu().getInt(0).setChecked(true);
But the above code does not do anything.