Every time I refresh the pins, I'm calling remove() on each of them and then clean() on the map itself, and I do all that in onDestroyView() as well.Īnd lastly, for reference, this is the code that adds the new fragment: getFragmentManager().beginTransaction().replace(R.id.main_content_container, new JoinGroupFragment()).addToBackStack(null).commit() Īnd when I'm done with it, I just call: getFragmentManager(). As far as I can tell, I'm cleaning up the map properly.Yes, I'm calling the super versions of all the lifecycle methods I override ( onCreate(), onCreateView(), and onDestroyView()).To answer a few questions before they get asked: I thought it was odd that it would stutter now. I closed the Google Maps tab and this dropped to under 10 CPU and the fan quietened down. Any ideas, suggestions, and/or fixes would be welcome. 3 DR.Potato 9:13pm Ironically I think I played the game very briefly before 1.14.15 and it was running smoothly then. Today I had a Google Maps tab open and my laptop fan was making a lot of noise, some of my other tabs started to lag too so I looked in task manager and Edge was using over 50 of my CPU. Launch the Google Store app on your phone and search for Google. In Android devices, go to the Location section of the Settings menu, look for an option that mentions. Update the Google Maps App The easiest thing to try first is making sure you have the latest version of Google Maps. ![]() The countries/cities names on it load really slowly, it lags heavily on. I've never seen anything like this, nor can I find anyone who's described a similar problem before. The first thing to check is how precise your phone is providing location data to the app. Presses the back button and the map pops up again. Nothing else seems to fix it (short of closing/reopening the app) interacting with the non-overflow menu items and the navigation drawer does nothing to help. And then, if I interact with any part of the overflow menu, even just opening it and dismissing it again, the lag immediately clears up. When I return the map from the backstack, though, things get weird panning the map becomes extremely laggy (we're talking ~1 FPS), both for manual dragging/zooming and for animations caused by clicking on pins. Update Google Maps App Keeping your apps updated helps them run smoothly and rules out any incompatibility issues. I then embed a new fragment into my activity, pushing the custom MapFragment onto the backstack. ![]() ![]() I've created a subclass of MapFragment to handle some custom behavior (handling Markers, tweaking the menu options, etc.), and on first load it all works beautifully. I'm working on an app that makes use of a v2 MapFragment, and I'm running into very strange behavior.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |