Last active
February 14, 2017 00:19
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static final String QUERY_PARAMETER = "q"; | |
public void onClickOpenAddressButton(View v) { | |
// COMPLETED (5) Store an address in a String | |
String addressString = "1600 Amphitheatre Parkway, CA"; | |
// COMPLETED (6) Use Uri.Builder with the appropriate scheme and query to form the Uri for the address | |
Uri.Builder builder = new Uri.Builder(); | |
builder.scheme("geo") | |
.path("0,0") | |
.appendQueryParameter(QUERY_PARAMETER, addressString); | |
Uri addressUri = builder.build(); | |
// COMPLETED (7) Replace the Toast with a call to showMap, passing in the Uri from the previous step | |
showMap(addressUri); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just changed the query method to appendQueryParameter instead.