In my app there are two fragments (MenuFragment, BasketFragment) and they are located in actionbar tab in navigation mode.
In MenuFragment i hold objects of Product class (Parcelable) in ArrayList in a listview. What i want to do is to carry product to BasketFragment in runtime when i click the item.
I have tried to do that with callback interface and bundle approaches so far and i have always faced with NullPointerException.
Please help me with that. If you would give code example, will be very appreciated.