Results 1 to 2 of 2

Thread: App using sqlcipher on Android crashes at start up.

  1. #1
    Join Date
    Dec 2010
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default App using sqlcipher on Android crashes at start up.

    Hi,

    I've been using sqlcipher on Linux desktop with no problem so far, and trying to port my applications to Android. However the application crashes at start up. I've bundled the binary libsqlcipher.so compiled from https://github.com/sqlcipher/android-database-sqlcipher with the Qt app.

    According to the Readme.md on the github;

    We’ve packaged up a very simple SDK for any Android developer to add SQLCipher into their app with the following three steps:

    1. Add a single sqlcipher.jar and a few .so’s to the application libs directory
    2. Update the import path from android.database.sqlite.* to net.sqlcipher.database.* in any source files that reference it. The original android.database.Cursor can still be used unchanged.
    3. Init the database in onCreate() and pass a variable argument to the open database method with a password:


    SQLiteDatabase.loadLibs(this); //first init the db libraries with the context
    SQLiteOpenHelper.getWritableDatabase("thisismysecr et"):
    Is there something that I have missed in deploying sqlcipher bundled with Qt application on Android platform?

    Thanks.

  2. #2
    Join Date
    Dec 2010
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: App using sqlcipher on Android crashes at start up.

    Turns out that it's the latest sqlcipher from the git that causes the problem.

    Thanks

Similar Threads

  1. QT Android application crashes at startup when adding libvlcjni.so
    By lqsa in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 3rd April 2016, 00:01
  2. QT Android application suddenly crashes
    By Reiji in forum Qt Programming
    Replies: 1
    Last Post: 3rd June 2015, 13:25
  3. Qt/QML application crashes at start-up in Debug Mode
    By alizadeh91 in forum Qt Programming
    Replies: 0
    Last Post: 27th November 2014, 18:48
  4. QTCreator crashes on start libgl error
    By enricong in forum Qt Tools
    Replies: 0
    Last Post: 22nd May 2014, 13:50
  5. Need help with using SqlCipher in Qt5.1.1.
    By webjack in forum Qt Programming
    Replies: 2
    Last Post: 17th April 2014, 00:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.