On Thu, Jan 21, 2010 at 8:09 PM, perumal316 <[email protected]> wrote:

> Is it correct to use the following code to access the file in /data
> directory?
>
> File file = new File(Environment.getDataDirectory(),"/data/
> monitor.txt");
>

Not really, use openFileInput() (I think that's the name, should be
something like that) to get an InputStream. Write out what you're getting
from the stream to the log to make sure the reading is successful before
trying to show it in the TextView.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to