if (PackageUtils.queryInstalledPackage(context, "com.pac1.txapi") != null) {
geoIntent.setPackage("com.pac1.txapi");
} else if (PackageUtils.queryInstalledPackage(context, "com.pac2.txapi") != null) {
geoIntent.setPackage("com.pac2.txapi");
} else {
geoIntent.setPackage("com.google.android.apps.maps");
}
context.startActivity(geoIntent);
}
GeoLocation location = item;
String uri = "geo:0,0?q=" + location.getFormattedLatitude() + ","
+ location.getFormattedLongitude() + "(" + item.toString()
+ ")";
startNaviActivity(this, uri);