I studied chapter 10 of the book. But I can not understand: when you click on a list item, the CrimeHolder.onClick method is called. The method code looks like this:
Intent intent = CrimeActivity.newIntent(getActivity(), mCrime.getId());
The author of the book uses mCrime.getId () as a parameter. But I do not understand how the link to the clicked list item is written in the mCrime before calling the CrimeHolder.onClick method.
What is the sequence of method invocation at the moment of clicking on a list item.
Using the debugger, I could not catch it. I tried to set a data breakpoint on the variable mCrime, But before calling the CrimeHolder.onClick method, the variable mCrime does not change its value
How it works?