I have a method that gets called both from onNavigationItemSelected
of ActionBar
and onResume
lifecycle methods. So, when the Activity
gets created, the method gets called twice.
So will it be possible to implement like that when the method is called from onNavigationItemSelected
, it should not get called from onResume
?