Pascal4Android IDE V0.1.0 beta world premiere lazarus / 56-Android-JVM ---------------------------------------------------------------------- bugxiong · 2012-12-21 07:43 http://www.fpccn.com/forum.php?mod=viewthread&tid=2412 Pascal4Android introduced Software version: 0.1.0 Document version: 0.1.0 Date :2012-12 Author: Shen Xue Hua QQ: 1339838080 Chapter 1 introduces the 1.1 About this guide The the document applies Pascal4Android0.1.0 version. This document describes What is Pascal4Android, as well as how to use Pascal4Android. The follow-up to the launch of the document (not yet started the planned): Pascal4Android Programmer's Guide, Pascal4Android Reference Guide, Pascal4Android Game Developer's Guide. 1.2 Pascal4Android introduced Pascal4Android is a based on the the FreePascal JVM compiler, developed by the Lazarus IDE (Integrated Development Environment) for generating Android applications. Pascal4Android Object Pascal syntax backend by FPC JVM compiler generates Java bytecode directly. The, Pascal4Android highest support Android SDK R14 version. Pascal4Android run in the Windows environment, the other platforms do not support. Currently, Pascal4Android is still in development, many of the features not yet implemented, and look forward to your valuable suggestions! http://www.fpccn.com/forum.php?mod=viewthread&tid=2412 ---------------------------------------------------------------------- stab · 2012-12-21 07:50 Interesting, but would it be possible to get a translation to english /stab ---------------------------------------------------------------------- Leledumbo · 2012-12-21 11:31 QuoteCurrently, Pascal4Android is still in development, many of the features not yet implemented, and look forward to your valuable suggestions!I vote the same thing that stab requests ---------------------------------------------------------------------- cst_zf · 2012-12-27 03:06 glad to see such a wonderful work from China ---------------------------------------------------------------------- DonaldShimoda · 2012-12-29 00:27 Quote from: bugxiong on December 21, 2012, 08:43:43 amhttp://www.fpccn.com/forum.php?mod=viewthread&tid=2412 Pascal4Android introduced Looks good , but until you dont traslate the app to english we cannot evaluate. have any frame time estimated to translate? ---------------------------------------------------------------------- acquario73 · 2012-12-29 12:36 Hello. I'm testing the Android programming with the compiler fpcjvm. I also tried pascal4android, I love his compilation with one click. But if I use the resources of the system unit or I define a TObject, the Android app crashes because can not find the corresponding classes. I have to manually copy them into the bin\classes. Is there a way to incorporate the necessary classes in dex file? ---------------------------------------------------------------------- DonaldShimoda · 2012-12-29 12:52 Quote from: acquario73 on December 29, 2012, 01:36:49 pmHello. I'm testing the Android programming with the compiler fpcjvm. I also tried pascal4android, I love his compilation with one click. But if I use the resources of the system unit or I define a TObject, the Android app crashes because can not find the corresponding classes. I have to manually copy them into the bin\classes. Is there a way to incorporate the necessary classes in dex file? Are you chinese? Or how to know what functionhave the buttons and menu? Please! Traslate ths to english! ---------------------------------------------------------------------- acquario73 · 2012-12-29 15:04 No... I'm italian... It starts in chinese, but you can find where switch language... ---------------------------------------------------------------------- DonaldShimoda · 2012-12-29 15:11 Quote from: acquario73 on December 29, 2012, 04:04:57 pmNo... I'm italian... It starts in chinese, but you can find where switch language... I dont search it, as the installation ask for language and i select english... Will try now thanks! ---------------------------------------------------------------------- tr_escape · 2012-12-31 13:32 Download link is: https://skydrive.live.com/?cid=89AE6B50650182C6&id=89AE6B50650182C6%21 135&action=DefaultClick You should login with your msn ID ---------------------------------------------------------------------- DonaldShimoda · 2013-01-01 23:17 Quote from: tr_escape on December 31, 2012, 02:32:53 pmDownload link is: https://skydrive.live.com/?cid=89AE6B50650182C6&id=89AE6B50650182C6%21 135&action=DefaultClick You should login with your msn ID All i get is a error compiling resource R... Anybody was sucessfoul compiling some sample? Dont work at all for me. ---------------------------------------------------------------------- truetom · 2013-01-12 03:08 Quote from: tr_escape on December 31, 2012, 02:32:53 pmDownload link is: https://skydrive.live.com/?cid=89AE6B50650182C6&id=89AE6B50650182C6%21 135&action=DefaultClick You should login with your msn ID Hello , you don't need login MSN , Download link is:https://skydrive.l ive.com/?cid=89AE6B50650182C6&id=89AE6B50650182C6%21129 ---------------------------------------------------------------------- truetom · 2013-01-12 03:17 Quote from: DonaldShimoda on January 02, 2013, 12:17:43 am All i get is a error compiling resource R... Anybody was sucessfoul compiling some sample? Dont work at all for me. Hello, after install pascal4android , first you must config the path ,please select the menu Tools->config paths. sorry for my bad english. ---------------------------------------------------------------------- truetom · 2013-01-12 06:37 Quote from: acquario73 on December 29, 2012, 01:36:49 pmHello. I'm testing the Android programming with the compiler fpcjvm. I also tried pascal4android, I love his compilation with one click. But if I use the resources of the system unit or I define a TObject, the Android app crashes because can not find the corresponding classes. I have to manually copy them into the bin\classes. Is there a way to incorporate the necessary classes in dex file? Hello , you can download a new version(20130112) at: https://skydrive. live.com/?cid=89AE6B50650182C6&id=89AE6B50650182C6%21129. In this version ,select the menu: Project ->Compiler Options -> Include RTL Package ,then checked org.freepascal.rtl to include system unit. ---------------------------------------------------------------------- DelphiFreak · 2013-01-12 09:27 Hi, I don't understand why to make a new "IDE" for that? It would be better if you put your effort into a Lazarus Plug-In? ---------------------------------------------------------------------- truetom · 2013-01-12 13:43 Quote from: DelphiFreak on January 12, 2013, 10:27:32 amHi, I don't understand why to make a new "IDE" for that? It would be better if you put your effort into a Lazarus Plug-In? Yes, you are right.At first , I  think about do a Lazarus package,but I don't  know how can do that , maybe you can help me or recommend some detailed information to me ? Thank you! By the way, I only hope Pascal4Android can help develop android application is easy, so I developed it. sorry for my bad english! ---------------------------------------------------------------------- DelphiFreak · 2013-01-12 18:52 Hi TrueTom, first I must say that your pascal4android was the only one that just worked. I tried the last 7 day's to build my first app on android with lazarus. I came across the following 5 roads and tried all of them: A) CodeTyphon. Did not work. Had troubles to build the apk. B) This pre configured opensuse image: http://www.lazarus.freepascal.org/index.php/topic,18638.msg105408.html #msg105408 I think it's the best idea so far but I did not get it running because the instruction steps seems not to be correct. C) This pre configured mageia image: http://wiki.freepascal.org/Custom_Drawn_Interface/Android It's 1.8GB fat (contains stuff like libreoffice ). Unzip gives always troubles about invalid checksum. Finally I got it working, but it's outdated. Lazarus 0.9.31. Edit: 13.Jan.2013: Updated image to Mageia 2. This took about 2hours. After reboot, lazarus does not work anymore. D) Pascal4Android. Building a apk and running it just worked! Congratulation. But no GUI-Designer and not open-source. C) I tried the eclipse android bundle. Uha. Not a real option. Sorry I can not help you much. I think it would be nice to have something like ApkManager http://www.lazarus.freepascal.org/index.php?topic=19002.0 ---------------------------------------------------------------------- teos · 2013-01-18 11:23 Respect! Works on the first attempt! Looks a lot like Basic4Android, but then ahead of it allready in the 1.0 release :-) I wonder what the license is, the costs and how about support of 3rd party units, components and objects. But start writing English, that will increase the result of the project/product enormously. ---------------------------------------------------------------------- picstart · 2013-01-18 14:19 It is interesting that this is the only solution for android from the lazarus community that works out of the box. The 300 million android devices out there  growing at 800,000 per month are taking the edge off the statement that lazarus is very portable. Android platforms may well become the majority of devices in which case lazarus's portablity will only apply to a minority of delivered devices. The good news is lazarus almost ports to android so it still has legs under it;  but it is a long way from the ease of just cross compiling a widows i386 lazarus app to a windows mobile device. Android has a finite number of controls ( buttons menus etc) a lazarus component with these templated controls would better leverage the lazarus ide environment. ---------------------------------------------------------------------- Leledumbo · 2013-01-18 18:26 QuoteIt is interesting that this is the only solution for android from the lazarus community that works out of the boxIt uses FPC JVM, not FPC for ARM whose result is wrapped in a Java class (the one that Lazarus uses). If you ever try FPC JVM, it works out of the box and you have access to the full Android API. Lazarus way for Android can't be made the same as desktop, since Android has different architecture, REALLY different, from the desktop. It's not just about another LCL backend, and what LCL has now via custom drawn, is already good. This also explains why FPC JVM works out of the box, because it escapes from the traditional system. You don't even have full System unit functionality, almost everything must be done using Java/Android API. ---------------------------------------------------------------------- pasquale · 2013-03-01 15:05 When I run the example code provided by Pascal4Android, the unsigned APK is created regularly but the virtual machine is not launched. I get the error message, "AVD or android devices not found! please choose the menu:Tools-Run AVD Manager or insert an android device." If I click on the "Run AVD Manager" from the Tools menu, it runs without any problems but, obviously, it does not show the app I have just compiled. Am I missing something? ---------------------------------------------------------------------- truetom · 2013-03-02 10:48 Quote from: pasquale on March 01, 2013, 04:05:54 pmWhen I run the example code provided by Pascal4Android, the unsigned APK is created regularly but the virtual machine is not launched. I get the error message, "AVD or android devices not found! please choose the menu:Tools-Run AVD Manager or insert an android device." If I click on the "Run AVD Manager" from the Tools menu, it runs without any problems but, obviously, it does not show the app I have just compiled. Am I missing something? If the Android Virtual Device is running? or real android device is insert to the computer? ---------------------------------------------------------------------- marcov · 2013-03-02 15:21 Quote from: picstart on January 18, 2013, 03:19:55 pmIt is interesting that this is the only solution for android from the lazarus community that works out of the box. The 300 million android devices out there  growing at 800,000 per month are taking the edge off the statement that lazarus is very portable. Android platforms may well become the majority of devices While it is true that there are many Android devices, that doesn't mean the number of developers is proportional. It even less so means that the reasons why e.g. a PC programming community is split up over multiple languages also apply to Android. It seem that the Android market for the most are fairly small apps, and short time to market is everything. IOW I think that Android users are simply using whatever tools they can get their hand on to ship it. What language it exactly is matters less. (since there is no need for compatibility with large existing codebases, like with a new non- mobile port). That makes the number of people (and the time they can invest) in such endeavors low. ---------------------------------------------------------------------- pasquale · 2013-03-04 06:44 Quote from: truetom on March 02, 2013, 11:48:37 amQuote from: pasquale on March 01, 2013, 04:05:54 pmWhen I run the example code provided by Pascal4Android, the unsigned APK is created regularly but the virtual machine is not launched. I get the error message, "AVD or android devices not found! please choose the menu:Tools-Run AVD Manager or insert an android device." If I click on the "Run AVD Manager" from the Tools menu, it runs without any problems but, obviously, it does not show the app I have just compiled. Am I missing something? If the Android Virtual Device is running? or real android device is insert to the computer? Hi, Thanks for your reply. I'm using the Android Virtual Device. My tablet is not connected to the PC. Obviously, Eclipse is installed correctly and AVD works perfectly fine when I test my code under Eclipse. I have entered all the necessary folder paths in Pascal4Android but, in spite of this, I get the error message I described in my previous post. ---------------------------------------------------------------------- truetom · 2013-03-04 12:00 Quote from: pasquale on March 04, 2013, 07:44:19 am Hi, Thanks for your reply. I'm using the Android Virtual Device. My tablet is not connected to the PC. Obviously, Eclipse is installed correctly and AVD works perfectly fine when I test my code under Eclipse. I have entered all the necessary folder paths in Pascal4Android but, in spite of this, I get the error message I described in my previous post. Hello! Thanks for you test Pascal4Android.I'm sorry for this error message.I don't know what's happened. Please provide the following information to me,thank you: Which one android virtual device platform do you used(2.2? 2.3 ? 3.0 ? 4.0) ? Which one Windows version do you used(win xp ? win vista ? win7 or win8?)? Which one JDK version?(1.6 or 1.7) thanks! I will test it ! you also can email to me,my email is lazaruscn@163.com . sorry for my bad english. ---------------------------------------------------------------------- tanakian · 2015-04-27 14:53 what about GNU/Linux version? Shell we wait? Or may be if you release a source, someone can help you, for example on github. ---------------------------------------------------------------------- januszchmiel · 2023-03-05 19:58 Dear MR Xue Hua, Thank you very much for your very probably first wolrd related programmers attempt to create Android applications by using PPCJVM, Android JVM target. Approach which you have introduced allow developers to create very small applications. Dex files are less than 180 KB in syze. Your building approach support apps with The multiple activity. It is sad, that you had no strenght to go through very complex development journey. Adding GUI elements creation support in to your IDE. But I understand it. Android APIS are developing so rapidly and so fast. Before you would finish with implementing Android 14, GOogle has introduced new Android API release. And every Android APi release can support in theory new GUi elements. Who has generated Android R14.INC and other Android RTL header files? Was it you dear MR Xue Hua? Today, PPCJVm Android JVM target community very probably need someone, who would have enough programmers skils to generate new Android RTL headers based on newest Android APIS. It is not very easy task. And very probably, fully automated solution is may be for The professors on university, who has passed informatic sciences studyes. Now as for Me, as a visually impaired developer, there are currently two usable packages. Pandroid, and Lamw. Pandroid support many preconfigured GUI elements and developer is not being forced to read Google documentation about GUI element and there is no need to use Android API calls directly. More over, lamw support to machine code compilation. And Lamw developers have done very complex developers task to implement JNI communication between .so library and Java components. I will experiment safely with your old IDE by adding The newest Android.jar APi target version 33 and I will be also using newer Android APi functions header not 13, but 25 and I will try to even use The newest 29 version which have been generated by MR Swianovicz Zeljuko. By The author of Pandroid. But I Am deeply appreciating your previous hard programmers work and your Pascal knowledge have to be very deep.