Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all 1963 articles
Browse latest View live

Installing new version of Indy 10 in D 2007 has issues

$
0
0

I have installed a current version of INDY 10 and everything works fine until I close and reopen Delphi.  I then tells me it cannot find the installed BPL's.  I have pointed the Library and Browsing paths to where the BPL's are located but still get the message they cannot be found.


External testing

$
0
0

Hi

I try to add my app to TestFlight -> External Testing in iTunes Connect

when I try to "Add an iOS build to test" i got this error/warning:

embarcadero External testing is not supported for builds that have been created with a beta version of Xcode or iOS.

does anybody know how to deal with it ?

does anybody has experience with External Testing ?

Lack of beacons events on Delphi Android

$
0
0

Hello,

Beacon events on Delphi Berlin Upd. 2 + Android Apps get fired occasionally. As you can see on the image, there is no activity in 22 seconds. I tried to set TBeaconManager.ScanningSleepingTime to 0 and reduce TBeaconnmanager.ScanningTime to 100 with no success. BTW, the App works nicely on Windows and iOS, the maximum inactivity I receive is 2 seconds in both cases.

In order to gain the maximum activity the event OnCalcDistances is also trapped.

It is not a device (Nexus 6p) problem since the 'Locate' App from Radius Networks also updates the beacons information on every second.

I'm really exhausted with this bug. Any help is really appreciated.

Regards,

Screenshot

Edit windows moving around when switching between "Default" and "Debug" layouts

$
0
0

When ever I use the "edit window" feature (I don't know what else to call it), I've noticed that the extra window will randomly relocate itself around my desktop when I go to debug my program.  For instance, I have two monitors, I keep RAD studio's main window open in the right screen, and I like to have a second window in the 2nd half of my left screen to view other files while working.  Most of the time (let's say 80% of the time) when I go to debug my program, this window just takes the liberty to relocate itself, often times in places where it's not being useful at all (like it'll take itself and position it over the main window of RAD studio with part of it off the screen).

Is there any way at all to lock the position of these windows?  If this is a "feature" (like clicking out in white space... who thought that was a good idea?) is there anyway to disable it?

