Skip to content Skip to sidebar Skip to footer

Onplaceselectedlistener Of Supportplaceautocompletefragment Not Fired

I'm having a problem with the OnPlaceSelectedListener method of a SupportPlaceAutocompleteFragment. My onViewCreated() method: @Override public void onViewCreated(View view, Bundle

Solution 1:

Finally solved this problem: hope it will help someone.

I added this infamous line in the onActivityResult() method in my MainActivity

@OverrideprotectedvoidonActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    ...
}

and then did put the same method in my MapFragment

@OverridepublicvoidonActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
}

Now the nested fragment is sending back its data.

Post a Comment for "Onplaceselectedlistener Of Supportplaceautocompletefragment Not Fired"