String urlStr = "http://www.mysite.com/updates/data.txt";;
URL fetchUrl = new URL(urlStr);
InputStream tileInputStream = (InputStream) fetchUrl.getContent();

And then you use the stream.

In the application add the permission:
<uses-permission android:name="android.permission.INTERNET"></uses-
permission>

Andrea


On Aug 21, 5:07 pm, bennyb <[email protected]> wrote:
> I want my application to download an update file 
> e.g.http://www.mysite.com/updates/data.txt
>
> Also, what do I need to add to the manifest?

--~--~---------~--~----~------------~-------~--~----~
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