No go on Android

Hello,

tried the demo WebOSMapsDemo.dproj, works on Windows but does not on Android. Only the delphi splash screen is showing?!

What am I doing wrong?

Thanks and regards

Michael

Hi,


Can you please follow instructions on this page?
https://www.tmssoftware.com/site/androidjs.asp


Hi Bart,

thanks, I could not find this in "Developer Guide" and did not get that error message.

Windows: It seams that it does not work on a TTabControl as expected.

However, the following code works on Windows:

  if tcMain.ActiveTab = tiService then
  begin
    TabItemBackgroundAssign(rectService);

    AlignBottom(tcMain); // TTabControl
    tcMain.Height := tiService.Height + 4;
    womMap.Enabled := False; // TTMSFMXWebOSMaps
    womMap.Visible := True;
    AlignClient(womMap);

    // Delayed, otherwise Exception 80020101 in TMS
    ExecDelayed(
      procedure
      begin
        // Delete and prepare Marker here...
        // ...and then enable
        ServiceInit;
      end);
  end
  else
  begin
     AlignClient(tcMain);
     womMap.Enabled := False;
     womMap.Visible := False;
  end;

I need this disabled/invisible on startup. On Android I only see a blank control (also in demo when making visible/enabled at runtime).

What is a good way to archive this on Android?

Is there some kind of specific Update/Refresh/Invalidate method on Android?

Thanks and Regards

Michael

The TTabControl issue is a known limitation: 
https://www.tmssoftware.com/site/tmsfmxwebgmaps.asp?s=faq&show=685

The map is automatically initilaized on startup.
You can use theVisible property to hide the map and the TTTMSFMXWebOSMaps.Reinitialize call to reset the map.
Yes, "Reinitialize" does it for me.

Thanks again...

Michael

Thank you for confirming the issue was resolved.