On Sat, Jun 16, 2012 at 11:33 AM, Terry <[email protected]> wrote:
> Even if a new device is sold without an sdcard, we would still like
> our apps to work.

No device that legitimately has the Google Play Store on it will ship
with less than 1GB of external storage -- it's a requirement.

> So; if a device does not have an sdcard, WHERE would you recommend to
> store data (e.g. picture files)?

Probably you don't store picture files, any more than you would store
picture files on a computer lacking any sort of hard drive. In a
pinch, you can store them on internal storage, but, again, for the
devices you are worried about, internal storage is at a premium.

Please note that a significant percentage -- probably a majority at
this point -- have external storage as part of on-board flash, which
cannot be removed (though, on Android 1.x/2x, may be unavailable if it
has been mounted on a host machine). Also, please note that the space
distinction between internal storage and external storage, and the
external-storage-not-available-when-mounted, issues are mostly cleared
up as of Android 3.0.

> HOW do you get the preferred directory in internal storage?

There is no "preferred directory", insofar as the "preferred
directory" concept implies that the user has access to the files, and
they don't have access to internal storage except via your app (or
except via rooting their phone). You get your internal files directory
via a call to getFilesDir() on any Context.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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