Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2024-10

Sqlite3 on Android

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Larry Dalton

I am writing an app for Android on Lazarus 3.4, fpc 3.2.2. It accesses an Sqlite3 database named ?Carsdatabase.db?. It is in the documents file on my Android phone. How do I enter the database name in Sqlite3connection? Sent from my iPhone

Reply by email

Jean SUZINEAU
to Larry Dalton

If you use LAMW, I think you can find the documents directory this way (assuming var jF: jForm; ):

DocumentsDirectory:= jF.GetEnvironmentDirectoryPath( dirDocuments);

I would be curious if you can open the database this way.

For my programs, due to to the various securities of Android, I needed to use the java APIs of Android to acces my SQLite databases, i.e. the jSqliteCursor and jSqliteDataAccess components of LAMW.

Reply by email

Larry Dalton
to Jean SUZINEAU

I will let you know

On Thu, Oct 31, 2024 at 17:59 Jean SUZINEAU via lazarus <

Show quoted text 20 lines
wrote: If you use LAMW, I think you can find the documents directory this way (assuming var jF: jForm; ): DocumentsDirectory:= jF.GetEnvironmentDirectoryPath( dirDocuments); I would be curious if you can open the database this way. For my programs, due to to the various securities of Android, I needed to use the java APIs of Android to acces my SQLite databases, i.e. the jSqliteCursor and jSqliteDataAccess components of LAMW. -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20241031/ae33e4f4/attachment.htm>

Reply by email