I have the following situation:
- I develope my android app and I want to add “Search” inside it.
- There is a web-site consultant
This web site is about legal services that can be useful for lawyer and so on.
- I want to connect “SearchView” inside my app with a “search” in this web site.
In other words I want to realize search throw my app to this web site, get results from it and show in app (I think it will be ListView)
Use case:
1
- User open my app
- User type his request in SearchView
- User push the button “Search”
- App sends this request to the web-site
- WebSite search this request inside him (I don’t know how it realized)
- App gets result from the web-site
- App shows result
Because I am a beginner in Android development I ask you an advice:
- Is it real?
- Can you give me links with examples describe my situation
- If it real, can you give me a code of alike realization
Thank you!
P.S my app is created like an OpenSource
P.P.S this is a search web in this site
I see that web site uses search/?q=
Where after = users request
Example: /search/?q=codex
You can do that by taking a look at Jsoup (http://jsoup.org/). Jsoup is a HTML Parser library with Jquery syntax. The documentation is clear and their example is easy to understand (If you familiar with Jquery).
That’s it !