I am a newbie to android and google maps. Basically, I want to provide a search bar besided my mapview to users. The search bar should enable user to search for restaurants. I tried using the google autocomplete API . However, when I type one character to it, it returns null .
The code for my layout xml is :
<fragment
android:id="@+id/place_autocomplete_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:name="com.google.android.gms.location.places.ui.PlaceAutocompleteFragment"/>
And I am simply loading this xml from my fragment class. Do I need to do anything in my fragment class to make this work?
Thanks a lot.