TMSFNCTaskDialog not showing properly on Android

The TMSFNCTaskDialog does not properly show on Android64 with the latest FNC.
Tested on Galaxy S24 and neither on a Blackview Active 8 Pro.

The form gets locked modal but the dialog wont show.
TaskDialog.zip (1.4 KB)

Hello,

We can see it's locking up the screen when it's called from the form's OnCreate event, but the dialog is still visible here.

If you call TMSFNCTaskDialog.Execute from a button click instead of the form's OnCreate event, will it not show on your devices?

Additionally, what's your IDE and Android version?

The same thing happening when triggering it delayed for example with a button.

It's compiled with latest Delphi 12.3 targetting Android64
FNC UI Pack is at version 6.6.0.6

The Galaxy S25 version reads as:
One UI: 7.0
Android: 15
Kernel-Version: 6.1.93-android14-11 #1 Fri May 30 02:53:20 UTC 2025

The tablet reads:
Doke OS: 3.0
Android 13
Build Number: Active8Pro_NEU_TP_769_V1.0_01_2023 0616V07

Thank you, we'll try to reproduce and get back to you as soon as we can.

Hi,

Unfortunately we are unable to reproduce this. We tried 12.3 with and without the patch on a Samsung tablet that is running Android 15 with OneUI 7.0.

Did you try this in an empty new project with TTMSFNCTaskDialog and a TButton dropped on the form? Do you have any non-default property settings in any of the controls or the form itself?

Apparently you did not bother to test the supplied example files otherwise you would have figured.

The only changes to break down everything is have a plain TTMSFNCTaskDialog (just reconfigured in the sample to display actually something).

Besides that the only change that apparently completley breaks down the control 100% reproducable here on all our devices is that we use a borderless setup ie BorderStyle = bsNone.

The sample you sent included a .dpr but not a .dproj. The dproj that got created automatically when opening the dpr had missing target platforms and did not want to compile, so we had to recreate the sample project manually. By doing that manual work, we missed that the form's BorderStyle was a non-default value and we can confirm the TaskDialog is not visible if it's set to bsNone.

Can you change the BorderStyle to something else when targeting Android while we investigate why this happens?

If you leave the TTMSFNCTaskDialog.Execute in the form's OnCreate that is also causing a freezing issue, it locks something up during form initialization. If you need to show a message as soon as the form is visible, then you can add a timer, enable it in the OnCreate, and in the OnTimer event disable the timer and show the TTMSFNCTaskDialog, that way it gets out of the locking state.