Help me! i'm a new member

hi all.
i wanted to show my solution that works good but maybe there is something to notice so i will appreciate to any creative advice . is it good code or bad ?
i used interface to communicate between fragments
i deleted unnecessary codes and summarized it

private static final int REQUEST_CRIME = 0;

private abstract class GenericCrimeHolder extends RecyclerView.ViewHolder implements View.OnClickListener {

public void onClick(View view) {
    Intent intent = CrimeActivity.newIntent(getActivity(),mCrime.getId(),getLayoutPosition());


public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if(resultCode != Activity.RESULT_OK) {
if(requestCode == REQUEST_CRIME) {
if(data == null) {
int layoutPosition = CrimeActivity.resultDecodeToLayoutIdInt(data);

It looks like you are learning Android Programming. Next time, please post your message in the most applicable category of the forums: that is, Android Programming.