receive file selected event on custom activity

I'd like to receive the file selected event on a custom activity extends android.support.v4.app.FragmentActivity.
This patch includes a listener and sends the event to the activity implements that listener.