Reputation: 1615
Hi and thanks in advance.
I'm doing a project that uses google maps API, so I've followed the google instructions and did everything as it said, and that put a map in my app which I can fully control(zoom etc.), but when I try moving it to my location, nothing happens, the method doesn't even get called. Here is my code:(posting pastebin links to improve readability since it's long)
http://pastebin.com/GigFHnHa --activity
http://pastebin.com/yiteCuMD layout
Upvotes: 0
Views: 1128
Reputation: 6892
First, you have to debug your code, setting breakpoints and ensure your moveMapToMyLocation()
method is being executed. Then, you must check that your myLocation
object has valid latitude and longitude values. The camera won't move if it is null.
Upvotes: 1