[英]How launch all maps app android intent
I want to open all the maps app through intent. 我想通过意图打开所有地图应用程序。
I tried it, and the app crashes, the intent doesn't open 我尝试了,应用崩溃了,意图无法打开
Intent myIntent = new Intent("android.intent.category.APP_MAPS");
startActivity(myIntent);
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345"));
startActivity(intent);
Try this. 尝试这个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.