Recent

Author Topic: Customdrawn : cross compile for Android  (Read 4105 times)

sameer

  • New Member
  • *
  • Posts: 12
Customdrawn : cross compile for Android
« on: August 05, 2018, 05:59:32 pm »
Hi,

I compiled/built the example app for android. However the apk crashes.

Can anyone tell me whether customdrawn works with android ?

I am using FPC 3.0.4.

Regards

-Sam

lainz

  • Hero Member
  • *****
  • Posts: 3285
    • Lainz
Re: Customdrawn : cross compile for Android
« Reply #1 on: August 05, 2018, 06:42:20 pm »
Hi,

I compiled/built the example app for android. However the apk crashes.

Can anyone tell me whether customdrawn works with android ?

I am using FPC 3.0.4.

Regards

-Sam

Hi, it should work. But it has a problem if you read the wiki that it uses pixel drawing routines in Android, that is slow. You should try LAMW that has better performance and AFAIK native controls.

Handoko

  • Hero Member
  • *****
  • Posts: 3199
  • My goal: build my own game engine using Lazarus
Re: Customdrawn : cross compile for Android
« Reply #2 on: August 05, 2018, 07:14:33 pm »
If I remember correctly, CustomDrawn has issue with Android 5 and above. It works but only on Android 4 and below. The bugs already reported, but it seems the development of CustomDrawn is (temporary) halted.

For more info about Android programming on Lazarus/FPC:
https://forum.lazarus.freepascal.org/index.php/topic,28908.msg272137.html#msg272137

sameer

  • New Member
  • *
  • Posts: 12
Re: Customdrawn : cross compile for Android
« Reply #3 on: August 07, 2018, 10:28:28 am »
Handoko,

Thanks for the reply. I used SDK27 to build the androidlclexample apk and it does not work on Android 2.3 - Android 4.

Anyway. I am checking out LAMW. However, LAMW->dbgridview does not work for me. The demo example of same works ok but my app crashes.

Regards

-Sam

Handoko

  • Hero Member
  • *****
  • Posts: 3199
  • My goal: build my own game engine using Lazarus
Re: Customdrawn : cross compile for Android
« Reply #4 on: August 07, 2018, 12:14:21 pm »
Quote from: sameer link=topic=42137.msg293665#msg293665
Anyway. I am checking out LAMW. However, LAMW->dbgridview does not work for me. The demo example of same works ok but my app crashes.

The developer of LAMW check this forum regularly. You can submit a bug report, and don't forget to put "[LAMW] ..." at the beginning of the post's title.
« Last Edit: August 07, 2018, 12:45:24 pm by Handoko »