- Start a new project in your favorite Android IDE.
- Push the empty skeleton project to this repo.
- Add a simple Activity with an Actionbar, and add a SearchView and standard search icon to this Actionbar.
- Using the SearchView control and the Google Places API, wire up an auto-complete search field in the Actionbar:
- When a search result is tapped, launch a new Activity to display details about this city using Google’s Place Details API (just a few small details is fine).
Add a file (Markdown or plain text is fine) which answers these questions:
- What error conditions will you encounter? How should these be handled?
- Where could the user experience break? How will you prevent this?
- What other improvements can be made?
- Extra credit: Without running it, what’s the result of this statement and why?
System.out.println(-1/9);
When done, submit your code via a pull request to this repo.
- Use any networking libraries you prefer, or build something yourself
- Consider limiting the number of keystrokes before making a new API request, instead of making an API request for each keystroke
- Use a pattern such as [Model View Presenter] (http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter) to ensure that your code is well structured.