Skip to content

stridera/GoogleImageSearch

Repository files navigation

Google Image Search

This is an app completed for the CodePath Android Bootcamp Class.

This is an application you can use to search the web for images based on a search string. You can optionally add filters to better define your search and return particular image types. Once you found an image you like, you're able to save the image to the device, share it, or view the web page containing the image.

Time Spent: ~30-40 Hours

User Stories

Required User Stories

  • User can enter a search query that will display a grid of image results from the Google Image API.
  • User can click on "settings" which allows selection of advanced search options to filter results
  • User can configure advanced search filters. (Image Size, Dominant Color, Color Type, Image Type, Safe Search)
  • Subsequent searches will have any filters applied to the search results
  • User can tap on any image in results to see the image full-screen
  • User can scroll down “infinitely” to continue loading more image results (up to 10 pages)

Optional User Stories

  • Advanced: Robust error handling, check if internet is available, handle error cases, network failures (Mostly)
  • Advanced: Use the ActionBar SearchView or custom layout as the query box instead of an EditText
  • Advanced: User can share an image to their friends or email it to themselves
  • Advanced: Replace Filter Settings Activity with a lightweight modal overlay
  • Advanced: Improve the user interface and experiment with image assets and/or styling and coloring
  • Bonus: Use the StaggeredGridView to display improve the grid of image results
  • Bonus: User can zoom or pan images displayed in full-screen detail view

Additional User Stories

  • Can select the number of columns you wish to have in your view
  • As images load they first load an on-device placeholder, then the small thumbnail url, and finally full sized image in order
  • Can save the image to the device gallery
  • Can open the webpage the image comes from
  • Used the new Google Custom Search Engine API over the depricated API

User Story Walkthrough

Video Walkthrough

Known Bugs:

  • Settings Dialog doesn't look good in landscape on small devices. Need to make a new dialog for different sizes to handle this
  • It reloads all items as items change (due to the notifyDataSetChanged being called)
  • If you scroll too fast you get Out of Memory issues in Picasso as it tries to load too many images at once

Wants

  • I used the new Google Search Engine with hopes that I could do a reverse image search to find similar images using an image aquired from the camera or from an image located on the device
  • Better Performance so we don't see the placeholders as we scroll up/down
  • The Custom Google Search Engine does not allow you to search by site unless you set it up to ONLY search by a single site.

Acknowledgements

About

My Version of the Google Image Search using the new Google Custom Search engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages