I have a problem here , I got a dialog with some options , one of them is to start an activity with the intent to get the contacts list:
Intent i = new Intent
(Intent.ACTION_PICK , ContactsContract.Contacts.CONTENT_URI);
i.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);
getActivity().startActivityForResult(i, Request_contacts);
the above code doesn't call the onActivityResult on the dialog or in the fragment , it calls the onActivityResult in the activity , even if I removed getactivity() it still call the activity one!
I'm assuming I can't put a bundle and pass it the fragment at run time , then how can I pass the information that was in the onActivityResult to the fragment of that activity ?
0 comments:
Post a Comment