I had tried to send the data from Activity which is instantiated from a Fragment. Sending data from Activity back to fragment. I tried the following code
Fragment:
Instantiated the Fragment
    Intent intent = new Intent(Fragement.this,Activity);
    startActivity(intent);
Activity:
Intent intent = new Intent(Activitiy.this, Fragment);
                intent.putExtra("Sent", "Something");
                setResult(RESULT_OK, intent);
                finish();
Send result to fragment
In Fragment trying to implement onActivityResult but not even able to define the method.
 
     
    