-1

I created JSON files on my Android using something like this: https://stackoverflow.com/a/33572815/1075211

The files are now stored in /data/user/0/com.xxxxx.collector.

But how do I now transfer those files to my PC?

1
  • I don't get it why my answer was being closed. I need to get data from my phone. I've seen a dozen questions covering ADB and stuff already – keinabel Oct 5 '16 at 9:10
1

You have saved the file in athe app-private directory. As it name indicates it is private therefore you can't access any files in there unless you have rooted your phone (or use the work-around via adb backup and then extract the backup using ABE).

If you want to save a file that will be copied later outside of your phone save it onto the sd-card section getExternalStorageDirectory(). Then you can pull it from the device via adb pull.

2
  • So I need an SD card? – keinabel Sep 29 '16 at 11:21
  • No. getExternalStorageDirectory() usually points to the internal storage. – Robert Sep 29 '16 at 11:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.