Skip to content Skip to sidebar Skip to footer

Uncaught Exception Thrown By Finalizer

Hi i am geting this error. i am using this code http://www.androidhive.info/2012/08/android-working-with-google-places-and-maps-tutorial/ when i on click of Show place on map this

Solution 1:

This is the code for getting Google directions between two locations. May this help you.

doublesrcLatitude=0;
doublesrcLongitude=0;
Locationlocation= GeoLocationUtil.getGeoLocation(this);
if (GeoLocationUtil.isValidLocation(location)) {
    srcLatitude = location.getLatitude();
    srcLongitude = location.getLongitude();
}

finalIntentintent=newIntent(Intent.ACTION_VIEW,
/** Using the web based turn by turn directions url. */
Uri.parse("http://maps.google.com/maps?" + "saddr=" + srcLatitude + ","
    + srcLongitude + "&daddr=" + destLat + "," + destLong));

intent.setClassName("com.google.android.apps.maps",
    "com.google.android.maps.MapsActivity");
startActivity(intent);

Solution 2:

as i wrote in this answer: https://stackoverflow.com/a/13161591/1716620

i think that the problem is caused by uncorrect zoom level while performing drawing, try to check your zoom level before performing drawings, i solved that way

Post a Comment for "Uncaught Exception Thrown By Finalizer"