Tuesday, August 6, 2013

Re: [android-developers] Re: Writing file to app folder

If the device runs Android 3.0 and above, you will need to submit the file to the media scanner before it's picked up by the MTP provider.

Oh, and it looks like your file is in the app's private area -- not sure if that's at all accessible via MTP (and definitely requires rooting to see in a file manager).

-- K


2013/8/7 dashman <erjdriver@gmail.com>
This is a Droid Razr HD.

I don't get a prompt to mount.

USB debugging is enabled and it auto connects via MTP.

In Windows Explorer, I can access the device storage - but
there's no virtual drive (e.g. F:) created.




On Tuesday, August 6, 2013 1:59:21 PM UTC-4, dashman wrote:
I'm writing a data file to my app folder

/Android/data/<package>/files

and the file is visible from my android phone file explorer app.

But when I use the desktop Windows file explorer - it's not visible.


This is how i'm writing the file out:

        File storageFolder = mContext.getExternalFilesDir(null);

                java.io.BufferedWriter out = new java.io.BufferedWriter( new java.io.FileWriter( storageFolder.getAbsolutePath() + "/temp.txt") );


As written above - the file is written out - verified.



--
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate