I would like somebody to give me an example code to parse only the first google result.
For example i open http://google.com/search?sourceid=navclient&btnI=1&q=microsoft.
This url goes direct to url of microsoft.com.
How can i parse the exact url and save it to a string?
Thank you in advance.
Use JSON/Atom Google Custom Search API.
In short, send an HTTP request (HTTP GET in Android) with a query in REST format and you will get an HTTP response with search result in JSON format. Just parse the result (JSON parser) and voilà!
All you need is basically in Google Search documentation, so read it first. Pay special attention to:
Now you can start writing some code and come back if you have problems.