Hello jmpessoa, and thanks a lot for Your help.
I am trying to create an app that uses a salite database, but without buttons to create/open database/tabes
Actually I use your code of the SQLite Demo 1 in order to crate the objects. As you suggested in your last post, I use the OnJNIPrompt Method to invoke the creation of database and table, but when i run in my mobile I never get the last showmessage.
I attach one image of the message window.
Is there something I am missing?
Regards!!
procedure TAndroidModule1.OnJNIPrompt(Sender: TObject);
begin
Access.OpenOrCreate('Data.db');
Access.CreateTable('CREATE TABLE IF NOT EXISTS '+ FTableName +'(_ID INTEGER PRIMARY KEY AUTOINCREMENT, TITLE TEXT,AUTHOR TEXT, COUNT INTEGER, FIGURE BLOB);');
ShowMessage('table created!');
end;