Recent

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

sameer

  • New Member
  • *
  • Posts: 13
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: 4079
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.
lainz.github.io

Handoko

  • Hero Member
  • *****
  • Posts: 4769
  • 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: 13
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: 4769
  • 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 »

 

TinyPortal © 2005-2018