• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Access right on Data Folder

 
Ranch Hand
Posts: 136
Android Mac Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello mark..Warm welcome to this forum.

I am developing an application in which i have to show list of all files and folders including Data folder, but using the File Explorer program (that is already developed)the data folder is not accessible. I have tried to list all files using File class' listFiles() method but it skips the Data folder. Is there any way to access the same?

Thanks in advance
Pratik Goswami

 
Author
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If by "the Data folder" you mean /data, that folder is inaccessible on a device except by system processes.

If you mean something else, could you explain further?
 
Pratik Goswami
Ranch Hand
Posts: 136
Android Mac Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi mark.
Ya, I meant /data folder. Sorry for mistake.
So if /data folder is not accessible then how to fetch data from that it? There is no way to get it?
 
Mark L. Murphy
Author
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

So if /data folder is not accessible then how to fetch data from that it? There is no way to get it?



Your application has access to its own private portion of /data (/data/data/your.java.package.name/files). If I recall correctly, you can use adb push and adb pull to manipulate files in the private data areas of your debug apps. However, you cannot "explore" it because you do not have read access to /data.
 
Not so fast naughty spawn! I want you to know about
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic