Re: [android-developers] How To Access Device Internal Storage?
Mark,
So the code below will work for both the sd card and the device built-in external storage?
if (Environment.MEDIA_MOUNTED.equals(state)) {
// Try to make directory on the SDcard or device built-in external storage.
subdirectory = Environment.getExternalStoragePublicDirectory("MyDirectory");
// Make sure the directory exists.
subdirectory.mkdirs();
} else {}
Thanks.
On Fri, May 11, 2012 at 2:16 PM, Mark Murphy <mmurphy@commonsware.com> wrote:
On Fri, May 11, 2012 at 5:12 PM, Ken Plumley wrote:You already have that code, in the true section of your if statement.
> Ok, that´s my confusion of the storage terms.
>
> What code do I use in the "else if statement" section to store files on the
> device built-in external storage?
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in DC: http://marakana.com/training/android/
--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home