Android 从我的应用程序打开谷歌地图活动,如果用户到达目的地,将用户重定向到我的应用程序
我想打开google maps按钮上的逐圈方向屏幕,并想检查用户是否到达目的地将用户重定向到我的应用程序当前我正在使用此代码打开google mapsAndroid 从我的应用程序打开谷歌地图活动,如果用户到达目的地,将用户重定向到我的应用程序,android,google-maps,Android,Google Maps,我想打开google maps按钮上的逐圈方向屏幕,并想检查用户是否到达目的地将用户重定向到我的应用程序当前我正在使用此代码打开google maps String uri = String.format(Locale.ENGLISH, "geo:0,0?q="+ destinationLoc.latitude+","+destinationLoc.longitude + "(The Embroidery Store)" );
String uri = String.format(Locale.ENGLISH, "geo:0,0?q="+ destinationLoc.latitude+","+destinationLoc.longitude
+ "(The Embroidery Store)" );
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
我想在用户到达目的地后将其重定向到我的应用程序。您可能想了解地理围栏的概念。 以下链接可能会有所帮助: