Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Category: Programmazione

Digital solution partner

Delphi/Firemonkey memory check on Android App by ActivityManager

Tested on Delphi 10 Seattle. by importing “ActivityManager” you can check the status of memory from you Android Applications, and check a lot of other things like if a process is running. here is the demo apk memtestandroid.apk and the source code : android_memorymanager_source unit Androidapi.JNI.ActivityManager; interface uses System.SysUtils, FMX.Helpers.Android, Androidapi.JNI.JavaTypes, Androidapi.JNIBridge, Androidapi.Helpers, Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.Os,…
Read more

Delphi – Int to Hex and Hex to Int

int2hex example in delphi: var str : string; // hex value b : byte; begin b := 15; str := system.sysutils.inttohex(b,2); end; // the result in str will be : ‘0F’ hex2int example: var strHexVal : string; // hex value intVal : integer; begin strHexVal := ‘0F’; intVal := StrToInt(‘$’ + strHexVal); end; // the…
Read more

Delphi Firemonkey manage VirtualKeyboard on mobile applications

In Firemonkey you can manage the virtualkeyboard on your mobile applications. if you need that the keyboard not autoshow in your application when a text box is selected you can add this code: // uses FMX.Types // you can set TVKAutoShowMode = (DefinedBySystem, Never, Always); FMX.Types.VKAutoShowMode :=TVKAutoShowMode.vkasNever; obviusly to enable the virtual keyboard: // uses…
Read more

Build your own HTTPS server with Delphi

Assuming that you know how to make a web server with TidHttpServer, but now you need to put your server in HTTPS, so to do that you need to add to your application the TIdServerIOHandlerSSLOpenSSL and set it as the IOHandler of your TidHTTpServer. IMG IOHANDLER Now you need a valid and unique certificate, to…
Read more

Testing BluetoothLE on Delphi DX 10

Today i do some test about TBluetooth LE component on Delphi Seattle on different devices.   Device BT LE as Client BT LE as Server (pheriferial mode) Mac Book Pro OSX 10.11.6 Yes Yes iPhone 6s iOS 9.3 Yes Yes Samsung S4 Android lollipop Yes No: raise an axeception on phheriferial mode?!?! PC Windows 10…
Read more

Remote Debug on Android 6.0 with Raspberry PI3 and Delphi 10.0 Seattle

I was on testing our app remode on a Raspberry PI3 with Android 6.0 Marshmallow… so i need debug and i foud that can be done via lan simply using the command ADB “command” like: adb connect “device ipaddress”