Discussion:
Finished full JVM Android application
Sven Barth
2011-12-26 16:40:01 UTC
Permalink
Hello together!

Today I've finished my first JVM Android application. This could as well
be the first (or at least one of the first) complete JVM Android app
written in Pascal at all!

The purpose of the application is for me to keep track which trains I
already rode with (most importantly trains of the subway of Munich). The
trains are categorized in train types and train families. E.g. one train
family would be the subway of Munich, another one is the subway of
Berlin and a third one would be the "suburban train" (S-Bahn) of Munich.
These families are subdivided into the types (for the U-Bahn in Munich
these are "Typ A", "Typ B", "Typ C") and then in each type there are the
single trains together with a count which tells how often I already rode
in that train.
So in the end this application is nothing special (but it simplifies my
life a lot ^^).

It's a conceptual port of an identical Windows Mobile application of
mine. I decided to rewrite it from scratch, because
1. my WinCE application used INI files as a data storage and for Android
I wanted to utilize SQLite
2. I wanted to experience the Android development without any
restrictions by old code.

I have not used Eclipse as an IDE, but only Lazarus, the tools from the
Android SDK and a Makefile for simplified building (and testing).

Attached are some screenshots of this application.

If there is interest I can publish the source code.

Regards,
Sven

@List admins: Sorry if the attached screenshots should be a little bit
to big (~46K).
Marcos Douglas
2011-12-26 16:48:01 UTC
Permalink
Post by Sven Barth
Hello together!
Today I've finished my first JVM Android application. This could as well be
the first (or at least one of the first) complete JVM Android app written in
Pascal at all!
The purpose of the application is for me to keep track which trains I
already rode with (most importantly trains of the subway of Munich). The
trains are categorized in train types and train families. E.g. one train
family would be the subway of Munich, another one is the subway of Berlin
and a third one would be the "suburban train" (S-Bahn) of Munich. These
families are subdivided into the types (for the U-Bahn in Munich these are
"Typ A", "Typ B", "Typ C") and then in each type there are the single trains
together with a count which tells how often I already rode in that train.
So in the end this application is nothing special (but it simplifies my life
a lot ^^).
It's a conceptual port of an identical Windows Mobile application of mine. I
decided to rewrite it from scratch, because
1. my WinCE application used INI files as a data storage and for Android I
wanted to utilize SQLite
2. I wanted to experience the Android development without any restrictions
by old code.
I have not used Eclipse as an IDE, but only Lazarus, the tools from the
Android SDK and a Makefile for simplified building (and testing).
Attached are some screenshots of this application.
If there is interest I can publish the source code.
Regards,
Sven
@List admins: Sorry if the attached screenshots should be a little bit to
big (~46K).
Great job!
I'm interested in the sources. Could you publish? Maybe on the Wiki?
Thanks for share.

Marcos Douglas

--
Sven Barth
2011-12-26 21:19:14 UTC
Permalink
Post by Marcos Douglas
Post by Sven Barth
Hello together!
Today I've finished my first JVM Android application. This could as well be
the first (or at least one of the first) complete JVM Android app written in
Pascal at all!
[snip]
Post by Marcos Douglas
Great job!
I'm interested in the sources. Could you publish? Maybe on the Wiki?
Thanks for share.
I will publish the sources as soon as I've cleaned them up a bit. Until
then I've started a info page about the development for Android using
FPC JVM here: http://wiki.freepascal.org/FPC_JVM_Android_Development
It's far from complete and perfect, but it's a start :)

Regards,
Sven

--
Sven Barth
2011-12-27 11:08:10 UTC
Permalink
Post by Marcos Douglas
Post by Sven Barth
Hello together!
Today I've finished my first JVM Android application. This could as well be
the first (or at least one of the first) complete JVM Android app written in
Pascal at all!
The purpose of the application is for me to keep track which trains I
already rode with (most importantly trains of the subway of Munich). The
trains are categorized in train types and train families. E.g. one train
family would be the subway of Munich, another one is the subway of Berlin
and a third one would be the "suburban train" (S-Bahn) of Munich. These
families are subdivided into the types (for the U-Bahn in Munich these are
"Typ A", "Typ B", "Typ C") and then in each type there are the single trains
together with a count which tells how often I already rode in that train.
So in the end this application is nothing special (but it simplifies my life
a lot ^^).
It's a conceptual port of an identical Windows Mobile application of mine. I
decided to rewrite it from scratch, because
1. my WinCE application used INI files as a data storage and for Android I
wanted to utilize SQLite
2. I wanted to experience the Android development without any restrictions
by old code.
I have not used Eclipse as an IDE, but only Lazarus, the tools from the
Android SDK and a Makefile for simplified building (and testing).
Attached are some screenshots of this application.
If there is interest I can publish the source code.
Regards,
Sven
@List admins: Sorry if the attached screenshots should be a little bit to
big (~46K).
Great job!
I'm interested in the sources. Could you publish? Maybe on the Wiki?
Thanks for share.
I have now uploaded the sources (licensed under GPLv2) to my webserver:
http://web390.server-drome.com/files/trainlog.zip

The readme.txt should hopefully help you to build the app. If not feel
free to ask ;)

Regards,
Sven


