Jump to content

Patrick PREMARTIN

Members
  • Content Count

    302
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Patrick PREMARTIN

  1. Patrick PREMARTIN

    Delphi CE application accesses unknown IPs

    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 ?
  2. Patrick PREMARTIN

    Google Play requires Android 13 after 31. august !!!

    The same was said about Apple and they still give external tools for other development environments / languages.
  3. Patrick PREMARTIN

    Google Play requires Android 13 after 31. august !!!

    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.
  4. Patrick PREMARTIN

    Google Play requires Android 13 after 31. august !!!

    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.
  5. Patrick PREMARTIN

    No Android Platform in Delphi 11.3

    Did you finally contacted Embarcadero support ?
  6. Patrick PREMARTIN

    Some REST help please.

    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.
  7. Patrick PREMARTIN

    Ann: NexusDB presence at Embarcadero Bootcamp

    See you there 😉
  8. Patrick PREMARTIN

    Some REST help please.

    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.
  9. Patrick PREMARTIN

    Some REST help please.

    very strange does they have a public doc and sandbox ?
  10. Patrick PREMARTIN

    Some REST help please.

    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".
  11. Patrick PREMARTIN

    Some REST help please.

    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.
  12. Patrick PREMARTIN

    Some REST help please.

    The URL ? Did you tried with REST Debugger to be sure you have all parameters ?
  13. Patrick PREMARTIN

    Strange problem skipping loop with tTask

    And to not block the program during the loop, the Parallel.For can be put in a thread. 🙂
  14. 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.
  15. 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).
  16. 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.
  17. 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)
  18. Does your laptop have a fixed IP address or does it change sometimes ?
  19. 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
  20. Patrick PREMARTIN

    Some REST help please.

    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.
  21. 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.
  22. Patrick PREMARTIN

    No Android Platform in Delphi 11.3

    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
  23. Patrick PREMARTIN

    No Android Platform in Delphi 11.3

    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.
  24. 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. 😉
  25. 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
×