Google Map Implementation In Viewpager, Error Unable To Get Provider Com.google.firebase.provider.firebaseinitprovider
I face the Exception in android Google map Integration inside the ViewPager, Please Help me to resolve this issue, I used the Following code, Please rectify the bug were i done the
Solution 1:
I have got the solution, instead of the onActivityCreated() method i have use the method onViewCreated(), i have the build version target API 23, Thanks.
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
insertNestedFragment();
}
// Embeds the child fragment dynamically
private void insertNestedFragment() {
FragmentManager fm = getChildFragmentManager();
mSupportMapFragment = (SupportMapFragment) fm.findFragmentById(R.id.child_fragment_container);
if (mSupportMapFragment == null) {
mSupportMapFragment = SupportMapFragment.newInstance();
fm.beginTransaction().replace(R.id.child_fragment_container, mSupportMapFragment).commit();
}
}
Post a Comment for "Google Map Implementation In Viewpager, Error Unable To Get Provider Com.google.firebase.provider.firebaseinitprovider"