Emulator and Sqlite connection

genius

New Member
Licensed User
Longtime User
Is there a way to connect to an Sqlite db located in my PC from the Emulator?
 

klaus

Expert
Licensed User
Longtime User
Yes, but not directly, you can use either:
Use the ddms program, for more details search in the forum about it.

Or use the following:
- On the PC, copy the db into the Files folder of your project.
- In the code copy the db from the Files folder (File.DirAssets) to another folder for example Files.DirInternal.
The File.DirAssets folder is read only, that's the reason why you need to copy the db to another folder.

Best regards.
 
Upvote 0
Top