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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.