Skip to content

Not working on Android #5

@ghost

Description

Hey I don't know if I am doing this correctly. Can someone check it, because I am unable to read my sqlite file on Android. It work on Windows. I know for the windows editor we need to add URI=file:, but I wasn't sure if we do that for android as well. PS. I haven't tested it on iOS yet, so if iOS is also wrong, please let me know. Thanks!


if (Application.platform == RuntimePlatform.WindowsEditor) connection = "URI=file:" + Application.dataPath + "/StreamingAssets/Save File.db";
if (Application.platform == RuntimePlatform.Android) connection = "jar:file://" + Application.dataPath + "!/assets/Save File.db";
if (Application.platform == RuntimePlatform.IPhonePlayer) connection = Application.dataPath + "/Raw/Save File.db";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions