Showing posts with label BufferedInputStream. Show all posts
Showing posts with label BufferedInputStream. Show all posts

Monday, 4 June 2012

How to read a text file in ANDROID?


Hi all…..


In this post I will show you how to read a text file in ANDOID.
Let your file is in the assets folder of your ANDOID project.
The file is named “myfile.txt”


This example reads the file line by line using readLine() function till the end of the file. Here your need two classes named “InputStreamReader” and “BufferedReader”. For writing into the file you need “OutputStreamReader” class. The result is displayed in a Toast. Make sure you notice it.

Read more from here...

http://www.coderzheaven.com/2012/04/22/how-to-read-a-text-file-in-android-2/

Monday, 30 April 2012

How to download a file to your android device from a remote server with a custom progressbar showing progress?

This link provides a nice example to show a progressbar while downloading the file in android.

http://www.coderzheaven.com/2012/04/29/download-file-android-device-remote-server-custom-progressbar-showing-progress/