[英]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.