• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Content Provider for sdcard  RSS feed

 
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Sheriff
Posts: 9613
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
chetan dhumane
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!