HttpClient client = new DefaultHttpClient();
HttpResponse response = null;
try {
response = client.execute(new HttpGet(
"http://tinymail.in/mail_pipe/thozhilveedhi/pull"));
} catch (Exception e) {
}
HttpEntity entity = response.getEntity();
if (entity != null) {
String data = EntityUtils.toString(entity);
String[] A = null;
..
to read file & the code below to save
try {
FileOutputStream OStream = openFileOutput(i
+ ".html", Context.MODE_PRIVATE);
OStream.write(A[i].getBytes("UTF-16"));
OStream.close();
} catch (Exception e) {
}
}
}
}