Lazarus
Programming => Databases => Topic started by: bruce.button on September 20, 2016, 04:32:21 pm
-
I would love to know whether it is practical at this stage to use Lazarus to develop a database app for Andoid (with sqlite).
If so, could someone point me to some tutorials/other info which will help me to get started.
Thanks in advance!
Bruce
-
I personally think Lazarus for Android development now is not ready for production use. If you're thinking to develop your commercial database app for Android, you may try other commercial tools first. But if it is for hobby or non-paid projects, you really should give Lazarus a try.
There are several options to build Android apps using Lazarus. Each of them has their own advantages/disadvantages. But all of them still has some bugs and not very suitable for serious projects. If you don't mind those minor issues, well I think you now can pick one or try all of them and start learning now. They're improving and when you already understand how to use it to build the app you want, it maybe ready too for production use.
In this post I listed all the options I know for building Android app using Lazarus:
http://forum.lazarus.freepascal.org/index.php/topic,33487.msg217112.html#msg217112
After several tests, I choose LAMW, which I think is suitable to me. I just checked the component listed in the component tabs, yes it has jSqliteDataAccess and jSqliteCursor.
-
Thank you, Handoko, for those helpful pointers. I will look into LAMW.
-
LAMW +1 !
LAMW and mORMot +2 !!
The mORMot makes flexible database apps on Android very easy !
And, by changing one line of code, can be changed from local SQLite3 into remote REST.
And this remark is based on real experience (real Android apps), not by features (docs) !
-
The mORMot makes flexible database apps on Android very easy !
I can confirm that. Lazarus/FPC + mORMot works amazing on Android platform for production.
-
You can also take a look into these JVM based db examples:
https://github.com/zeljkoc/pandroid/tree/master/example
-
LAMW +1 !
LAMW and mORMot +2 !!
The mORMot makes flexible database apps on Android very easy !
And, by changing one line of code, can be changed from local SQLite3 into remote REST.
And this remark is based on real experience (real Android apps), not by features (docs) !
Excuse me for writing in Dutch, but
"Wij van WC eend adviseren WC eend."
Both are a bit right, but this is not an advertising platform.
-
Thanks again for the suggestions. mORMot looks good, but a bit of a learning curve (for me, at least). Are there any simple tutorials for developing Android apps using mORMot?
-
Maybe a very good tutorial with good examples of mormot will help a lot of other people for using it. There is a great documentation., but not really tells from the beginning how it works.
-
There is a LAMW mORMOt sample to start with !
https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/demos/Eclipse/AppmORMotDemo1
It mimics sample 1 of the mORMot demos.
But learning the mORMot is best to be done by just trying the provided samples on Windows or Linux.
The forum and author are also very helpfull and responsive.
-
Thank you. I'll have a look at that.