I’m generating Google map by using the code below. What I am doing here is just get the longitude/lat from GPS. The output I get is just black screen with Google written below. The key and manifest(also layout) are correct as I tried the same code by hardcoding lon/lat and it worked. What might be the error?
Share
You are using
Location location = lm.getLastKnownLocation(strLocationProvider);Try launching an app with location. I had this same issue, you are getting a dead location. If this doesn’t work then try logging you results with logcat. Find out if the you are actually getting a location or not.