File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Access right on Data Folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Access right on Data Folder" Watch "Access right on Data Folder" New topic
Author

Access right on Data Folder

Pratik Goswami
Ranch Hand

Joined: Mar 02, 2009
Posts: 136

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


iOS * Android Developer
Mark L. Murphy
Author
Ranch Hand

Joined: Feb 11, 2009
Posts: 131
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?


Mark Murphy (a Commons Guy)
Author of The Busy Coder's Guide to Android Development http://commonsware.com/Android/
Pratik Goswami
Ranch Hand

Joined: Mar 02, 2009
Posts: 136

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

Joined: Feb 11, 2009
Posts: 131
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access right on Data Folder