I want my user to enter an address. But I want the address to be verified using Google Map. Therefore, when the user presses the button to enter the address, I want to launch Intent for Google Maps, where the user can enter the address. But then I want the card to return the data to me. How should I do it? If I start my activity as
Uri searchUri = Uri.parse("geo:0,0?z=10&q=");
Intent mapIntent = new Intent(Intent.ACTION_VIEW,searchUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivityForResult(mapIntent,RESULT_CODE_LOCATION);
number one, will he do what I'm looking for? Second: how to implement onActivityResult? I need a human readable address and lat-long.
To be clear: I want the user to enter the address through a Google Map, and then return the address to my application.
source
share