androidAPP中启动第三方地图

xiaoxiao2021-02-28  192

/** * 发起第三方导航 * * @param context */ public static void startGeo(Context context, String latitude, String longitude) { try { Uri mUri = Uri.parse("geo:" + latitude + "," + longitude); Intent mIntent = new Intent(Intent.ACTION_VIEW, mUri); context.startActivity(mIntent); } catch (Exception e) { e.printStackTrace(); UIUtils.showToast(context.getString(R.string.please_download_map)); } }
转载请注明原文地址: https://www.6miu.com/read-22930.html

最新回复(0)