my dog learned polymorphism*
The moose likes Android and the fly likes [Q] how to access the android file system? 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 "[Q] how to access the android file system?" Watch "[Q] how to access the android file system?" New topic
Author

[Q] how to access the android file system?

Nickey Pugaz
Greenhorn

Joined: Feb 13, 2012
Posts: 3
Hello,

My objective is to create a text file in an android file system.

Using java language, I am creating an app. It has a screen with a table of 3columns. Each time a user enters the table row and click on Submit button, the row entry should be created as a separate comma-separated file on an android device. So each time when the table gets updated with new entry and clicks a submit button, a new file is getting created on the device file system. So I am looking for the file connectivity to the internal device memory where I could open the files and access it.

I have done the same in Nokia mobiles using J2ME. But for Android, I am not able to find the device file path. Please help me with the details!

Thanks in advance!
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Check out http://developer.android.com/training/basics/data-storage/files.html
Also check out http://www.vogella.com/articles/AndroidFileBasedPersistence/article.html which shows you how to use the preference api


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Q] how to access the android file system?