Search code examples
androidgoogle-search-api

How to do website searching from Android App


How would I implement a web search in my app, that searches eBay for example, from a user input?


Solution

  • Something like this:

    1. Put an editText to capture user input
    2. Figure out how the ebay URL works, (Eg. for Google, https://www.google.com/search?q=[Your-keyword-here] can get you to the search result of your keyword)
    3. Load the URL in a webView

    There you go!


    Edit:

    This might work for Ebay:

    https://www.ebay.com/sch/i.html?_nkw=[Your-keyword-here]