Retrieving content of a txt file from URL to Android
Posted
by
eightx2
on Stack Overflow
See other posts from Stack Overflow
or by eightx2
Published on 2011-01-13T23:16:56Z
Indexed on
2011/01/14
4:53 UTC
Read the original article
Hit count: 189
I would like to be able to retrieve contents of a .txt file from the internet, and load it in an EditText. I tried using the code on this page: Reading Text File From Server on Android
It didn't work, as you might have guessed. I've read on numerous sites about this type of problem, but I can't get anything to work. Someone suggested AndroidHttpClient (http://developer.android.com/reference/android/net/http/AndroidHttpClient.html), but I simply can't find any examples with this.
As I'm a newbie in Android programming, I would love if someone could please give me a small example.
© Stack Overflow or respective owner