1 / 7

Record Search

Record Search. James Cooper. Design. Pings my favorite record store’s search box Displays list of results Details page shows more info. UI. Implementation. HTTP get with dynamic parameters to scrape search results Dodgy text-parsing to extract results

happy
Download Presentation

Record Search

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Record Search James Cooper

  2. Design • Pings my favorite record store’s search box • Displays list of results • Details page shows more info

  3. UI

  4. Implementation • HTTP get with dynamic parameters to scrape search results • Dodgy text-parsing to extract results • Hopefully they don’t change their web site… • Results parsed into a data structure • Asynchronously parsed in a separate thread • Android message queues used for thread safety • Individual results displayed as they are parsed

  5. Implementation • Items displayed in a ListView control • Selecting an item in the ListView passes that item into a details page • Album details are displayed • Includes album art • Loaded asynchronously when you navigate to the details page • Again uses message queues for thread safety

  6. Cut list • Buy link • Image link was static URL • Buy was crazy PHP stuff I didn’t feel like reverse engineering • Multiple sites (like Amazon) • Twice the parsing code • Results listed differently • E.g. “Simon and Garfunkel” vs. “Simon & Garfunkel” • Solution: cross-list by UPC/ISBN, but more work

  7. Questions?

More Related