Jump to content

DelphiMT

Members
  • Content Count

    24
  • Joined

  • Last visited

Community Reputation

5 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. DelphiMT

    try... finally on Mac

    I feel for you. I think a big part of the problem is that we lost a lot the developer community when Google shut down Google+ -- there was a pretty active Delphi group there, and while this forum is great, I don't think it has the reach of the old Google+ group. You might try posting on Reddit and Discord as well -- there's got to be someone out there who has solved this problem. I had a similar experience when making an Android app that uses Bluetooth -- much of the Delphi documentation was out-of-date, Stack Overflow wasn't very helpful, and a lot has changed in how you use Bluetooth in recent versions of Android. I do not envy the RAD Studio developers trying to maintain and keep up with 4 different platforms.
  2. It's prob not relevant to your problem, but I've run into a similar issue were the debugging doesn't work on my company laptop, but does on my own PC. I use the same VirtualBox VM on both (I copy the VM files over), so the RAD Studio installation and all the project files are the same on both machines. In my case it's an Android app and I can set breakpoints etc on the company PC but they are just ignored and the app never stops at a breakpoint. The company laptop has a bunch of AV/anti-malware stuff on it so I just assume that's the cause.
  3. Thanks! Now I hate Bluetooth even more than before -- seems like it was implemented early on without much thought for privacy/security. At least it's handled better now in newer versions of Android.
  4. The customized manifest file is working for me (see the snippet in my previous post), but on Android 10 and earlier I still have this problem: 1. App requests location permission at runtime, and the callback indicates that the permission is granted. 2. App then tries to make a Bluetooth connection to the device I'm trying to control (it's a laser with a Bluetooth UART module), and that all works, EXCEPT, if the user has turned off location services, then the app isn't able to connect. In the code I can't tell if it wasn't able to connect because the laser isn't on, or if it's because location services are off. It seems like on Android 10 I can't make a Bluetooth connection unless location services are turned on? I guess even tho the system is telling me that the app has permission to use location (necessary to use Bluetooth on Android 10), it can't actually make a Bluetooth connection without it. My app doesn't need or use any location information -- I'm just using Bluetooth as a way communicating wirelessly with the laser and don't need (or want) to know any location info. I guess that on Android 10 I can check to see if location services are enabled or not and ask the user to turn it on if needed, but that makes it seem like my app is tracking their location. Anyone run into this issue or have suggestions?
  5. DelphiMT

    Getting FireMonkey iOS development off the ground

    This. It can often be an endless loop of installing macOS updates so that you can install a new version of Xcode, and then having to redo your provisioning, certs etc... Keychain Manager is your friend and will help root out outdated certs which can cause all sorts of problems. I usually budget at least a few days of work to sort it all out when updating the Xcode and RAD Studio tool chains, so don't expect it to be a plug-and-play operation -- it will be time-consuming and frustrating at times.
  6. I have an app that uses Bluetooth LE and here's what I had to do to get it working on Android 12 (and above), as well as Android 11 and earlier. I am using RAD Studio 11.2 Alexandria. 1. Edit the AndroidManifest.template.xml file in the project directory to add a special entry for the BLUETOOTH_SCAN permission, so it looks like this: .... <uses-sdk android:minSdkVersion="%minSdkVersion%" android:targetSdkVersion="%targetSdkVersion%" /> <!-- for this next line to work, uncheck the "Bluetooth Scan" from projects "uses" options --> <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" /> <%uses-permission%> .... NOTE: this is just a snippet from the template file showing the line I added, with a comment line above it. 2. In the project options dialog, edit the "Uses Permissions" section and remove the "Bluetooth Scan" option. This is necessary since that option is now already included in the manifest template, and if you select this option in the project options then RAD studio will add the bluetooth scan option to the output manifest, but WITHOUT the usesPermissionFlags attribute. I have no idea if this is the best way to workaround this issue, but it works for me. I've tested it on devices running Android 10, 11, 12, and 13. Hope this helps.
  7. DelphiMT

    Issue with TDialogService.InputQuery fmx for IOS

    I'll give that a try - thanks so much!
  8. DelphiMT

    Issue with TDialogService.InputQuery fmx for IOS

    This issue is still listed as "Open" in QP. It makes our iOS app unusable.
  9. I'm about to start on a similar project. Please let us know what you find out!
  10. DelphiMT

    Is someone using MVVM?

    I've had good luck using it to write a GUI in Delphi which interacts with another program that was written in Python. I use sockets to communicate between the two processes, which has the added benefit of allowing the GUI to run on a different machine if needed, it could even be on a different platform. I've used this same architecture even when the program(s) are written in the same language. The MVVM structure works well for this -- I generally have the View (the GUI) send messages over the socket to the ViewModel, which then dispatches them to the appropriate Model. I use thread-safe queues and background threads for all the I/O so that the GUI is never blocked.
  11. DelphiMT

    Any luck using 10.4.1 on Windows 8.1?

    That's disappointing.. I've been away from Delphi for a few months and was hoping things had gotten better with the new release. Which is the most stable recent version of Delphi in your experience? I need to compile 64bit apps for Android and macOS, I was under the impression that 10.4.1 was the only version that could do that.
  12. DelphiMT

    Any luck using 10.4.1 on Windows 8.1?

    It still gets security fixes which is all I want.
  13. I just tried to install 10.4.1 on my Windows 8.1 virtual and got the error that RAD Studio no longer supports installation on Windows 8.1, but you can ignore the error and install anyhow. Has anyone else tried using 10.4.1 on Windows 8.1 -- if so, did you have any problems? I prefer to use 8.1 because I can control what Windows updates are installed. Thanks!
  14. I had issues similar to this when making an app that uses Bt LE on android. I'm traveling now and when I get home (in a few days) I'll dig out my notes and provide some examples of how I worked around this. My fuzzy recollection is that because Bluetooth can be used to infer someone's location, you have to have all the location permissions granted, and IIRC it seemed to matter that you do them in a certain order.
  15. Great news! I rely heavily on SecureBridge and always wait until they support the new version before updating.
×