Jump to content

Dave Nottage

Members
  • Content Count

    1646
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by Dave Nottage

  1. It can, but there are warnings against doing it. This is an interesting article on the topic. The fact that it is possible (even though ill advised) means that the code in Delphi that turns the GET into a POST on Android, is a bug. Jon R should describe why they need to subvert the warnings against doing it 🙂
  2. A brief example of how to reproduce it would help.
  3. Dave Nottage

    Trouble installing Ios SDK

    At the moment, there's nothing to solve - the error does not appear to affect creating apps using the SDK.
  4. Dave Nottage

    Querying mvnrepository

    I've decided to go down this route - it has turned out easier than I expected, especially when using ExecuteJavascript to extract the relevant parts out of the HTML
  5. Dave Nottage

    Querying mvnrepository

    Already did
  6. Dave Nottage

    Querying mvnrepository

    Yeah, I had considered that, but I'd prefer to avoid it.
  7. Complete error messages may help.
  8. Dave Nottage

    Remove quotes from a string

    Not when using classes that parse the JSON (at least, properly), since they won't include the quotes (given your example). What code are you using to parse it?
  9. Same here. Not sure which method(s) it tries to use to tether in this case - I can take a deeper look later if no-one else answers beforehand.
  10. You'll find some of the demos have been updated, at: https://github.com/Embarcadero/RADStudio11Demos
  11. Dave Nottage

    FMX Tabcontrol Tab Hight

    Do you have AutoSize on the tab item set to False?
  12. Dave Nottage

    New mystery of freezing IDE.

    Either there's a step missing between opening an existing project and pressing the DEL key, or it just doesn't happen for me.
  13. If you mean devices that are nearby, there's at least one example in the demos, which I think includes this one: https://github.com/Embarcadero/RADStudio11Demos/tree/main/Object Pascal/Multi-Device Samples/Device Sensors and Services/Bluetooth/BLEScanner
  14. I'm able to see this post: https://www.delphipraxis.net/212223-natives-layout-unter-firemonkey.html ..and I'd like to access the files that Peter666 attached to the post, however I'm unable to register on the site. Is anyone able to help, either with registration (it says "wrong username or password", but I'm just registering), or access to the files?
  15. There's a demo on using TMapView and placing markers, here.
  16. Dave Nottage

    Android 12, Delphi 11.3 Bluetooth

    Take a look at the ScanFilterServicesAdvData demo in the same folder, specifically TForm6.Button1Click in Unit6.pas. It shows how to request permissions, including the one you need.
  17. Dave Nottage

    Android Dialer replacement

    I know it's been a couple of years, however I was going through my to-do list today and came across something that led me to your post. It seems with InCallService, it is expected that your app actually replaces the default phone app - is this a viable proposition for you? Regardless, I asked ChatGPT about the alternative, which is to monitor for incoming calls, and provide an alternative means of answering the call. Are you still looking for a solution to this, and does the ChatGPT answer fit your requirements?
  18. Dave Nottage

    Google Sign-In

    Is now live! https://github.com/DelphiWorlds/Kastri/tree/master/Demos/GoogleSignIn
  19. Dave Nottage

    Google Sign-In

    Which is sadly out of date (applies to Delphi 10.2). The implementation I'm working on should work in Delphi 11.x, and is more simplified than the Grijjy's.
  20. Dave Nottage

    Google Sign-In

    I have imports there, however an implementation for Google Sign-In is still coming..
  21. Dave Nottage

    GetCryptLibHandle Issue on ios

    FB4D is also (according to the docs) dependent on linking static libraries for SSL, for iOS*. This is at odds with JOSE, which is dependent on dynamic linking. For it to work on iOS, one will need to be changed. *This statement in FB4D seems odd: "The library files libcrypto.a and libssl.a must be deployed within the package". Statically linked files do not need to be deployed. You might also like to see this.
  22. Dave Nottage

    App persistence and restoring state

    It's possible it's because your app crashed. When switching back to it, does it appear as if the app is restarting? I seem to recall OnSaveState being unreliable anyway due to it not being called at all if the app is "swipe closed" (I could be wrong). It might be more reliable to persist anything you need restored as soon as a change has occurred. Using FireDAC, SQLite databases are by default in auto-commit mode, i.e. any changes should be saved immediately.
  23. Dave Nottage

    Android Foreground Server location access blocked

    https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION
  24. I'm confused with your last reply: are you still receiving the error? Also, which version of Delphi are you using?
  25. Dave Nottage

    Android Foreground Server location access blocked

    You should be able to detect whether they've granted "allow all the time" by using: PermissionService.IsPermissionGranted('android.permission.ACCESS_BACKGROUND_LOCATION'); The CrossPlatformLocation demo in Kastri has logic to ensure the user is aware that it will work only if it is granted, starting from the RequestPermissions method, here. If they've already granted sufficient permissions, it just "falls through" to starting the location services.
×