Examples of use cited in link
Search nearby restaurants:
Uri gmmIntentUri = Uri.parse("geo:0,0?q=restaurants");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);
Search restaurants in Sao Paulo Capital (based on a specific geo-location):
Uri gmmIntentUri = Uri.parse("geo:-23.564175,-46.6617916?q=restaurants");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);
Find a described address:
Uri gmmIntentUri = Uri.parse("geo:0,0?q=Avenida São João - República, São Paulo - SP");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);
With TextView
it should look like this:
TextView searchTextField = (TextView) this.findViewById(R.id.searchTextField);
Uri gmmIntentUri = Uri.parse("geo:0,0?q=" + searchTextField.getText().toString());
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);