Recent

Author Topic: Create apk FPC JVM project  (Read 15094 times)

Handoko

  • Hero Member
  • *****
  • Posts: 5558
  • My goal: build my own game engine using Lazarus
Re: Create apk FPC JVM project
« Reply #15 on: May 27, 2016, 04:32:50 pm »
You 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)

#: apt-get install mtp-tools

I installed mtp-tools (using Synaptic Package Manager), the result is same. Nothing is in the list.

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).

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.

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.

If I run lsusb, I'll get this result:
Quote
handoko@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

  • Full Member
  • ***
  • Posts: 145
    • Zeljko Cvijanovic
Re: Create apk FPC JVM project
« Reply #16 on: May 27, 2016, 04:48:53 pm »
Handoko> new apk
https://github.com/zeljkoc/pandroid/tree/master/example/TempFirebird/TempFirebird.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

  • Sr. Member
  • ****
  • Posts: 382
    • Gestinux
Re: Create apk FPC JVM project
« Reply #17 on: May 27, 2016, 05:25:14 pm »
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.



Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

Handoko

  • Hero Member
  • *****
  • Posts: 5558
  • My goal: build my own game engine using Lazarus
Re: Create apk FPC JVM project
« Reply #18 on: May 27, 2016, 05:34:06 pm »
PS : 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.

save 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:
Quote
Error: 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

  • Full Member
  • ***
  • Posts: 145
    • Zeljko Cvijanovic
Re: Create apk FPC JVM project
« Reply #19 on: May 27, 2016, 05:40:11 pm »
exit application and  Setup -> App info -> TempFirebird then Force Stop

and start application

seting path database, and change sql to local database ...

Handoko

  • Hero Member
  • *****
  • Posts: 5558
  • My goal: build my own game engine using Lazarus
Re: Create apk FPC JVM project
« Reply #20 on: May 27, 2016, 05:51:03 pm »
I followed your instruction, but now a different error:
Quote
Error: 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

  • New Member
  • *
  • Posts: 11
Re: Create apk FPC JVM project
« Reply #21 on: May 27, 2016, 05:58:20 pm »
It's ok .
Firebird client work .

You have to put the ip of your computer where it is located and your Firebird database


Handoko

  • Hero Member
  • *****
  • Posts: 5558
  • My goal: build my own game engine using Lazarus
Re: Create apk FPC JVM project
« Reply #22 on: May 27, 2016, 06:00:09 pm »
Hi 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.


 

TinyPortal © 2005-2018