Recent

Author Topic: LAMW: jSqliteDataAccess  (Read 2021 times)

c4p

  • Full Member
  • ***
  • Posts: 157
LAMW: jSqliteDataAccess
« on: January 04, 2018, 10:37:41 pm »
Database is being created but just can't find it, should be something like (/storage)/data/user/0/blah.blah.blah/databases/database.db on API25? also tried sdcard etc. etc.
Tried FullPathDataBaseName too, still nothing
Native jSqliteDatasAccess.java says storageDirectory and fullpath should be datadir/databases (internal app database path)
Am I overlooking something obvious?
:'(
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW: jSqliteDataAccess
« Reply #1 on: January 05, 2018, 12:03:18 am »

Quote
Database is being created but just can't find it...

Yes,  you cant "see" internal app storage ....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

c4p

  • Full Member
  • ***
  • Posts: 157
Re: LAMW: jSqliteDataAccess
« Reply #2 on: January 05, 2018, 12:22:46 am »
Used GetFullPathDatabaseName() and it says it is at /data/user/0/blah.blah.blah/databases/database.db but not visible as you said, I can create another dir/filename of the same name...weird, guessing this is a security protocol.

I can copy the DB out using Filecopy, so all good  :)

Thanks again.
« Last Edit: January 05, 2018, 01:05:17 am by c4p »
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

 

TinyPortal © 2005-2018