SQlCipher Android DataBase

Si blocca su SQLiteDatabase.loadLibs(this);

Ciao @Marchesotti,

Riesci a eseguire SQLCipher per Android suite di test sullo stesso dispositivo? Quali sono i tuoi risultati?

non riesco a compilare il programma , ho Android Studio 4.1.1

Ciao @Marchesotti,

Android Studio aprirà direttamente la suite di test SQLCipher per Android. Se ricevi un errore del compilatore, condividi. Avremo bisogno di ulteriori informazioni per aiutarti a risolvere il tuo problema.

This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.

Hi @Marchesotti

Can you try modifying this line to use the value 4.1.0?

Grazie sono riuscito ad implementare nel mio programma SQLChipher e tutte le funzioni , solo che oh un problema nella creazione TABLE
nel old programma uso SELECT_SQL = "SELECT * FROM "+TABLE_NAME_1;
d2b.execSQL(TABLE1); e funziona
con net.scqcipher non funziona ,
oh provato d2b.execSQL(“create table users(TABLE_NAME1)”);
mi da errore

Ciao @Marchesotti,

Qual è l’errore che ricevi quando tenti di creare la tabella? Se il database esiste già con uno schema, sarà necessario utilizzare la funzione di convinenza SQLCipher sqlcipher_export() per esportare il database da testo normale a crittografato. Sei riuscito a eseguire con successo la suite di test SQLCipher per Android?

Ciao e grazie per le tue risposte
sto provando a creare una Table in questo modo

d2b.execSQL(“create table if not exists codici( “ID integer primary key autoincrement,”+“descrizione text,”+”,utente text,"+“codice text)”);

Ciao @Marchesotti,

Che errore ricevi?

java.Lang.NullPointerException: Attempt to invoke virtul method ‘void net.sqlcipherdatabase.SQliteDatabase.exeSQL(java.Lang.String)’ on a null object reference

I have a DataBase developed with SQLITE can I transfer it to SQLCipher?

Hi @Marchesotti

Yes, you can use sqlcipher_export(...) to import a plaintext SQLite database into SQLCipher. We have an example within the test suite for Android here.

Installation did not succeed. The application could not be installed: INSTALL_FAILED_MISSING_SHARED_LIBRARY

Create new SQLcipher DataBase
Thank you

Hello @Marchesotti

Were you able to address the issue you were experiencing? It’s unclear from your latest response.

It was a problem related to AndroidManifest
Thanks for all the help

Hi @Marchesotti

Excellent, we are happy to hear everything is working now!

sqlcipher_export example  Anroid program

sqlcipher_export example Android programm