Is it possible to read/write to SQLite on a removable USB Flash Drive,

  • Thread starter Thread starter Android Central Question
  • Start date Start date
A

Android Central Question

Is it possible to read/write to SQLite on a removable USB Flash Drive, by this I mean the app is installed on the phone, but the data used by the app would be stored on a removable USB flash drive that plugs into the USB/Charging port.

I have been reading a lot and for the most part references to this suggest the data must be in the same location as the app. I need the data to be external to the app so different databases can be used as required. If it is possible, I would appreciate a reference to some example or explanation.

thanks
 
Can you specify the directory the database is in, in the code? Or do you just specify the name of the database file and it defaults to ./?
 

Trending Posts

Forum statistics

Threads
956,412
Messages
6,968,105
Members
3,163,539
Latest member
mom1988