简体   繁体   English

是否可以从您的应用关闭Google地图导航?

[英]Is it possible to close Google Maps navigation from your app?

My app launches Google Maps navigation. 我的应用启动Google地图导航。 Is it possible to close the Google Maps navigation service from my app? 是否可以从我的应用关闭Google地图导航服务?

My app launches Google Maps navigation. 我的应用启动Google地图导航。 Is it possible to close the Google Maps navigation service from my app? 是否可以从我的应用关闭Google地图导航服务?

If you targeting rooted device then you can try to grab Google Maps' notification Pending Intent and use it but other than that I guess that Google Maps does not allow any external apps to command, therefore there's no ie public API you are looking for. 如果您定位到root设备,那么您可以尝试抓取谷歌地图的Pending Intent通知并使用它,但除此之外,我猜Google Maps不允许任何外部应用程序命令,因此没有您正在寻找的公共API。 As an exercise you may peek GM's Manifest file, but even something can be found there, I'd be surprised seeig no android:permission="signature" around). 作为一个练习你可以偷看GM的Manifest文件,但即使在那里可以找到一些东西,我会惊讶地看到没有android:permission="signature"

Wow! 哇! That is a nice question. 这是一个很好的问题。

From your application you can't close/force stop the other application which is installed in the device (If you add that type of hack in the application using NDK, Your playstore account will be blocked by playstore). 从您的应用程序中,您无法关闭/强制停止安装在设备中的其他应用程序(如果您使用NDK在应用程序中添加该类型的hack,则Playstore帐户将被Playstore阻止)。

I did similar type of hack to handle homebutton callback using NDK. 我使用NDK处理类似的hack来处理homebutton回调。 Interesting part is, Playstore blocked my application as well as my playstore account!!! 有趣的是,Playstore阻止了我的应用程序以及我的Playstore帐户!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从您的应用启动谷歌地图导航后,到达目的地时是否有任何回调方法? - after initiating google maps for navigation from your app Is there any callback method when destination is reached? 是否可以在您的应用程序内部获取Google Maps语音导航? - Is it possible to get google maps voice directions inside of your app? 是否可以在 android 应用程序中使用谷歌地图以外的东西实现导航 - Is it possible to implement navigation in an android app with something other than google maps 从谷歌地图中的共享位置获取长/纬度到您的应用程序 - Get long/lat from shared place in google maps to your app 我可以检测用户是否从Google Maps App取消了导航 - Can i detect if a user canceled navigation from Google Maps App 是否可以通过编程方式访问Google地图的导航历史记录? - Is it possible to programmatically access the Google Maps' navigation history? 从您的应用程序中关闭另一个应用程序? - Close another app from your app? 是否可以使用 Google 地图在 Android/iOS 上创建逐向 GPS 导航应用程序? - Is it possible to create turn-by-turn GPS navigation app on Android/iOS using Google Maps? 带有Google Maps Navigation和文本叠加层的Android应用 - Android app with Google Maps Navigation and a text overlay Android Google Maps上的mapbox是否可以实现Turn by Turn导航sdk? - is it possible to implement Turn by Turn navigation sdk from mapbox on Android Google Maps?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM