1. Are you ready for the Galaxy S20? Here is everything we know so far!

Unable to read content from internet calendar file in android using buffered stream

Discussion in 'Android Help' started by Noman Ud Din, Mar 21, 2016.

  1. Noman Ud Din

    Noman Ud Din Lurker
    Thread Starter

    My code is working fine with a dropbox and my website shared link for same file. But when I try to access the same file from the OWA(rackspace) server, my code fails to do the job.

    Any suggestion?

    Link to file:
    http://mex09.emailsrvr.com/owa/cale...cf069e27098835125317850467726104/calendar.ics

    Code:
    URL url =new URL("http://mex09.emailsrvr.com/owa/cale...cf069e27098835125317850467726104/calendar.ics");
    BufferedReader in =newBufferedReader(newInputStreamReader(url.openStream()));
    String line =null;
    String output ="";
    for(line = in.readLine(); line !=null; line = in.readLine()){
    response.append(line);
    System.out.println(line);
    response.append("\n");
    }
    in.close();

    Thanks in advance
     


Loading...
Similar Threads - Unable read content
  1. Bitterend
    Replies:
    4
    Views:
    334
  2. EnthusiasticMalfunction
    Replies:
    2
    Views:
    302
  3. rhstar
    Replies:
    1
    Views:
    547
  4. Antarmanu71
    Replies:
    2
    Views:
    702
  5. adityaagrawal167
    Replies:
    0
    Views:
    306
  6. StarFlutter
    Replies:
    5
    Views:
    787
  7. Rajkumar Wadi
    Replies:
    4
    Views:
    258
  8. X50_user
    Replies:
    8
    Views:
    472
  9. AKA001
    Replies:
    0
    Views:
    918
  10. Dillon Derbowka
    Replies:
    0
    Views:
    317

Share This Page

Loading...