--
Marcos Douglas
2011-12-27 11:57:13 UTC
Permalink
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
Hello together!
Today I've finished my first JVM Android application. This could as well be
the first (or at least one of the first) complete JVM Android app written in
Pascal at all!
The purpose of the application is for me to keep track which trains I
already rode with (most importantly trains of the subway of Munich). The
trains are categorized in train types and train families. E.g. one train
family would be the subway of Munich, another one is the subway of Berlin
and a third one would be the "suburban train" (S-Bahn) of Munich. These
families are subdivided into the types (for the U-Bahn in Munich these are
"Typ A", "Typ B", "Typ C") and then in each type there are the single trains
together with a count which tells how often I already rode in that train.
So in the end this application is nothing special (but it simplifies my life
a lot ^^).
It's a conceptual port of an identical Windows Mobile application of mine. I
decided to rewrite it from scratch, because
1. my WinCE application used INI files as a data storage and for Android I
wanted to utilize SQLite
2. I wanted to experience the Android development without any restrictions
by old code.
I have not used Eclipse as an IDE, but only Lazarus, the tools from the
Android SDK and a Makefile for simplified building (and testing).
Attached are some screenshots of this application.
If there is interest I can publish the source code.
Regards,
Sven
@List admins: Sorry if the attached screenshots should be a little bit to
big (~46K).
Great job!
I'm interested in the sources. Could you publish? Maybe on the Wiki?
Thanks for share.
http://web390.server-drome.com/files/trainlog.zip
The readme.txt should hopefully help you to build the app. If not feel free to ask ;)
Thank you, Sven.
I'm not a Android developer (yet) but I wanted to see FPC working in a
real app. Very good!
I will study the code...

Marcos Douglas

--
Danilo Gropelo
2011-12-27 12:40:51 UTC
Permalink
Good job Sven, i will study the code too.

Thank you,

Danilo Gropelo
Post by Sven Barth
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
Hello together!
Today I've finished my first JVM Android application. This could as
well be
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
the first (or at least one of the first) complete JVM Android app
written in
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
Pascal at all!
The purpose of the application is for me to keep track which trains I
already rode with (most importantly trains of the subway of Munich).
The
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
trains are categorized in train types and train families. E.g. one
train
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
family would be the subway of Munich, another one is the subway of
Berlin
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
and a third one would be the "suburban train" (S-Bahn) of Munich. These
families are subdivided into the types (for the U-Bahn in Munich these
are
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
"Typ A", "Typ B", "Typ C") and then in each type there are the single
trains
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
together with a count which tells how often I already rode in that
train.
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
So in the end this application is nothing special (but it simplifies
my life
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
a lot ^^).
It's a conceptual port of an identical Windows Mobile application of
mine. I
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
decided to rewrite it from scratch, because
1. my WinCE application used INI files as a data storage and for
Android I
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
wanted to utilize SQLite
2. I wanted to experience the Android development without any
restrictions
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
by old code.
I have not used Eclipse as an IDE, but only Lazarus, the tools from the
Android SDK and a Makefile for simplified building (and testing).
Attached are some screenshots of this application.
If there is interest I can publish the source code.
Regards,
Sven
@List admins: Sorry if the attached screenshots should be a little bit
to
Post by Sven Barth
Post by Marcos Douglas
Post by Sven Barth
big (~46K).
Great job!
I'm interested in the sources. Could you publish? Maybe on the Wiki?
Thanks for share.
http://web390.server-drome.com/files/trainlog.zip
The readme.txt should hopefully help you to build the app. If not feel
free to ask ;)
Thank you, Sven.
I'm not a Android developer (yet) but I wanted to see FPC working in a
real app. Very good!
I will study the code...
Marcos Douglas
--
_______________________________________________
Lazarus mailing list
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Felipe Monteiro de Carvalho
2011-12-27 18:50:43 UTC
Permalink
Hello,

I have noticed this:

http://wiki.lazarus.freepascal.org/FPC_JVM_Android_Development#Patching_Lazarus

Is there a reason for it not being in the standard Lazarus? If not, I
will commit this patch.
--
Felipe Monteiro de Carvalho

--
Sven Barth
2011-12-27 19:03:04 UTC
Permalink
Post by Felipe Monteiro de Carvalho
Hello,
http://wiki.lazarus.freepascal.org/FPC_JVM_Android_Development#Patching_Lazarus
Is there a reason for it not being in the standard Lazarus? If not, I
will commit this patch.
As I've written in the wiki itself, I wanted to wait with this until the
JVM port is merged to trunk. But if the Lazarus dev think that it's ok
you're of course free to commit this to Lazarus (you might also want to
check other locations where an addition of "jvm", "android" and "java"
might be needed as the patch on the wiki is only a "quick and dirty" patch).

Regards,
Sven

--
Felipe Monteiro de Carvalho
2012-01-03 12:40:29 UTC
Permalink
As I've written in the wiki itself, I wanted to wait with this until the JVM
port is merged to trunk.
I commited in rev 34549
--
Felipe Monteiro de Carvalho

--
Sven Barth
2012-01-03 12:59:49 UTC
Permalink
Post by Felipe Monteiro de Carvalho
As I've written in the wiki itself, I wanted to wait with this until the JVM
port is merged to trunk.
I commited in rev 34549
Ok. Thank you.

Regards,
Sven

--

Michael Van Canneyt
2011-12-26 16:52:24 UTC
Permalink
Post by Sven Barth
Hello together!
Today I've finished my first JVM Android application. This could as well be
the first (or at least one of the first) complete JVM Android app written in
Pascal at all!
A nice christmas present for the whole FPC team, thank you :-)

Michael.

--
Sven Barth
2011-12-26 21:21:36 UTC
Permalink
Post by Michael Van Canneyt
Post by Sven Barth
Hello together!
Today I've finished my first JVM Android application. This could as
well be the first (or at least one of the first) complete JVM Android
app written in Pascal at all!
A nice christmas present for the whole FPC team, thank you :-)
I finally wanted to get that application done and I had some time over
the christmas holidays :)

In that sense: Merry Christmas! (Especially to Jonas who made this
possible :) )

Regards,
Sven


--
Loading...