[英]How launch all maps app android intent
我想通過意圖打開所有地圖應用程序。
我嘗試了,應用崩潰了,意圖無法打開
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);
嘗試這個。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.