Lazarus

Programming => Widgetset => CustomDrawn => Topic started by: sameer on August 05, 2018, 05:59:32 pm

Title: Customdrawn : cross compile for Android
Post by: sameer 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
Title: Re: Customdrawn : cross compile for Android
Post by: lainz 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.
Title: Re: Customdrawn : cross compile for Android
Post by: Handoko 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
Title: Re: Customdrawn : cross compile for Android
Post by: sameer 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
Title: Re: Customdrawn : cross compile for Android
Post by: Handoko 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.
TinyPortal © 2005-2018