Project 2 - Google Image Search
Google Image Search is an android app that allows a user to search for images on web using simple filters. The app utilizes Google Image Search API. Please note that API has been officially deprecated as of May 26, 2011.
Time spent: 15 hours spent in total
User Stories
The following required functionality is completed:
- [x] User can search for images by specifying a query and launching a search. Search displays a grid of image results from the Google Image API.
- [x] User can click on "settings" which allows selection of advanced search options to filter results
- [x] User can configure advanced search filters such as:
- [x] Size (small, medium, large, extra-large)
- [x] Color filter (black, blue, brown, gray, green, etc...)
- [x] Type (face, photo, clip art, line art)
- [x] Site (espn.com)
- [x] Subsequent searches have any filters applied to the search results
- [x] User can tap on any image in results to see the image full-screen
- [x] User can scroll down to see more images. The maximum number of images is 64 (limited by API).
The following optional features are implemented:
- [x] Implements robust error handling, check if internet is available, handle error cases, network failures
- [x] Used the ActionBar SearchView as the query box instead of an EditText
- [x] User can share an image to their friends or email it to themselves
- [x] Replaced Filter Settings Activity with a lightweight modal overlay
- [x] Improved the user interface and experiment with image assets and/or styling and coloring
The following bonus features are implemented:
The following additional features are implemented:
- [x] Suggest search text from previous searches using SQLite database
- [x] Show progress bar when searching and loading full screen image
- [x] Rounded grid items for StaggeredGridView
- [x] Handle callback to parent activity without refresh
- [x] View Holder Pattern for the grid
- [x] Perfrom a random search on app start to fill up grid instead of showing blank page
Video Walkthrough
Here's a walkthrough of implemented user stories:
GIF created with LiceCap.
Notes
StaggeredGridView with infinite scrolling using hardware mouse wheel crashes when run on the emulator. Click and drag scrolling works.
Open-source libraries used
- Android Async HTTP - Simple asynchronous HTTP requests with JSON parsing
- Picasso - Image loading and caching library for Android
License
Copyright kprav
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.