I have some fragments with a gridview, gridview contents are decided from a where in the db, througth a cursor loader.
So, fragments are equal except for db query: I need a constructor-like way to impose the difference.
My solution is to put arguments in a bundle and then call
Fragment.instantiate(this,clss.getName(), newTab.args)
where args is a Bundle containing a String-where and a StringArray-whereArgs is it the correct way to proceed?
yes, there is nothing wrong with this approach,
other thing you can do is pass the where args in the constructors as well