+ Reply to Thread
Results 1 to 2 of 2

Thread: How to read atom feeds from Flickr ?

  1. #1

    How to read atom feeds from Flickr ?

    I want to read atom feed from flickr.com and parse that feed to make a gridview just a start up help will be appreciated.

    http://api.flickr.com/services/feeds...us&format=atom

  2. #2
    Junior Member
    Join Date
    Aug 2012
    Posts
    13
    This is an ideal solution to read atom feeds without any exception

    Code:
    import java.io.InputStream;
    import java.net.URL;
    // ...
    URL text = new URL("http://api.flickr.com/services/feeds/photos_public.gne?id=00000000@N04&lang=en-us&format=atom");
    InputStream isText = text.openStream();
    byte[] bText = new byte[250];
    int readSize = isText.read(bText);
    Log.i("Net", "readSize =" + readSize);
    Log.i("Net", "bText = "+ new String(bText));
    isText.close();

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts