Filled shapes lazarus / 43-Android ---------------------------------------------------------------------- tango13 · 2021-05-11 10:27 Hi everybody, I just came across LAMW and the possibility to develop for Android with Lazarus, which is simply amazing! So first of all, allow me to send a biiiiig thank you to the developers, keep up this great work! I just started to learn and to know the environment, so I might ask something trivial: is there a way to draw, in jdrawingview for instance, some filled shapes like rectangles, circles etc.? Thank you very much. ---------------------------------------------------------------------- Bart · 2021-05-11 12:05 TShape perhaps? You can simply drop it on afrom and set it's properties. Bart ---------------------------------------------------------------------- jmpessoa · 2021-05-11 14:14 What about "Demos"? AppDrawingViewDemo1 AppDrawingViewDemo2 AppDrawingInBitmap AppDrawingInBitmapAndDensity ColorPicker AppSurfaceViewDemo1 AppGridColorPickerDemo1 I don't remember about "filled shapes" ... ---------------------------------------------------------------------- tango13 · 2021-05-12 07:51 I'll take a look and let you know. Thank you. Ciao ---------------------------------------------------------------------- tango13 · 2021-05-12 11:42 I'm having problems compiling demos, I always get a "system unit not found" error. Am I missing something? (obviously yes...  ) Thank you. ---------------------------------------------------------------------- rsu333 · 2021-05-12 14:33 I am  not insulting previous answers but I like to suggest use one more laz4android 2.0.0 [available in laz4apk  [previous version ],  as beginner I am doing same  to learn demos . ---------------------------------------------------------------------- jmpessoa · 2021-05-12 15:30 Hi. tango13! How you get your "Lazarus for Android"? ---------------------------------------------------------------------- tango13 · 2021-05-12 16:48 With LAMW Manager (on Windows 10) which, by the way, is just great! Thank you. ---------------------------------------------------------------------- jmpessoa · 2021-05-12 16:57 @tango13 Can you create a new LAMW project and put the "*.lpi" file here? ---------------------------------------------------------------------- tango13 · 2021-05-13 07:14 Thanks for your suggestion, it worked and now at least I can compile the code. However, I still get an error while building the apk, the error is "Error: \path\to\file\Controls.java:2675: error: package R does not exist". Can I try anything else? Thanks a lot! ---------------------------------------------------------------------- jmpessoa · 2021-05-13 13:37 @Tango13 Can you do some test? Please, change the "Controls.java" line 2675: [LAMW folder "......\android_wizard\smartdesigner\java"] old: 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   Class res = R.drawable.class;  to 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  Class res = android.R.drawable.class; ---------------------------------------------------------------------- tango13 · 2021-05-13 17:04 Ok, it seems that we are moving forward  On the lines  Class res = R.drawable.class; your suggestion made the error disappear. However, there are more lines with the same error, lines like 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  dw = drawableToBitmap (this.controls.activity.getResources().getDrawable(R. drawable.ic_launcher));If I make the same modification I get a "cannot find symbol" error. Oh, and I forgot to mention that I get errors also in jCommons.java, in lines like return  R.color.accent; The error is the same "package R does not exist". Thank you. ---------------------------------------------------------------------- jmpessoa · 2021-05-13 21:22 Well, if you got error here: 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 dw = drawableToBitmap (this.controls.activity.getResources().getDrawable(R. drawable.ic_launcher));  then your project is  messy! So, please,  create a NEW project!!!!