Found a solution myself.

You should create an URL with adress "http://ajax.googleapis.com/ajax/
services/search/images?v=1.0&q=" and add after "q=" your keywords for
search. Then if you create a reader from this url, you'll get an xml
as a responce.
Here's an example:

URL url = new URL("http://ajax.googleapis.com/ajax/services/search/
images?v=1.0&q=pamela+anderson");
BufferedReader reader = new BufferedReader(
                        new InputStreamReader( url.openStream() )    );
String line;
StringBuffer output = new StringBuffer();
while ( (line = reader.readLine()) != null ) {
       output.append(line);
}
reader.close();


Now output contains the xml returned from google image search.

Good luck!
Andrew

On 12 ноя, 01:50, pti4ik <[email protected]> wrote:
> Actually this api is for web sites. Any ideas about how to implement
> it in my android application?
>
> On 23 ÏËÔ, 22:36, pti4ik <[email protected]> wrote:
>
>
>
> > Thanks a lot!
>
> > On 21 ÏËÔ, 08:13, jphaberman <[email protected]> wrote:
>
> > > On Oct 18, 3:33špm, pti4ik <[email protected]> wrote:
>
> > > > Hi everybody!
> > > > I need to search web for images by keyword or phrase with
> > > >images.google.comand then to show some of the found images in my app.
> > > > So does that web site have any API for this? Or what are the ways for
> > > > solving this problem?
> > > > Thanks!
>
> > > > Andrew
>
> > > Google AJAX Search APIhttp://code.google.com/apis/ajaxsearch/
>
> > > Jeremy

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to