map - In Android, how do you programmatically access a user's default mapping application? -
When you open a link to navigate or find something on the map, then the Android OS asks which application To use the operation, you can make any of these applications "default" so that they do not ask you again in the future. What is a way to retrieve a user's default mapping app programmatically?
I want to know how to do this because I switch the user to the map at some point in my app and show them the destination. The same thing to navigate is that I want to use the program that the user has chosen as their default to please them.
PS-IOS / WindowsPhone also needs to know the answers if anyone knows that
Is the user retrieve the default mapping application as a program?
There is no such concept in the geo:
URI
on structures, such as
There may be a default activity for ACTION_VIEW
.
I switch the user to the map at some point in my app and show them a destination
call startActivity () intent
, ACTION_VIEW
for destination at code> URI
, and Android from there It will handle it. If the user has set a default for that, then the user will be taken there. If the user has not set any default, and the user has several activities that can handle it, then the user will be presented with a selector. And even further.
I would also like to know the answers for iOS / WindowsPan if anyone knows that
If you ask for two separate questions for those platforms Optimized for, and with the appropriate tags for those platforms.
Comments
Post a Comment