Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/178.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 从我的应用程序打开谷歌地图活动,如果用户到达目的地,将用户重定向到我的应用程序_Android_Google Maps - Fatal编程技术网

Android 从我的应用程序打开谷歌地图活动,如果用户到达目的地,将用户重定向到我的应用程序

Android 从我的应用程序打开谷歌地图活动,如果用户到达目的地,将用户重定向到我的应用程序,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)" );

我想打开google maps按钮上的逐圈方向屏幕,并想检查用户是否到达目的地将用户重定向到我的应用程序当前我正在使用此代码打开google maps

            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);

我想在用户到达目的地后将其重定向到我的应用程序。

您可能想了解地理围栏的概念。 以下链接可能会有所帮助: