TruckMuncher/TruckMuncher-Android — pull request #32 by nockertsb (2014-12-09 22:04:38+00:00)
Title: Search ui

@MariusVolkhart This contains the basic search functionality for the landing page of our app. The ActionBar now contains the magnifying glass icon that expands into a SearchView when clicked. Submitting a query from the SearchView fires off the getActiveTrucks request with the given search query .

This also includes Google Now integration allowing users to say "OK, Google. Search tacos on TruckMuncher" and have our app open and perform the search. However, for Google Now to recognize our app name it has to be published in the Play Store, so this won't work for now. For testing purposes you can run the following command in a terminal to mimic the above search.

adb shell am start -a com.google.android.gms.actions.SEARCH_ACTION -e query tacos

That should bring up an "Open With" prompt where you can select our app. Alternately you can add 'com.truckmuncher.truckmuncher.debug' to the end of the command to have it automatically open in the TruckMuncher app.