В google search place autocomplete suggestion
я хочу показать клавиатуру автоматически. Можете ли вы предоставить решение для этого ??
private void openAutocompleteActivity(int auto_complete_request_code,Context context) {
try {
AutocompleteFilter typeFilter = null;
if (mPresenter.getLocation_Filter(getContext()) != null) {
typeFilter = new AutocompleteFilter.Builder()
.setTypeFilter(AutocompleteFilter.TYPE_FILTER_NONE)
.setCountry(mPresenter.getLocation_Filter(getContext()))
.build();
} /*else {
Toaster.INSTANCE.show(this, getString(R.string.Please_Initialise_you_location));
typeFilter = new AutocompleteFilter.Builder()
.setTypeFilter(AutocompleteFilter.TYPE_FILTER_NONE)
.build();
}*/
Intent intent =
new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_FULLSCREEN)
.setFilter(typeFilter)
.build((Activity) context);
startActivityForResult(intent, auto_complete_request_code);
} catch (GooglePlayServicesRepairableException e) {
} catch (GooglePlayServicesNotAvailableException e) {
}
}