I want to call an activity from a popup window, I could do it by using method startActivity(), next i want to pass a value from this activity to a field in the popup window

I am trying to pass value by using startActivityForResult(), But I cannot override the onActivityResult()

how can i do this, Is there any other way to do this ?