wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 2
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: 10167
    
    8

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?
 
Similar Threads
Servlet filter being invoked twice per request by Container.
Adding new elements to table in struts 1.2
Table distortion on form submission
Disabling form elements on a table row
JSF bean & display out of sync issue