Create apk FPC JVM project lazarus / 43-Android ---------------------------------------------------------------------- zeljkoc · 2016-05-20 13:23 pandroid Create apk JVM FPC debian jessie 8 64 edit Typhon 64 project https://github.com/zeljkoc/pandroid example  TempFirebird.apk Android to firebird https://github.com/zeljkoc/pandroid/tree/master/example/TempFirebird ---------------------------------------------------------------------- Handoko · 2016-05-20 13:34 Thanks for the sharing. It's will be great if it has documentation. I run it on my phone and if I press the "Select" button, I get this error: QuoteError: Can't load library: /system/lib/lib/fbclient.so.3.0.0. It sounds you forget to provide the library file. ---------------------------------------------------------------------- zeljkoc · 2016-05-20 13:39 copy libfbclient.so.3.0.0 to android adb push libfbclient.so.3.0.0 /system/lib/libfbclient.so.3.0.0 https://github.com/zeljkoc/pandroid/tree/master/library/Firebird/downl oad/FirebirdLibrary ---------------------------------------------------------------------- Handoko · 2016-05-20 13:54 Quote from: zeljkoc on May 20, 2016, 03:39:28 pmcopy libfbclient.so.3.0.0 to android adb push libfbclient.so.3.0.0 /system/lib/libfbclient.so.3.0.0 I don't use and don't understand "adb". I run it on my 'real' Android phone. I usually copy/paste things to my phone using usb cable. I found your library file but I can't copy it to my phone. Because my Linux file manager can only access my phone's internal storage, not the system folder. ---------------------------------------------------------------------- zeljkoc · 2016-05-20 13:57 copy firebird client library libfbclietn.so.3.0.0 to android telephone /system/lib/ adb command sdk android https://github.com/zeljkoc/pandroid/tree/master/sdk/platform-tools ---------------------------------------------------------------------- zeljkoc · 2016-05-20 14:02 debian install #: apt-get install ant #: apt-get install android-tools-adb ---------------------------------------------------------------------- Handoko · 2016-05-20 14:11 The adb tool and Ant have already installed. I can build Android apks using my computer and run it on my phone. But I never tried to use adb to copy file to my device. I use Linux file manager to copy to my phone memory and then I use my phone file browser to run it. If I run the adb command, I'll get this messages: Quotedaemon not running. starting it now on port 5037 daemon started successfully error: device not found What wrong? I've already plugged usb cable to my phone and my computer. I can use file manager to browse to the system folder. But an error happens if is try to paste the file: QuoteYou cannot paste here because the file system is read-only. You may need to make the library file installed automatically, so common users can run your Android applications easily. ---------------------------------------------------------------------- zeljkoc · 2016-05-20 14:18 http://wiki.lazarus.freepascal.org/FPC_JVM_Android_Development #: adb shell ls /system/lib/libsqlite* /system/lib/libsqlite.so /system/lib/libsqlite_jni.so ibraray more application use not apk one library ---------------------------------------------------------------------- Handoko · 2016-05-20 14:24 Quote from: zeljkoc on May 20, 2016, 04:18:23 pm#: adb shell ls /system/lib/libsqlite* /system/lib/libsqlite.so /system/lib/libsqlite_jni.so Thanks for the help. But if I run the command: Quoteadb shell ls /system/lib/libsqlite I'll get this error: Quoteerror: device not found ---------------------------------------------------------------------- zeljkoc · 2016-05-20 14:37 attempt $: ./adb kill-server $: sudo ./adb start-server $:./adb devices ---------------------------------------------------------------------- Handoko · 2016-05-20 16:25 If I run adb devices command, I see only: QuoteList of devices attached Nothing was in the list. But if I run my Caja file browser, I can see the Android phone is connected. I can browse, copy/paste files in the internal storage of the phone. I never use adb before. So far use only file manager on both my computer and phone. I'm using Ubuntu Mate 15.10 64-bit and Asus Intel-based Zenfone 2. Android SDK and NDK R11C are already installed. ---------------------------------------------------------------------- zeljkoc · 2016-05-20 18:35 new apk https://github.com/zeljkoc/pandroid/tree/master/example/TempFirebird/T empFirebird.apk push menu and Edit ini file setings path library, database firebird .... test firebird 2.5 and firebird 2.1 save ini file exit application and start test example DemoChart https://github.com/zeljkoc/pandroid/tree/master/example/DemoChart DemoChart.apk DemoPrint (print to bluetooth printers) https://github.com/zeljkoc/pandroid/tree/master/example/DemoPrint DemoPrint.apk TestBarCode (read bar code to http://www.gepir.org/) https://github.com/zeljkoc/pandroid/tree/master/example/TestBarCode TestBarCode.apk ---------------------------------------------------------------------- tintinux · 2016-05-26 07:12 QuoteIf I run adb devices command, I see only:     List of devices attached Nothing in the list. You are not alone ! It looks like that some devices don't work with adb (even if you enable it of course). I have spent hours on one particular LOGICOM ARM phone, and found no adb driver working. On other devices I have, it works fine and it is now well supported by LAMW enabling automatic installation and launch after the build, saving a lot of time. Regards ---------------------------------------------------------------------- Leledumbo · 2016-05-26 08:18 Quote from: tintinux on May 26, 2016, 09:12:24 amQuoteIf I run adb devices command, I see only:     List of devices attached Nothing in the list. You are not alone ! It looks like that some devices don't work with adb (even if you enable it of course). I have spent hours on one particular LOGICOM ARM phone, and found no adb driver working. On other devices I have, it works fine and it is now well supported by LAMW enabling automatic installation and launch after the build, saving a lot of time. Regards ADB requires USB driver to recognize the device to be installed, on Windows this is usually provided by the phone vendor. On Linux, a package containing udev rules for (growing list of) devices is available (in Manjaro, the package name is android-udev, no idea with other distributions). Even if your device is not in the list (e.g.: you use a very antique device), you can just look at the vendor and product id via lsusb, then add it to the udev rules manually. ---------------------------------------------------------------------- zeljkoc · 2016-05-26 09:53 May help: #: apt-get install mtp-tools ---------------------------------------------------------------------- Handoko · 2016-05-27 14:32 Quote from: tintinux on May 26, 2016, 09:12:24 amYou are not alone ! Thanks for letting me know I'm not alone. I thought I did something wrong. I don't know should I be glad or sad now. (Glad because it's not my fault, sad because it's not working) Quote from: zeljkoc on May 26, 2016, 11:53:55 am#: apt-get install mtp-tools I installed mtp-tools (using Synaptic Package Manager), the result is same. Nothing is in the list. Quote from: Leledumbo on May 26, 2016, 10:18:33 amADB requires USB driver to recognize the device to be installed, on Windows this is usually provided by the phone vendor. On Linux, a package containing udev rules for (growing list of) devices is available (in Manjaro, the package name is android-udev, no idea with other distributions). There is no android-udev in my Ubuntu Mate distribution. By using Synaptic Package Manager, I found these items which have udev in their name: - bilibop-udev - gir1.2-gudev-1.0 (already installed) - libgudev-1.0-0 (already installed) - libudev-dev - libudev1 (already installed) - python-gudev - python-pyudev - python3-pyudev - sg3-utils-udev - udev (already installed) - udev-discover - usbmount - uudeview Which one above should I install? And why should I install? I mean the phone is able to connect to my computer, I can copy paste thing to the device using Caja file manager. Quote from: Leledumbo on May 26, 2016, 10:18:33 amEven if your device is not in the list (e.g.: you use a very antique device), you can just look at the vendor and product id via lsusb, then add it to the udev rules manually. If I run lsusb, I'll get this result: Quotehandoko@handoko:~$ lsusb Bus 001 Device 006: ID 0b05:5600 ASUSTek Computer, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 1a2c:0002 China Resource Semico Co., Ltd Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 003: ID 1bcf:0005 Sunplus Innovation Technology Inc. Optical Mouse Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub handoko@handoko:~$ The phone is Asus Zenfone 2. ---------------------------------------------------------------------- zeljkoc · 2016-05-27 14:48 Handoko> new apk https://github.com/zeljkoc/pandroid/tree/master/example/TempFirebird/T empFirebird.apk push menu and Edit ini file setings path library, database firebird .... test firebird 2.5 and firebird 2.1 save ini file exit application and start ---------------------------------------------------------------------- tintinux · 2016-05-27 15:25 Hi Handoko This link explains clearly, I think, how to enable an unknown device. Unfortunately it doesn't work for my Logicom E-Lement...  and I found no better help.  However I have not tried with an old USB hub to eliminate the USB 3 bug.  It doesn't work also on Windows (with specific methods). Best regards PS : we are probably off-topic... you'd better to create another thread. ---------------------------------------------------------------------- Handoko · 2016-05-27 15:34 Quote from: tintinux on May 27, 2016, 05:25:14 pmPS : we are probably off-topic... you'd better to create another thread. Thanks for the information. I have to study them before I start a new thread. Quote from: zeljkoc on May 27, 2016, 04:48:53 pmsave ini file exit application and start I did as you said, but something still not work correctly. I copied libfbclient.so.3.0.0 to my phone memory card inside a folder named MyData. Using my phone file manager (Explorer by Speed Software), I can browse the file: /sdcard/MyData/libfbclient.so.3.0.0 So I edit the setting in configuration: Lib=/sdcard/MyData/libfbclient.so.3.0.0 and save But if I press the "Select" button, I get this error: QuoteError: Can't load library:  /system/lib/libfbclient.so.3.0.0. It seems your program don't follow the config setting for Lib path. ---------------------------------------------------------------------- zeljkoc · 2016-05-27 15:40 exit application and  Setup -> App info -> TempFirebird then Force Stop and start application seting path database, and change sql to local database ... ---------------------------------------------------------------------- Handoko · 2016-05-27 15:51 I followed your instruction, but now a different error: QuoteError: Unable to complete network request to host "192.168.1.22". Failed to established a connection. Network is unreachable can't format message 13:98 -- message file /opt/firebird/firebird.msg not found GDS Code: 335544721 - SQL Code: -902 - Error Code: 401 ---------------------------------------------------------------------- usbdoo · 2016-05-27 15:58 It's ok . Firebird client work . You have to put the ip of your computer where it is located and your Firebird database ---------------------------------------------------------------------- Handoko · 2016-05-27 16:00 Quote from: tintinux on May 27, 2016, 05:25:14 pmHi Handoko This link explains clearly, I think, how to enable an unknown device. Thank you tintinux. I solved my issue by enabling USB debugging on my device Developer options. Now it can be found using adb device command. ---------------------------------------------------------------------- usbdoo · 2016-08-21 14:03 http://www.pilotlogic.com/sitejoom/index.php/forum/android/3648-why- libfbclient-so-3-0-0-32-bit-not-work-on-android-64-bit http://www.pilotlogic.com/sitejoom/index.php/forum/android/3647-how- to-make-androd-libfbclient-so-3-0-0-64-bit-x86-64