aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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: 9319
    
  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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Content Provider for sdcard