Vamshi
Vamshi

Reputation: 1495

Not able to read the database when connected to android mobile

I have a sqlite database developed in iphone application, i have copied the database in to emulator ( copied in to package databases folder). I am able to read and everything is working fine using emulator, but when i connected to android mobile i am not able to read the database, and exceptions are coming that no such table etc.. How to solve it?

Upvotes: 1

Views: 207

Answers (1)

tomato
tomato

Reputation: 3383

How are you copying the Sqlite database on to the mobile device? Are you bundling it with the APK?

If you are just attempting to upload it via the ADB, you will not be able to as physical devices are locked down for security reasons to stop people implanting/stealing data on real devices.

I suspect the upload has simply not worked on the physical device which is why you are seeing "missing table" type errors.

Upvotes: 1

Related Questions