Android Question Google maps question

Discussion in 'Android Questions' started by kohle, Jun 25, 2015.

  1. kohle

    kohle Active Member Licensed User

    Hi,
    I get an error message when I use googleMapsExtras to show a mapp with 2 points.
    This error only is triggered, when I close the app with the back key and open it again over the task manager.

    Error:
    java.lang.IllegalStateException: Error using newLatLngBounds(LatLngBounds, int): Map size can't be 0. Most likely, layout has not yet occured for the map view. Either wait until layout has occurred or use newLatLngBounds(LatLngBounds, int, int, int) which allows you to specify the map's dimensions.

    The code is in the map_ready

    Using this Code:


    This code works fine :

     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice