Ah, that makes sense. What I'm doing with the java.io.File approach is
reading/writing to/from areas on the sd card.

On Dec 10, 10:38 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
> kelly wrote:
> > You might try just using java.io.File, which works well for me:
>
> > File file = new File("/whatever/path/to/file.txt");
> > try {
> >   InputStream in = new FileInputStream(file);
>
> >   ...
> > }
> > catch(Exception ex)
> > {
> >   ...
> > }
>
> That works, so long as you have read access to whatever it is you're
> trying to read. And, so long as you are able to put files wherever it is
> you're trying to read them from.
>
> > I've noticed in the documentation that openFileInput() is supposed to
> > be what you use, but I haven't determined if the above is not okay,
> > and if not, why not. I'm doing this in several places, and it has
> > never caused a problem.
>
> openFileInput() gives you a storage spot unique to your application in
> the on-board flash. It is not for use for, say, accessing /sdcard.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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