-
Content Count
302 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Patrick PREMARTIN
-
Delphi CE application accesses unknown IPs
Patrick PREMARTIN replied to everybyte's topic in Network, Cloud and Web
If it's in your program (executed without debug mode), nothing else the IP you try to GET should be called. Are you sure the problem come from TNetHTTPClient ? -
Google Play requires Android 13 after 31. august !!!
Patrick PREMARTIN replied to Hans♫'s topic in Cross-platform
The same was said about Apple and they still give external tools for other development environments / languages. -
Google Play requires Android 13 after 31. august !!!
Patrick PREMARTIN replied to Hans♫'s topic in Cross-platform
The steps to follow (in French) : https://developpeur-pascal.fr/configurer-delphi-113-alexandria-pour-cibler-android-13-avec-son-sdk-33.html Translated in English by Google : https://developpeur--pascal-fr.translate.goog/configurer-delphi-113-alexandria-pour-cibler-android-13-avec-son-sdk-33.html?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=fr&_x_tr_pto=wapp For the manifest, simply edit the template and replace the %targetsdkversion% by 33 and construct / deploy your app. -
Google Play requires Android 13 after 31. august !!!
Patrick PREMARTIN replied to Hans♫'s topic in Cross-platform
For each app we can extend the delay to November 1st : - on the play console go to your app - on the side bar you have a "rules conformity" option (bottom of the menu for me) - you must have a "your app must target Android 13" message, click on the link - at the bottom of the page you have a button to extend the delay until November Our apps won't disappear from the store, it's only we can't publish new ones after September 1st or update existing one after November 1st. "old" devices continue to have the apps on the AppStore application. Don't panic ! (even if Google does everything to make us believe that there is an emergency or that it's a catastrophe) About Delphi 12/C++Builder 12, an invitation has been sent to developers under subscription last week to join the beta test. If you have not received it, please contact the sales teams, who will do what is necessary. -
No Android Platform in Delphi 11.3
Patrick PREMARTIN replied to softtouch's topic in Delphi IDE and APIs
Did you finally contacted Embarcadero support ? -
A REST API has rules : using http commands with parameters to access data as a list or a record and allowing CRUD features if needed. A POST is by convention something with parameters send like a browser does : url encoded in the body, not as a textual body content. They do what they want, it's not the problem, but using REST API as a description of what they do is not true, because we expect standard behavior instead of something that doesn't respect the habits of this type of interface. It's an API, a web API, but not a REST API.
-
Ann: NexusDB presence at Embarcadero Bootcamp
Patrick PREMARTIN replied to eivindbakkestuen's topic in Delphi Third-Party
See you there 😉 -
Glad it's up and running. Don't hesitate to give a slap in my name to those people who make a REST API that isn't a REST API just because they use a POST.
-
very strange does they have a public doc and sandbox ?
-
As I understand it, your doc integration displays a REQUEST with a JSON as the body of the request. It's not a POST/GET standard call... and they must not having called it "REST API". Try to pass the parameters as BODY fields instead of GET/POST. Other way could be to copy/paste the object JSON generated with your parameters directly in the first tab in REST Debugger as "personalized body".
-
It depends on how the API expect to receive them. The GET/POST is use as GET param when you send a GET request and as POST params when you send a POST request. The status code 200 is normal : it's the http/s return status code. It says the URL you called has answered. As we see in the screen capture, Vodafone answered with a JSON object with 3 properties : result, code, and data as a JSON object. Fix the problem in REST debugger and export the components. Open a text editor (or Delphi's code editor), paste the result and you'll have all properties of the components to change in the form editor or by code depending on what you want to do.
-
The URL ? Did you tried with REST Debugger to be sure you have all parameters ?
-
Strange problem skipping loop with tTask
Patrick PREMARTIN replied to Jud's topic in RTL and Delphi Object Pascal
And to not block the program during the loop, the Parallel.For can be put in a thread. 🙂 -
What is the recommended method of obtaining my devices IP address?
Patrick PREMARTIN replied to JohnLM's topic in Cross-platform
Or you can use "Bonjour" (or uPnP) to publish your service over the network and find it, because as I suppose your question is how to find computers where your program is launched to communicate between devices. -
Is it possible to send text from android to a windows laptop and back over wifi?
Patrick PREMARTIN replied to JohnLM's topic in Cross-platform
About the WIFI, it's normal : AppTethering uses a broadcast UDP message to find other programs on the local network. It don't work over the Internet (so not over 3G/4G/5G/... except if you give a public address with a routing to your computer). -
Is it possible to send text from android to a windows laptop and back over wifi?
Patrick PREMARTIN replied to JohnLM's topic in Cross-platform
It's a normal security feature on Android : we can't replace an existing app when it's from an other source than previous one. The compiler add a key in the program, if you compile with an other you have to remove the app on your phone before. -
Is it possible to send text from android to a windows laptop and back over wifi?
Patrick PREMARTIN replied to JohnLM's topic in Cross-platform
Could you try this sample project ? The server listen on port 8080 for all IP by default on the PC. The firewall should ask if you want to open the port on public or private network (private should be the one clicked by default if your computer has the good parameters). You can specify an IP address in the client project and compile it for Windows and for Android. Check the IP with "ipconfig" or in the network parameters in a terminal window. (just download a ZIP of the repository to compile this sample : no need of any dependance https://github.com/DeveloppeurPascal/Socket-Messaging-Library or you can use Git, of course) -
Is it possible to send text from android to a windows laptop and back over wifi?
Patrick PREMARTIN replied to JohnLM's topic in Cross-platform
Does your laptop have a fixed IP address or does it change sometimes ? -
Is it possible to send text from android to a windows laptop and back over wifi?
Patrick PREMARTIN replied to JohnLM's topic in Cross-platform
Did you check you firewall or antivirus on both side ? If you have Bluetooth enable, you can try AppTethering with Bluetooth instead of ethernet, I never tried it but perhaps it could solve your problem ? https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Using_App_Tethering -
Hi Delphi has TNetHTTPClient/TNetHTTPRequest components and THTTPClient/THTPRequest classes to work with http(s) requests. You can use them to POST something if you want. Look at btnSendFileClick method in https://github.com/DeveloppeurPascal/Des-solutions-de-synchronisations-de-donnees/blob/master/04-Internet/Client/Unit1.pas or how I use POST request in the DeepL4Delphi library at https://github.com/DeveloppeurPascal/DeepL4Delphi And if you want to use TRESTClient/TRESTRequest, you can use the REST Debugger available in "tools" menu of the IDE to do a sample request and export the components from it.
-
Is it possible to send text from android to a windows laptop and back over wifi?
Patrick PREMARTIN replied to JohnLM's topic in Cross-platform
I'm agree, cleaning sockets instances have to be done when they disconnect. I have to add it to my sample program and in other tools, but no real impact for a little program with little volume of users. For a big server it has to be fixed. -
No Android Platform in Delphi 11.3
Patrick PREMARTIN replied to softtouch's topic in Delphi IDE and APIs
Ok, try to uninstall the Android compiler, reboot and reinstall it, but if it doesn't work contact Embarcadero support https://www.embarcadero.com/support -
No Android Platform in Delphi 11.3
Patrick PREMARTIN replied to softtouch's topic in Delphi IDE and APIs
If you open a project made for iOS/Android, does it compile or show Android platform as available ? You can try https://github.com/DeveloppeurPascal/LearnToCodeSummerCamp2021/tree/main/Day-3 or a mobile snippets (permission or camera) for Embarcadero samples to check. -
Is it possible to send text from android to a windows laptop and back over wifi?
Patrick PREMARTIN replied to JohnLM's topic in Cross-platform
I added a sample for send/receive strings over a Socket here : https://github.com/DeveloppeurPascal/Delphi-samples/tree/main/Network-Samples/01-TSocket it could inspire you. 😉 -
Is it possible to send text from android to a windows laptop and back over wifi?
Patrick PREMARTIN replied to JohnLM's topic in Cross-platform
Perhaps check the AppTethering here : https://github.com/DeveloppeurPascal/Des-solutions-de-synchronisations-de-donnees You also can embed a web server in your desktop app and use GET/POST http commands. And if you want to do something really free, use a TSocket and a TSocketStream to send and receive texts. This unit will help to write/read a string over a stream : https://github.com/DeveloppeurPascal/librairies/blob/master/Olf.RTL.Streams.pas