Sign in Join

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

Mailing lists / fpc-other / 2020-08

who of us could try to improve javcl project

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Mgr. Janusz Chmiel

Dear specialists,
Who of us does think that The following Pascal for Android package could be extended to support Android API calling, including .jar libraryes to compiled .dex and other modern features?

https://sourceforge.net/p/javavcl/code/HEAD/tree/

Project have tried to emulate VCL style libraryes while creating GUI for Windows Java compiled .jar packages or for Android. When I have fighted with this project, I had difficulty to unerstand how to interact with Android API functions.
Sure. We have Pandroid, Lamw and may be other hydden secret bundles on The world.
But I only think, how complex would be to extend this project to support all possible GUI object types for Android and how complex would be to explain or add better Android API interaction routines?

May be, that advanced professionals here will deeply analyse this bundle and may be, that somebody very smart would give users of this mailing list some example. Or some patch which will allow to call Android API functions. Thank you very much for yours time and for yours understanding. With deepest appreciation and with kindness regards. Janusz Chmiel

Reply by email

Mgr. Janusz Chmiel
to Mgr. Janusz Chmiel

The main reason why I Am opening this topic is The fact, that there is currently no Opensource or free project, which would support all possible GUI object types for Android when I Am not writing about Lamw. Lamw will be never usable for visually impaired programmers, because it is necessary to respect its visual based design. LFM language require using object position values.
Pandroid support some basic object types, but adding next 40 or more GUI Android element types such as tree view, combobox, checkbox, checklist is very complex for A standalone Pandroid author.
As A result it is not possible to use The most modern Android features by visually impaired Pascal programmers.
Lamw do not support all Android APi functions too, it do not contain wakelock support, ignore battery optimisations, etc. The question is, if somebody would have A good will to make this free project. Because if it will be only attractive for visually impaired users, it will not be attractive for somebody advanced to vaste his expensive programming time.
How to solve this rebus?
Sure, I Am ready to test. BUt it is too little for such project.

Reply by email

Sven Barth
to Mgr. Janusz Chmiel

Best ask your questions related to Android (be it with JVM or not) on https://forum.lazarus.freepascal.org/index.php/board,43.0.html for native Android and
https://forum.lazarus.freepascal.org/index.php/board,56.0.html for JVM. There are more users registered that can help than here on fpc-other. Not to mention the developer of LAMW is there as well who might be willing to help improve LAMW for your needs (also it should be possible to use LAMW without LFM files and instead generate the components in code).

Regards,
Sven

Mgr. Janusz Chmiel wrote 23 lines
The main reason why I Am opening this topic is The fact, that there is currently no Opensource or free project, which would support all possible GUI object types for Android when I Am not writing about Lamw. Lamw will be never usable for visually impaired programmers, because it is necessary to respect its visual based design. LFM language require using object position values. Pandroid support some basic object types, but adding next 40 or more GUI Android element types such as tree view, combobox, checkbox, checklist is very complex for A standalone Pandroid author. As A result it is not possible to use The most modern Android features by visually impaired Pascal programmers. Lamw do not support all Android APi functions too, it do not contain wakelock support, ignore battery optimisations, etc. The question is, if somebody would have A good will to make this free project. Because if it will be only attractive for visually impaired users, it will not be attractive for somebody advanced to vaste his expensive programming time. How to solve this rebus? Sure, I Am ready to test. BUt it is too little for such project. _______________________________________________ fpc-other maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-other

Reply by email

Mgr. Janusz Chmiel
to Sven Barth

Dear MR Barth,
Thank you for yours kind answer. I Am very sad, that you are not my father. Because if you were my father, we could learn all secrets of PPCJVM and Android API functions together. I have do my best to always appreciate all authors of opensource software. Lamw have many advantages and it will be very probably The most successfull Pascal bundle, because it uses attractive visual designer for The sighted majority.
As A contrast, because not all Androoid API functions can be only accessed by using JNI, because some Android API functions need to relay on some tasks on The background, The Pandroid bundle is The most universal project available.

I only have to learn several procedures names and those parameters and its order to develop excellent apps. I only have to be patient and I must do my best to not be lazy.
The reality is, that thanks to Pandroid, author MR swianovic, we have been able to create simple but powerful radio player which even autodetect incoming phone calls. I have tested it for Android 6, 8 and 9 operating system. The excellent fact is, that GUI creation routines build in to Pandroid units are really very universal. And that I can really code without using number position values.

I have debated with MR Pessoa, with The main author of Lamw. Unfortunately, his projects is strictly based on .lfm forms. I would had to code lfm forms from head to have success. And atleast first GUI element must have all its position numbers assigned.

But I will continue to use Pandroid packge for Windows. Because it work for my personal needs. My most painful problems will be always with Android API functions. Some of them may be not created correctly in Android Pascal header units. Some of them require Java language knowledge to use them correctly.
But since I do not I will need mostly?
Android media player, Bass.so native library, and AndroidR25 APIS, which are very robust. I can even use ignore battery ptimisation dialog. Sure. FInding The code which will recal its simple form is not easy task, but I have something to think about so I will not be sad because I have something useful to think about.
So dear MR Barth, thank you again for yours time and for yours kind access to all of my pleas.
Pascal language is making me really very big joy on my life. Because created Classes code is reliable. If app gets unstable, it is always The bug of some human being. But compiler produces really reliable Classes. Which are compatible even with Android 9 and newer.
Unfortunately, there will come time, when it will be necessary to reprogram RTL units to work with Android 10 or 11. For now, fortunately, GUI creation routines work with ANdroidR25. And build in Android 9 warning about using old Android targets is not making troubles, if I will use AndroidR25 target APIS.
My mother have very big joy with my little radio player. Memory allocations are also very good. App do not consume too much CPu time. If I would want to save The future of Pascal programming for Android, I would had to study hard to develop reliable Android APi headers generator, which will really generate 100 % working Android Pi header files. I would had to develop some automated testing tool for such purposes. But it is far future for now.

Reply by email