Mapfragment Error - Cameraupdatefactory Is Not Initialized
Trying to create a ListFragment --> MapFragment activity for the phone. MapFragment code follows: public class MapFragment extends SupportMapFragment { private GoogleMap mMa
Solution 1:
Changed up the implementation here. Used a new layout that had both fragment classes of the listFragment and the MapFragment within a FrameLayout. Then found these by their FragmentIds and then used show/hide in conjunction with adding to the back stack to make the map/list show to the user. I'm not sure what overhead this incurs using two sets of fragments being shown/hidden, but seems to work quite nicely on a Nexus4 :)
Code available here: https://github.com/codedawg82/AndroidFragments/
Post a Comment for "Mapfragment Error - Cameraupdatefactory Is Not Initialized"