I used this code below from one adapter class-
AuthorDetailsFragment fragment = new AuthorDetailsFragment();
Bundle b = new Bundle();
b.putString("authorId", "" + modelAllAuthors.get(pos).getId());
fragment.setArguments(b);
((HomeActivity) context).addFragment(fragment, true);
This code works well. But when I am trying to call the fragment from another activity using same process it is not working. So, can I call the mentioned fragment from another activity?