On Wed, Jan 20, 2010 at 8:35 PM, perumal316 <[email protected]> wrote:

> Suppose I have a text file in /data folder, is there any way I can
> display the textfile to user through an app?
>

Sure. If you want to do this yourself, just read the contents of the file
and dump it to a TextView or something you can show in an Activity or a
Dialog.

If you want to use a separate app, create an Intent with a URI created from
the path to the file and call startActivity with that Intent. The user can
then choose which app to use to open the file, of the ones that are capable
of handling that file type.

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