dimanche 7 juin 2015

URI for Sqlite-net for iOS or Android

I have an app I have built in Unity, written in C# with MonoDevelop. I use sqlite for data storage, and the sqlite-net project to use it.

In iOS, my URI is:

file:<path to my db>

Not having file: in the URI for iOS causes the db to fail to open.

For Android, using this URI, I kept getting the mysterious error 14, CannotOpen. Of course, I tried almost everything except looking at the URI, since the format looked good. But, then stumbled on removing the "file:" prefix as a solution.

Thus for Android, my URI is:

<path to my db>

My question is why is this happening? Why is there a difference?

Aucun commentaire:

Enregistrer un commentaire