I have a question about passing data using bundle between fragments. I need to pass the URL from a Product object to the next fragment, so I don't know which is the best approach: to pass only the URL or the whole object? What are the reasons of choosing one over another?
Bundle bundle = new Bundle(); bundle.putString(PRODUCT_KEY, product.toJson());
Bundle bundle = new Bundle(); bundle.putString(PRODUCT_KEY, product.getUrl);