I love Delphi, but there are a handful of things with the IDE itself that drive me nuts (like the screen-flickering-refresh that takes 15-30 seconds while I'm in the middle of a thought).

Any support for Fast Reports?

$
0
0

Fast Reports is missing from GetiT.

Download from Fast Reports itself will not install in Rad Studio 10.2

Drag, Click and DblClick.

$
0
0

Why doesn't work OnDblClick and OnClick if control is in DragMode := dmAutomatic in FMX

I'm doing simple editor of graphs using FMX. I need graphics element to drag for changing its place and double click for open the window with properties. How to obtain it?

Hpw can I create a SOAP server applications with existing XSD for request and response?

$
0
0

Hello!

I have to create a SOAP web service base on existing XSD schemas witch will be used as Request and Response.

I build two units based on my xsd schemas.

And have a new units with interfaces IXMLBatchUpdateCardDataRequest and IXMLBatchUpdateCardDataResponse.

And I need to create something like that for SOAP request,

 


   
   
            
            ....
            
   

 

and I have to create a something like that


   
   
            
            ....
            
   

for response!

 

What I have to do?

How I can define "tns" namespace?

How My TRemotable class will looks like to realize all tags from Request and Response xsd?

Thank you very much!

 

 

Lack of beacons events on Delphi Android

$
0
0

Hello, 

Beacon events in Delphi Berlin Upd. 2 and Delphi Tokyo with Android apps get fired occasionally. As you can see on the image, there is no activity in 22 seconds

Android Screenshot

In order to gain the maximum activity the OnCalcDistances event is also trapped.

I tried to set TBeaconManager.ScanningSleepingTime to 0 and reduce TBeaconnmanager.ScanningTimeto 100 with no success. BTW, the app works nicely on Windows and iOS, the maximum inactivity I receive is 2 seconds in both cases.

It is not a device problem since the 'Locate' app from Radius Networks also updates the beacons information every second.

Yo can download a small and simple demo that shows the bug (10.5 kb) from this link: https://www.dropbox.com/s/vijghdlillp5nj7/TestBeacons.zip?dl=0

I'm really exhausted with this bug. Any help is really appreciated.

Ignacio Ortiz


Sensors -- Android Step_Counter ?

$
0
0

I have a Delphi Berlin Android application that needs to access the Android Step_Counter. I have researched for a few days and find no Delphi related references or examples for the Android step sensors referenced below.

I could really use some help at this point. Is there any way to access/add support for  the step_counter in Delphi ?

 

Thank you,

Clark

 

 

 

TYPE_STEP_COUNTER

Added in API level 19
int TYPE_STEP_COUNTER

A constant describing a step counter sensor.

A sensor of this type returns the number of steps taken by the user since the last reboot while activated. The value is returned as a float (with the fractional part set to zero) and is reset to zero only on a system reboot. The timestamp of the event is set to the time when the last step for that event was taken. This sensor is implemented in hardware and is expected to be low power. If you want to continuously track the number of steps over a long period of time, do NOT unregister for this sensor, so that it keeps counting steps in the background even when the AP is in suspend mode and report the aggregate count when the AP is awake. Application needs to stay registered for this sensor because step counter does not count steps if it is not activated. This sensor is ideal for fitness tracking applications. It is defined as an REPORTING_MODE_ON_CHANGE sensor.

See SensorEvent.values for more details.

Constant Value: 19 (0x00000013)TYPE_STEP_DETECTOR

Added in API level 19
int TYPE_STEP_DETECTOR

A constant describing a step detector sensor.

A sensor of this type triggers an event each time a step is taken by the user. The only allowed value to return is 1.0 and an event is generated for each step. Like with any other event, the timestamp indicates when the event (here the step) occurred, this corresponds to when the foot hit the ground, generating a high variation in acceleration. This sensor is only for detecting every individual step as soon as it is taken, for example to perform dead reckoning. If you only need aggregate number of steps taken over a period of time, register for TYPE_STEP_COUNTER instead. It is defined as aREPORTING_MODE_SPECIAL_TRIGGER sensor.

See SensorEvent.values for more details.

Constant Value: 18 (0x00000012)

ISAPI DLL stops working in 10.1 Berlin

$
0
0

Hi!
I upgraded to Delphi 10.1 Update 2 and now I get an error:

"Received content of invalid Content-Type setting: text/html - SOAP expects "text/xml"

when calling just ANY method of my existing ISAPI DLL. Everything worked fine in 10 Seattle with an x64 build target and IIS 8.5 that comes with MS Windows Server 2012.

To get an idea og whats going wrong a created a new ISAPI DLL with 10.1 from scratch, including the echoXY example methods. I called them by a very simple VCL Forms client that just contains a Button and the HTTPRIO component. The error stays the same. So ISAPI seems to be broken in 10.1. I did not change any single setting on the server.

Is there any workaryound? I spent many hours googling and found a number of solutions that did not work like skipping the ISAPThreadPool unit and so on.

Thanks, Reg

FMX Android apps do not draw some forms after Tokyo update

$
0
0

I have a number of FMX based programs that do not draw there forms correctly when built for the Android platform under Tokyo. The programs work fine on Berlin update 1 and 2. The same programs complied for Win64 or Win32 under Tokyo seam to work fine.

I have only had time to test the android apps on a Samsung S5 (6.01), S6 (6.01) and a Samsung TabS (6.01).

Each of the programs has 8 to 10 forms. When a form is shown it does not always display but the controls on the form are active.

The programs use a local SQLite database using FireDac and live bindings to display data. All of the forms which use live bindings from the FireDac database to one or more ListViews in a MultiView  will not draw at all. While you can not see the form all of the forms controls are active.

I have one application form that uses live bindings but has no MultiView.  The form has a hidden panel (visible=false). When the panel is made visible the form does not update to show the panel but the controls on the panel are active.

In the IDE I can not show the contents of a MultiView when the "Master" form layout is selected. If I select the "Windows" or "Android" layouts the show command displays the MultiView.

 

project apk never stops installing to google Android emulator

$
0
0

D10.2 - IDE displaying target android devices with red (x) tags,

 

Unable to install android app to emulator: 2

$
0
0

I only created a single device in the AVD manager but see 2 devices in the IDE. 

I chose the bogus target device since it did not have a (x) on it.  Here's the error I get when I try a manual install:

C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.26309.314\platform-tools>adb install "C:\Dev\Delphi\Delphi 10\Android Test\Android\Debug\AndroidTest\bin\AndroidTest.apk"
Failed to install C:\Dev\Delphi\Delphi 10\Android Test\Android\Debug\AndroidTest\bin\AndroidTest.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

 

Is it possible to change the version of MSBuild used to build Delphi projects

$
0
0

When building a Delphi project, it appears that the project file is being built with MSBuild 2.0 underneath.

I have some external .targets files that will only work with MSBuild 4.0 or newer. Right now, I can call these only by externally invoking $(windir)\Microsoft.NET\Framework\v4.0.30319\MsBuild.exe through an Exec task. But that means having to pass a load of parameters to the external process and doesn't really plug in to my project very well.

I cannot seem to find anywhere in the IDE (currently Delphi 10.0) where I can select the MSBuild version to use. Is it at all possible to change?

Getit -- LifeTrak Move -- Berlin 10.1

$
0
0

I tried to run the LifeTrakPas demo and it won't discover the LifeTrak Move device.

Yet the LifeTrak is paired to the development PC show up when scanned by the BTLE component.

I can't test with Berlin 10.2 since Getit is empty and I have not seen a fix yet.

 

Has anyone been able to run the LifeTrak demo successfully yet ?

 

Clark


Foreground Service In FMX Android Development

$
0
0

Dear Sir,

I am trying to create a service application in FMX Android (Delphi XE10.1 Berlin Update 2) but when the host app is in foreground or in background everything works well. However, if I close the host app service stops as well.

I know that in android if the service is declared to run in the foreground, it's rarely killed. So is there a way to create a foreground service in FMX and if yes can you provide us an example ?

 

Thank you very much in advance for your answer.

10.2 Tokyo handles BLE discovery on Android differently than 10.1 Berlin.

$
0
0

(My apologies for this lengthy entry)

I have had some problems getting BLE to work according to my needs on both iOS and Android, but after some work arounds (see my comment and issues on quality.embarcadero.com: RSP 16891, 17763, and 17764) things have worked quite well (although BLE on iOS seems more stable than on Android).

Having switched to Tokyo, However, I have had to revise my handling of BLE device discovery, and I wonder if anyone else has noticed this change, if my original way of handling things (which was convenient) was fundamentally wrong, and/or if the behavior on Tokyo is as intended and by design or a bug.

In my application, I often need to "rediscover" a BLE device that was "defined" a long time ago (often in a previous app session). I handle this by storing the device name and MAC address so that I quickly can run discovery using a TBluetoothLEScanFilterList with the proper LocalName and DeviceAddress at some later point in time when I need to communicate with the device.

Using Berlin, I simply used a procedure like InitializeMyDevice below where BluetoothLE1 is a TBluetoothLE, FMyBleDevice is a TBluetoothLEDevice, and BluetoothLE1 has an OnDiscoverLEDevice = BluetoothLE1DiscoverLEDevice. Everything works fine: if the device is found, descovery stops immediately; if not, discovery times out.

Using Tokyo, however, the same code doesn't work:  

1. during Application.ProcessMessages the bleMainDiscoverLEDeviceis never called and the discovery always times out;

2. after timeout and exit of InitializeMyDevice all calls to bleMainDiscoverLEDeviceis do occur, but this is "too late".

Of course, this issue can be circumvented using, e.g., a second procedure to capture the result, but the "Berlin" method was quite simple and convenient.

So, hopefully some of you can have a look at the code below and explain to me what's going on!

Thanks in advance /Per

Code:

procedure BluetoothLE1DiscoverLEDevice(...)

begin

  // Double check

  if ((ADevice.DeviceName = MyDeviceName) and (ADevice.Address = MyMacAddress)) then

  begin

    FMyBleDevice := ADevice;

    BluetoothLE1.CancelDiscovery;

  end;

end;

function InitializeMyDevice: Boolean;

var

  LBleFilterList: TBluetoothLEScanFilterList;

  LBleFilter: TBluetoothLEScanFilter;

begin

  LBleFilterList := TBluetoothLEScanFilterList.Create;

  LBleScanFilter := TBluetoothLEScanFilter.Create;

  LBleScanFilter.LocalName := MyDeviceName;

  LBleScanFilterList.Add(LBleScanFilter);

  LBleScanFilter.DeviceAddress := MyMacAddress;

  LBleScanFilterList.Add(LBleScanFilter);

  try

    FMyBleDevice := nil;

    BluetoothLE1.DiscoverDevices(3000, LBleScanFilterList);

    while (FMyBleDevice = nil) do

       Application.ProcessMessages;

     Result := (FMyBleDevice = nil);

  finally

    LBleScanFilterList.Free;

  end;

end;  

RAD server apache installation

$
0
0

Hello,

I'm trying to deploy Rad Server under apache on linux.

I installed Interbase xe7 and register my Rad server licence.

 

When running EMSDevServerCommand it works correctly I can can access default ressources and a custom ressources.

 

But when i try to access EMS ressource throug apache i get a message

{"error":"Resource not found: \/version","description":"The request does not identify a known application, resource, endpoint, or entity"}

This message tells me ems-server is running as this outpout comes from ems but it seems it is not able to find any ressource.

Does anyone have an idea ?

 

Thanks

 

Delphi web broker bridge - is this really completely broken? If so, what do we use now?

$
0
0

We have a delphi 3-tier EDP system currently in Delphi XE version. It has worked well with SOAP using a web-server created using the web broker bridge. We are trialling 10.2 Tokyo, and it seems that anything that looks like it will make a web API is absolutely broken.

When we try to create a simple web application using the wizards provide, the IDE actually CRASHES.

Maybe we are simply too stupid to know what we are doing - I would love for this to be true.

If it is not broken, what must we do to get the trial IDE to run with a web client-server type app? 

If this is utterly and irretrievably broken now, and if it will not be fixed by Embarcadero, what must we use now to do this 3-tier type work.

Thanks.

 

SIFT, SURF and ORB in C++ Builder

$
0
0

Hello, I'm in a research project for key points detection and recognition in document images and i need the implementation of SIFT, SURF and ORB in C++ Builder does it exist ?  

Viewing all 1963 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>