Skip to content Skip to sidebar Skip to footer

My App Doesnt Work ( Infinite Loop }

My app keeps crashing onReceive Basically im sending gps coordinates to another android device and Im trying to build an equation of line from those sets of gps coordinates on a wh

Solution 1:

Your googleMap object is null.

You have only declared it

GoogleMap googleMap;

but never instantiated. So then when you try to do,

googleMap.getMyLocation();

you run into Null Pointer Exception.

Solution 2:

It's not an infinite loop. It's a NullPointerException, at line 90. I'm guessing here:

Locationlm= googleMap.getMyLocation();

Make sure you assign a value to googleMap before you try to call one of its methods.

Post a Comment for "My App Doesnt Work ( Infinite Loop }"