This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes Content Provider for sdcard 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 "Content Provider for sdcard" Watch "Content Provider for sdcard" New topic
Author

Content Provider for sdcard

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

How to create the content provider for sdcard.
We have the facility for SQLite but I want to know can we create the private folder on sdcard using content provider ?So that other apps cannot access it .


http://www.androcid.com/
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Content providers are used to serve data related to an application. Generally content providers use SQLite database, but you can create a content provider which uses other storage technique (or even not store the data anywhere and fetch it from internet or other sources). Basically your question is can we store files on the SD card which only our application can access, its given in google docs
Files saved to the external storage are world-readable and can be modified by the user when they enable USB mass storage to transfer files on a computer.


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

Ankit Garg wrote:Content providers are used to serve data related to an application. Generally content providers use SQLite database, but you can create a content provider which uses other storage technique (or even not store the data anywhere and fetch it from internet or other sources). Basically your question is can we store files on the SD card which only our application can access, its given in google docs
Files saved to the external storage are world-readable and can be modified by the user when they enable USB mass storage to transfer files on a computer.


Yes but other applications can access those files.
I do not want to share those docs with other apps.
 
jQuery in Action, 2nd edition
 
subject: Content Provider for sdcard
 
Similar Threads
How to find out programatically that file is already exist or not?
how to create sdcard and mount on the emulator
How would you create a Content Server/Provider using J2EE
About applications that have more than one apk...
Can I send MMS