Puneet Chugh
Puneet Chugh

Reputation: 93

Android Database in app space or sdcard

I am working on an Android App that will have a database. I am sure that the database will grow big. Is it a good idea to create the database in the App Space or sdcard, especially when you know that it will grow big ?

Are there any security concerns if we use sdcard for the database ?

Upvotes: 2

Views: 50

Answers (1)

Budius
Budius

Reputation: 39846

Use the app space. Even if it will grow bigger. Use the app space.

on SD-Card your database can:

  • be deleted by the user
  • be deleted by applications with WRITE_STORAGE access
  • be physically removed from the device (removing the SD-card)
  • be read/write by everyone (including other developers and users).
  • it can be read/write by the user by removing the SD-card and connecting it to his computer.

Upvotes: 3

Related Questions