I have a navigation drawer and onClick is as follows:
My displayView(position); method is:
Now in the onCreateView of my Fragment class I call:
new ListLoader().execute(getActivity());
Here is the implementation:
The message Loading List appears each time I open and close the Navigation Drawer, what is making this to execute? I have put a System.out message in my onCreateView but that does not show up, while as I am calling the AsyncTask only from onCreateView. What do I miss here?
I also face a flicker onClick of NavDrawer item to Fragment transition, even though I am using the asynchronous method. I have to, against my wish use a loading progress dialog.
Edit:
Got the culprit: