I want voice search instead of always typing in the PlaceAutocompleteFragment so that user has the extra feature.
By following the tutorial on Google's website https://developers.google.com/places/android-sdk/autocomplete, I able to get the the places auto complete to run fine but this voice search feature is not covered in google's tutorial.
Is there any easy way by which I can add that mic icon right corner of the search box and hence provide the voice search feature to user.
No, there is not such feature introduced by now. Alternatively you can use Google MIC to recognize voice and show it in any TEXTVIEW. Geocode it to get lat lng from the address and show it on your Map.
Related
I have just begun using Flutter to create a mobile app.
The first thing I need the app to do is to take an Address/location as input from the user.
I would like to use a text input field that once you start typing it suggests locations based on the google place API.
Sadly there is no widget to enable this out of the box, but it shouldn't be so hard to do. Google's places API returns results based on any text input, so you can just keep sending keystrokes until the user sees (and selects) their desired location. I've got the API working already.
Now I'm struggling with how to build the front end experience.
I was hoping to have a drop-down text field, but I'm not finding anything similar in the widget library.
My next best idea was an input field with a DropdownButton class next to it. I want to make the DropdownButton invisible (0 width) but programmatically make it drop down once the user begins typing.
Sadly I don't see any way to control the visibility of the Dropdown List, so I'm not sure this will work.
Does anyone have any better ideas?
Image of what I have so far but obviously this is not optimal:
It's probably late for an answer but I'll still post this in case anyone else is still curious about this.
If you have the API wired up then what might prove useful is this third-party package.
It's called Flutter Typeahead.
It's a generic input with dropdowns and the data can come from any API and not just the Google Places API.
I am working with HERE NOKIA SDK. I have gotten to create a route between 2 points and the voice instructions. Now I want to show the image arrow and the specfict text of the maneuver.
The SDK does not provide the icon of the turn. Please create some images to pair them against the maneuver turn type.
Also, the turn instruction fragments are provided by the com.here.android.routing.Maneuver class. Composing the fragments into a sentence is done by the app for localization reasons.
This is my first question here on stackoverflow, so sorry if i am doing something wrong.
I have an app on android wear, where the user shall select an item from a list.
I want to enable the user to select the item via voice commands. I managed to do it as suggested in the google documentation, but i have to implement a button to start speech recognition, and it will show up as a fullscreen activity.
I want the user to be able to see the list while speech recognition is active. Is there any solution for this?
EDIT: I might have found the solution i was looking for. It is the speech recognizer, which seems to be able to do just what i want. I will have to dig into that and will update this post if it is the solution.
Hi i'm trying to implement an autocomplete location finder in android, using google maps api, that looks and behaves like autocomplete location finder in the latest Calendar app .
Does anyone know how it's done? Can you point me out some examples/source code that can help me?
I have the autocomplete, using the maps api working. I'm looking for help on how to make the autocomplete text field slide up/pop up when entering text.
Thanks
EDIT:
A link to a small video showing the effect i want to replicate:
https://www.youtube.com/watch?v=k9XBupEstm8&
I'm trying to replicate the animation (that happens after typing two chars) where the Textbox goes up and the white background covers all the other components.
I already have the fetch of the places working.
I want to put the search button in google maps in Android application (like the way I added zoom controls). However, I am not able to find a way to add it.
If you want to add a search button, you have to implement a the Reverse Geocoding, using a GeoCoder that receives your searched Strings from a EditText so with the coordinates obtained you can set a geopoint in the MapOverlay to show the searched position on the map.
For more info about Google Maps geocoding see:
https://developers.google.com/maps/documentation/geocoding/
This question is too vague. What "search button" are you talking about? Do you mean a SearchView? There's a search widget in the maps.google.com web interface, but that's not the standard Android design. The Android Google Maps app uses a SearchView with history and autocomplete.