on 2015 Aug 08 6:59 AM
Hello, i have an application that was working fine till a customer upgraded his tablet to Android 5.0. The database was stored on the SD Card, but after the upgrade there is no access to it. I am trying to create the database on the default ultralite database location but with no success. Any help will be appreciated
string exStorageDir = Android.OS.Environment.ExternalStorageDirectory.AbsolutePath;
dbLocation = System.IO.Path.Combine(exStorageDir, DatabaseName);
IConnection dBConnection = null;
IConfigPersistent Config = DatabaseManager.CreateConfigurationFileAndroid(dbLocation,ctx);
Config.CreationString = "collation=1253ELL;";
dBConnection = DatabaseManager.CreateDatabase(Config);
Object reference not set to an instance of an object at RetailMobile.Sync.GenerateDatabase (Android.Content.Context ctx) [0x002c3] in d:\\Projects\\RetailMobile\\RetailMobile\\Sync.cs:413 at RetailMobile.Main.OnCreate (Android.OS.Bundle bundle) [0x0011e] in d:\\Projects\\RetailMobile\\RetailMobile\\Main.cs:132
I tried with any other directory, not only external dir - files path dir, root dir, but always the same.
Thanks Andy, I found what was causing the problem. The folder that "libultralitej12.so" should be in, must have the same name as the device’s architecture. So if you want to support different architectures you should put the file in all folders - "armeabi", "armeabi-v7a", "x86"... 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good, but FYI: libultralitej12.so is a native library built for ARM architectures and so will not work on x86. X86 support will be available in SQLA 17.0.
User | Count |
---|---|
62 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.