Thanks for your response Mark.

I imagine then do most people prompt the user where they want to store
data?  Then store the choice in the preferences perhaps?  Or are most
developers just playing it safe and using the built-in only?

Rob

On Mar 3, 12:21 pm, Mark Murphy <[email protected]> wrote:
> Stormtap Studios wrote:
> > 1) Do all Android devices come with an SD card?
>
> No. The ARCHOS 5 Android tablet, for example, comes with SD card slots
> but no SD card. For that specific device, it allocates a chunk of
> on-board storage as "external storage".
>
> Moreover, SD cards are removable.
>
> > Is it safe to rely on
> > the existence of Environment.getExternalStorageDirectory() for
> > example?
>
> No, because SD cards are removable.
>
> > I imagine that storing data here would be preferable to
> > storing it on the device's built-in memory.
>
> When it is available, for files that can be "public", yes.
>
> > 2) Is Context.openFileOutput() the only guaranteed place where I can
> > store files?
>
> Yes, though I tend to prefer to use getFilesDir() (returns a File object
> pointing to the root of your app-local file store).
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.0
> Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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