Android Question SQLite "not an error"

Discussion in 'Android Questions' started by Rusty, Nov 15, 2015.

  1. Rusty

    Rusty Well-Known Member Licensed User

    I'm using an sqlcipher database v1.2 which is readable with an older program, but I'm trying to read the database with the test program from here .
    Each time I try to open the database, it gives an error "Not an error" and the database won't open.
    Any suggestions are greatly appreciated.


    I've included the file icudt46l.zip in my assets; I've supplied the correct password (verified); I've included both libraries SQL and SQLCipher; when I try to open the file with:
    Code:
    Dim SQL1 as SQLCipher
    ...

    If SQL1.IsInitialized = False Then
            
    Try
                SQL1.initialize(SQLDataBasePath, SQLDateBaseName, 
    False, SQLiteKey, File.DirAssets )
            
    Catch
                SQL1.initialize(SQLDataBasePath, SQLDateBaseName, 
    False""File.DirAssets )
            
    End Try
        
    End If
    I get the error message: Not an error
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    How did you create the database?
     
  3. Rusty

    Rusty Well-Known Member Licensed User

    I have a "base" file in my assets folder that is an Encrypted SQLite database with no tables. I copy it to the final location and then create the tables.
    In this program, I have copied the database with tables and data within to the final location. (currently this database is working in my main application).
    I'm sure it is something I'm failing to do.

    1. Included libs SQL and SQLCipher
    2. assets contains the file icudt46l.zip
    3. Declared: Dim SQL1 as SQlCipher
    4. opened as above..
    Is there something I'm forgetting? I've re-tested the database with an existing (production) program and it works fine.
    Thanks Erel
     
  4. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice