Sign in Join

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

Mailing lists / lazarus / 2011-12

Finished full JVM Android application

12 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

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).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot1.png
Type: image/png
Size: 4659 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111226/6c05aa46/attachment-0005.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot2.png
Type: image/png
Size: 7079 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111226/6c05aa46/attachment-0006.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot3.png
Type: image/png
Size: 5031 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111226/6c05aa46/attachment-0007.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot4.png
Type: image/png
Size: 22510 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111226/6c05aa46/attachment-0008.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot5.png
Type: image/png
Size: 7871 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111226/6c05aa46/attachment-0009.png>

Reply by email

Marcos Douglas
to Sven Barth

2011/12/26 Sven Barth :

Show quoted text 36 lines
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

Reply by email

Sven Barth
to Marcos Douglas: 2011/12/26 Sven Barth : Great job! I'm interested in the sources. Could you publish?…
Marcos Douglas wrote 6 lines
2011/12/26 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]

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

Reply by email

Sven Barth
to Michael Van Canneyt: A nice christmas present for the whole FPC team, thank you :-) Michael.
Michael Van Canneyt wrote 11 lines
On Mon, 26 Dec 2011, Sven Barth wrote: > 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

Reply by email

Sven Barth
to Marcos Douglas: 2011/12/26 Sven Barth : Great job! I'm interested in the sources. Could you publish?…
Marcos Douglas wrote 41 lines
2011/12/26 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

Reply by email

Marcos Douglas
to Sven Barth
Sven Barth wrote 52 lines
On 26.12.2011 17:48, Marcos Douglas wrote: > > 2011/12/26 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 ;)

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

Reply by email

Danilo Gropelo
to Marcos Douglas

Good job Sven, i will study the code too.

Thank you,

Danilo Gropelo

2011/12/27 Marcos Douglas

Show quoted text 82 lines
On Tue, Dec 27, 2011 at 8:08 AM, Sven Barth wrote: > > On 26.12.2011 17:48, Marcos Douglas wrote: >> >> 2011/12/26 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 ;) 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111227/cf8a3a98/attachment.html>

Reply by email

Sven Barth
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 9 lines
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.

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

Reply by email