public static Intent findLocation(String query) {
        Intent intent = new Intent();
        intent.setAction(Intent.ACTION_VIEW);
        String data = String.format("geo:0,0?q=%s", query);
        intent.setData(Uri.parse(data));
        return intent;
    }
public static Intent findLocation ( String query ) { Intent intent = new Intent ( ) ; intent . setAction ( Intent . ACTION_VIEW ) ; String data = String . format ( "geo:0,0?q=%s" , query ) ; intent . setData ( Uri . parse ( data ) ) ; return intent ; }
Opens the Maps application to the given query.

@param query Query string
@see #showLocation(float, float, Integer)