robertohuertasm / SQLite4Unity3d

SQLite made easy for Unity3d
MIT License
1.28k stars 265 forks source link

Proplem with Android 6.0 #41

Closed parker87tinh closed 8 years ago

parker87tinh commented 8 years ago

Hello. i have been used this flugin for my project on unity 5.2.2 and its working on android OS smaller 5.0. Recently i just bought a new device that run on Android 6.0. then i got proplem with null data on android 6.0. -So do you have any idea about this bug? Thanks.

robertohuertasm commented 8 years ago

I though that Androd 6.0 was working ok as per #27 but maybe no one has pointed out any issue until now. Could you be more specific? What kind of error? Stack trace? Context?

parker87tinh commented 8 years ago

Hello. Thanks for you answer. i am using this code to real SQLite file:

if UNITY_ANDROID

        var loadDb = new WWW("jar:file://" + Application.dataPath + "!/assets/" + databaseName);  // this is the path to your StreamingAssets in android
        while (!loadDb.isDone) { }  // CAREFUL here, for safety reasons you shouldn't let this while loop unattended, place a timer and error check
        // then save to Application.persistentDataPath
        File.WriteAllBytes(filepath, loadDb.bytes);

==> i thinks the proplem come from path on android 6.0.

Any thought about this?

robertohuertasm commented 8 years ago

But what's the exception? Can you test the example on this repository in your new device to see what's going on? I mean, just to see if is something specific of your code instead of something caused by the library itself. Thanks! 👍

robertohuertasm commented 8 years ago

@parker87tinh Any news on this matter?

robertohuertasm commented 8 years ago

Hi @parker87tinh I will proceed to close this item as I don't have any feedback from you. If you answer to this I will reopen it gladly.