if (wodeweizhiPoint != null) {
if (wodeweizhiPoint.getLatitudeE6() != 0) {
float chufajingdu = (float) (wodeweizhiPoint.getLongitudeE6() / 1E6);
float chufaweidu = (float) (wodeweizhiPoint.getLatitudeE6() / 1E6);
float daodajingdu = (float) (.getLongitudeE6() / 1E6);
float daodaweidu = (float) (.getLatitudeE6() / 1E6);
// Mark a dot
// Intent i = new
// Intent(Intent.ACTION_VIEW,("/maps?hl=zh&mrt=loc&q=31.249351,121.45905"));
// From where to where route
Intent i = new Intent(Intent.ACTION_VIEW,("/maps?f=d&source=s_d&saddr="
+ chufaweidu
+ ","
+ chufajingdu
+ "&daddr="
+ daodaweidu
+ ","
+ daodajingdu + "&hl=zh"));
//If you force the Googlemap map client to open, add the following two sentences
(Intent.FLAG_ACTIVITY_NEW_TASK& Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
("","");
startActivity(i);
}
} else {
(mContext, "Navigation cannot be provided for the time being because you cannot get your location");
}