gonzobrains
gonzobrains

Reputation: 8036

Can Android SQLiteDatabase.openDatabase() be used to open a remote sqlite database?

I want to open a remote sqlite database with a url such as:

http://www.mysite.com/db.sqlite

Can I use SQLiteDatabase.openDatabase() for this? If not, what's the right way to do it?

Upvotes: 2

Views: 1865

Answers (2)

It needs to be a file on the device or SD card.

Official Android Docs

Upvotes: 2

kosa
kosa

Reputation: 66657

I don't think you can use it for remote sqllite database call. When your database is remote, you will end up making web service call to service hosted on your database server, which returns either XML/JSON formatted data.

Upvotes: 0

Related Questions