Production ready product lazarus / 43-Android ---------------------------------------------------------------------- Packs · 2022-12-25 02:45 Lazarus android we can build production ready product Can we upload on Google Play Store apk Is there any app on Google Play Store ---------------------------------------------------------------------- Thaddy · 2022-12-25 09:02 Yes, follow these steps: https://www.cubix.co/blog/how-to-upload-app- to-google-play-store Will cost you a few $$, but cheaper than Apple. And yes, there are several apps in the play store written in Freepascal, mostly using Lamw. (some are announced on this forum) ---------------------------------------------------------------------- Packs · 2022-12-25 18:50 Please share the app which is developed in Lazarus. I would like to see the functionalities and smoothies ---------------------------------------------------------------------- Thaddy · 2022-12-25 19:40 Well, as I wrote, there are much more than one. Search the forum. You seem to bit lazy. ---------------------------------------------------------------------- loaded · 2022-12-26 07:47 An example from me; It's an app that I wrote entirely in Lazarus with the LAMW module (an obsolete CAD app) and published it on the play store (apprenticeship work) https://play.google.com/store/apps/details?id=com.cadplugin.emlakcad I have yet to release a more advanced app that I wrote with Android Studio + Lazarus. (journeyman's work) https://youtu.be/gBS0AMrJ50s ---------------------------------------------------------------------- Hansvb · 2022-12-26 09:30 What obsolete CAD app did you use? ---------------------------------------------------------------------- loaded · 2022-12-26 10:39 Quote from: Hansvb on December 26, 2022, 10:30:37 amWhat obsolete CAD app did you use? When I said old, I meant it wrong. (Due to the fact that 3 years have passed) I meant the first CAD application I wrote using Lazarus and LAMW. ---------------------------------------------------------------------- Hansvb · 2022-12-26 12:50 I looked at the youtube. It looks great. For my work i use Esri software for these things. You made this with only lazarus Pascal? ---------------------------------------------------------------------- loaded · 2022-12-26 13:34 I used java in Android Studio for interface and user interactions. Everything else that requires speed; -Reading and writing file formats (including whatsapp) -Creation of tree of drawing objects (polygon, polyline, circle, arc, text) -Making screen drawings -I wrote Lazarus + LAMW for the features of printing from the printer that I added later (No raster support yet - All sizes - Pdf) that are not in the video. Here is the method I used ; https://youtu.be/SCAOeAN3eU4 ---------------------------------------------------------------------- Hansvb · 2022-12-26 16:02 Have you seen mergin maps or qfield for qgis? What if there was an app like that writen is Pascal? Youre app looks a lot like them. I guess that it would be great for Pascal. ---------------------------------------------------------------------- loaded · 2022-12-26 16:44 Quote from: Hansvb on December 26, 2022, 05:02:05 pmHave you seen mergin maps or qfield for qgis? What if there was an app like that writen is Pascal? Youre app looks a lot like them. I guess that it would be great for Pascal. I knew qgis for windows (I was using it long ago) but I didn't know the mobile version of qfield. I learned from you, thank you very much. Actually, I was a Vb6 user (I even have a license ) I switched to pascal language just to write CAD program. And the experience I gained during this time; Pascal is like Aladdin's Magic Lamp, he gives you whatever you want. I think it is not very difficult, but it takes a lot of effort. ---------------------------------------------------------------------- Hansvb · 2022-12-26 17:05 Ok. My prgramming skils are not good enough to create something like that. I was thinking to create a programm that could convert Oracle sdo_ geometry to a Map. But i do not even know where to begin. ---------------------------------------------------------------------- loaded · 2022-12-26 18:21 Quote from: Hansvb on December 26, 2022, 06:05:27 pmMy prgramming skils are not good enough to create something like that. Rest assured, you're probably better than me. I have never used oracle. I usually use postgresql+postgis. I think the sdo_ geometry you mentioned is equivalent to this; http://postgis.net/workshops/postgis-intro/geometries.html I have displayed this type of geometry in the qgis application before. But on large datasets Qgis was very slow. Quote from: Hansvb on December 26, 2022, 06:05:27 pmBut i do not even know where to begin. If your goal is to draw; Define a rectangle that is a quarter of your screen resolution and draw it in the middle of the screen on the canvas. Then try to move this rectangle with the mouse. That is, apply the X-Y direction changes of mouse movements to your quadrilateral. This is how I understood the logic of drawing. I prepared a simple example for you, you can improve yourself with a little trial and error. But if there is a different logic, I don't know about it. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit Unit1; {$mode objfpc}{$H+} interface uses  Classes, SysUtils, Forms, Controls, Graphics, Dialogs; type   { TForm1 }   TForm1 = class(TForm)    procedure FormCreate(Sender: TObject);    procedure FormMouseDown(Sender: TObject; Button: TMouseButton;      Shift: TShiftState; X, Y: Integer);    procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);    procedure FormPaint(Sender: TObject);  private   public   end; var  Form1: TForm1;  mx,my:integer;  sc_x,sc_y,sc_w,sc_h:integer;implementation {$R *.lfm} { TForm1 } procedure TForm1.FormCreate(Sender: TObject);begin  sc_w:=round(ClientWidth/4);  sc_h:=round(ClientHeight/4);  sc_x:=round((ClientWidth/2)-(sc_w/2));  sc_y:=round((ClientHeight/2)-(sc_h/2));end; procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;  Shift: TShiftState; X, Y: Integer); begin   if Button= mbLeft then   begin   mx:=x;   my:=y;   end;end; procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,  Y: Integer);begin  if   ssLeft in Shift then  begin   sc_x:=sc_x-(mx-x);   sc_y:=sc_y-(my-y);   mx:=x;my:=y;   Invalidate;  end;end; procedure TForm1.FormPaint(Sender: TObject);begin  canvas.Rectangle(sc_x,sc_y,sc_x+sc_w,sc_y+sc_h);end; end. ---------------------------------------------------------------------- Hansvb · 2022-12-26 19:31 Thanks, I will look at it. ---------------------------------------------------------------------- Packs · 2022-12-27 00:23 Thanks. May I use pascal code for iOS development too ---------------------------------------------------------------------- VisualLab · 2022-12-27 01:07 QuoteMay I use pascal code for iOS development too Such possibilities are provided by the Delphi development environment. Unfortunately, Delphi is paid (and quite a lot). It is profitable for earning purposes. In addition, iOS development in Delphi requires the use of the FireMonkey (FMX) library. This library is a bit different from VCL (it is included in the Delphi bundle). P.S. Delphi uses the Object Pascal language (classes, etc.). ---------------------------------------------------------------------- PierceNg · 2022-12-27 02:02 Quote from: Prakash on December 27, 2022, 01:23:45 amThanks. May I use pascal code for iOS development too For native apps, doable in Free Pascal but will be a rough journey off the beaten track. Various pieces exist: cross compilers for iOS, an Objective Pascal dialect to interoperate with Objective C, translations of (by now old versions of platform) APIs into Pascal, and tools (built by others for other PLs) for command line work to minimize Xcode usage. You'll have to assemble the pieces into your own toolbox. It is also possible to use pas2js to implement PWAs. ---------------------------------------------------------------------- alpine · 2022-12-27 11:58 Quote from: loaded on December 26, 2022, 08:47:19 amAn example from me; It's an app that I wrote entirely in Lazarus with the LAMW module (an obsolete CAD app) and published it on the play store (apprenticeship work) https://play.google.com/store/apps/details?id=com.cadplugin.emlakcad I have yet to release a more advanced app that I wrote with Android Studio + Lazarus. (journeyman's work) https://youtu.be/gBS0AMrJ50s Komşu, You seem to have really mastered the Android/LAMW programming. My big admiration for that. ---------------------------------------------------------------------- loaded · 2022-12-27 13:11 Quote from: y.ivanov on December 27, 2022, 12:58:35 pmKomşu, Спасибо за содержательную мысль, брат. Quote from: y.ivanov on December 27, 2022, 12:58:35 pm[You seem to have really mastered the Android/LAMW programming. What I know, I learned from this forum. God bless all. By the way, let's give the right person his due; The king of the land of LAMW is Mr. Jmpessoa. Without his efforts, this work would not have been possible. ---------------------------------------------------------------------- alpine · 2022-12-27 13:51 Quote from: loaded on December 27, 2022, 02:11:04 pmQuote from: y.ivanov on December 27, 2022, 12:58:35 pmKomşu, Спасибо за содержательную мысль, брат. I pmed you. Quote from: loaded on December 27, 2022, 02:11:04 pmQuote from: y.ivanov on December 27, 2022, 12:58:35 pm[You seem to have really mastered the Android/LAMW programming. What I know, I learned from this forum. God bless all. By the way, let's give the right person his due; The king of the land of LAMW is Mr. Jmpessoa. Without his efforts, this work would not have been possible. My admiration goes for him, too. Moreover he is always on the line when there are any issues with LAMW. ---------------------------------------------------------------------- Thaddy · 2022-12-27 17:48 Well, yes, he made good code by the provided compiler by Jonas Maebe et all. It is not the wrong person - LAMW is great -, but the compiler team, in this case Jonas decided to make a native Android compiler. That happens every so often....Actually more: Android/Java and Android Native. Due where credit is due.