PavelX
Members-
Content Count
14 -
Joined
-
Last visited
Community Reputation
1 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
It looks like this is a RFC822 format and can be converted using a Indy function StrInternetToDateTime from IdGlobalProtocols
-
Hi, How to include timezone into StrToDateTime format I want to convert the following string "Wed, 11 Nov 2020 22:44:00 +0000" to DateTime Thank you in advance Paul
-
TIdHTTPServer -> run PHP code Cross-Patform including Android 10
PavelX replied to PavelX's topic in Cross-platform
After a long research I have abandoned the idea. It looks very difficult for Android. I have found one delphi implementation for FastCGI https://github.com/EvgeniyKorepov/FastCGIClient/blob/master/UnitFastCGI.pas But I cannot find php (php-fpm) binaries for all platforms especially for android And also I have no Idea if will work. How can I start FastCGI daemon if android 10 has removed the execute permission for app home directory? Thank you very much, Pavel -
TIdHTTPServer -> run PHP code Cross-Patform including Android 10
PavelX posted a topic in Cross-platform
Hi, Just wondered does any of you guys, know / has any experience on how to allow TIdHTTPServer run a PHP script file (cross platform LINUX/MACOS/WINDOWS/ANDROID) *Note - Starting with android 10 exec is forbidden. https://developer.android.com/about/versions/10/behavior-changes-10 - Removed execute permission for app home directory A starting point with some code examples will be greatly appreciated. Thank you in advance, Pavel -
Thank you very much Dave, but when I try to compile I get the following linker error (Delphi 10.4.1) [DCC Error] E2597 Undefined symbols for architecture arm64: Error: "_SSL_COMP_free_compression_methods", referenced from: __ZN26Idsslopensslheaders_static38SSL_COMP_free_compression_methods_funcEv in IdSSLOpenSSLHeaders_static.o; ld: symbol(s) not found for architecture arm64 [DCC Fatal Error] F2588 Linker error code: 1 ($00000001) I have found many compiled libs but none of them worked for me. However, after this error I have found the following topic https://community.idera.com/developer-tools/platforms/f/ios-platform/72356/rad-studio-10-4-ios-arm64-symbol-not-found These are working correctly https://github.com/LazyClutch/openssl-for-i386-x86_64-armv7-armv7s-arm64 Thanks again, Pavel
-
Hi, Do any of you known from where I can download libcrypto.a, libssl.a for iOS device 64? Thank you in advance, Pavel
-
createdirectory 10.4 firemonkey 10.4 failed to create folder on android
PavelX replied to PavelX's topic in FMX
Dave, first of all I want to thank you for your fast reply. It looks that that you have right. Indeed environment User Permissions has no effect Thanks again, Pavel -
createdirectory 10.4 firemonkey 10.4 failed to create folder on android
PavelX posted a topic in FMX
Hi, I try to run the following code on Android (10.4 Sydney) fn:=TPath.Combine(TPath.GetSharedDocumentsPath(),'OLA'); TDirectory.CreateDirectory(fn); // or ForceDirectories(fn) -> I tried both functions if TDirectory.Exists(fn,false) then showmessage('Ok') else showmessage('Failed'); And the code fail. The same code works without any problem with 10.3.3 (using the same phone) Note: On both environments I have used default User Permissions. including "Write external storage" Did you encountered this problem? - how did you solved? Thank you in advance, Pavel -
How limit to one instance on android, windows, linux and mac ? There is any cross platform code? Thank you in advance. Pavel
-
windows onShouldStartLoadWithRequest alternate solutions for FMX.TWebBrowser
PavelX posted a topic in Cross-platform
Hi, As you may know the onShouldStartLoadWithRequest is not working with FMX.TWebBrowser on Windows and Linux platforms. Is OK with Android and MacOS A bug report has been filled a long time (5 years ago) and reported again and again https://quality.embarcadero.com/browse/RSP-11206 27/May/15 2:08 AM https://quality.embarcadero.com/browse/RSP-24414/May/19 2:34 AM the actual status is " Unresolved" without any other reply or solution For me this event is very useful when I try to execute a delphi function from the web browser (javascript) EX: ==== HTML / JAVASCRIPT BROWSER <div id="fresult"></div> <button type="button" onclick="callDelphi()">Call delphi function</button> <script> function callDelphi(){ window.location.href='https://www.fake.com/?func=HiDelphi'; } function setResult(dresult){ document.getElementById('fresult').innerHTML=dresult; } </script> ==== DELPHI UNIT procedure TForm1.wb_ViewShouldStartLoadWithRequest(ASender: TObject; const URL: string); begin if pos('www.fake',url)>0 then begin wb_View.Stop; /// IMPORTANT here we stop the browser if pos('HiDelphi',URL)>0 then wb_View.EvaluateJavaScript('setResult('' Hi from Delphi '')'); end; end; I am just wondering if you have another solution to call a delphi function from FMX TWebBrowser (a cross platform solution) The example is working only with Android and MacOS . For Windows I have used Chromium FMX (another web browser component from https://github.com/salvadordf/CEF4Delphi) I need one source code for multiple platforms and at this moment this is not possible because of this bug Did you know how to create/modify/use other strategy with FMX.TWebBrowser to achieve this? - stop the browser before load/process any URL? Thank you in advance.-
- fmx.twebbrowser
- onshouldstartloadwithrequest
-
(and 2 more)
Tagged with:
-
I don't think there is a problem about the opportunity of existence of ANDROID64 you have IOS32 , IOS64 and IOS, also you have MSWINDOWS, WIN32, WIN64 and so on for LINUX, MACOS, POIX ....
-
When you load different libraries 64/32 bit
-
I think that this is the only solution, I was hoping that the conditional compilation list is not updated and you guys know a symbol that is not on the list. Thanks again
-
How to detect android 64? http://docwiki.embarcadero.com/RADStudio/Rio/en/Conditional_compilation_(Delphi) There is any ANDROID64 Symbol ? Thank you in advance