Jump to content

Dave Nottage

Members
  • Content Count

    1608
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by Dave Nottage

  1. That's a warning - you can ignore it. That seems to be more like what the real problem is. Perhaps the SDK that was imported has been removed? You should check whether this folder exists: C:\Users\admin\OneDrive\Documents\Embarcadero\Studio\SDKs\MacOSX14.sdk
  2. If you just have one VM (presumably Windows, with Delphi) running at any one time, and don't run a bunch of memory hogging apps (e.g. VS Code, most of the popular browsers etc), you can get by with 16GB. I did for years, but when I started often having more than one VM running at a time (as well as VS Code etc), I shifted to a 32GB machine.
  3. Dave Nottage

    Why i haven't Android SDK after intall RAD Studio 12?

    In the IDE options - ensure these are checked, and click Save I don't know, sorry.
  4. Dave Nottage

    Why i haven't Android SDK after intall RAD Studio 12?

    What happens if you create a completely new app, saved to a different path, and compile it?
  5. Dave Nottage

    Why i haven't Android SDK after intall RAD Studio 12?

    Which is vastly different to the original error. It apparently has some issues with the characters in the path. Try loading a project from a path that has just plain ascii characters in it.
  6. Dave Nottage

    Why i haven't Android SDK after intall RAD Studio 12?

    Same error? Make sure you changed the Java settings for both Android 32-bit and 64-bit SDKs
  7. Dave Nottage

    Why i haven't Android SDK after intall RAD Studio 12?

    Your Java settings are incorrect. See my earlier reply.
  8. Dave Nottage

    Why i haven't Android SDK after intall RAD Studio 12?

    From the IDE menu, use Tools | Options (not Project Options), Deployment > SDK Manager
  9. Dave Nottage

    Why i haven't Android SDK after intall RAD Studio 12?

    It appears the settings for the Java tab in the Android SDK settings are incorrect. Use Tools | Manage Features in the Delphi menu to ensure that the Eclipse Temurin OpenJDK 17 (it appears on the right of the Manage Features window, towards the bottom) is installed, and the Java settings look like this:
  10. Dave Nottage

    How to send and intercept USSD result

    From the readme: "NOTE This code is dependent on code from the Kastri repo."
  11. Dave Nottage

    How to send and intercept USSD result

    This is not the same approach as what Ranja was trying, however it might be what you are looking for: https://github.com/DelphiWorlds/Playground/tree/main/Demos/UssdRequester
  12. Dave Nottage

    D12, Android 14, how to locate "assets\internal" at runtime

    Should be: TPath.GetDocumentsPath
  13. Dave Nottage

    How do I create an Android simulator under Delphi 11.3 ?

    It does not enter debug mode at all, or it does not stop at breakpoints? Does the app crash perhaps, before the debugger has a chance to attach to the process? How does the bug manifest itself? i.e. are there any error messages? Does the app start?
  14. Dave Nottage

    How do I create an Android simulator under Delphi 11.3 ?

    If the emulator is running on the same machine as Delphi, it should appear in the list under the Target node, which is under the Android platform nodes in Project Manager in Delphi. What is the actual issue you are having?
  15. Dave Nottage

    Running Rad Studio 12 on Mac book M4 CPU

    I use Parallels on a Mac M1 to run a Windows ARM VM, and Delphi works very well on it. I expect an M4 would be even better.
  16. Dave Nottage

    Alignment of group of controls

    For FMX controls, it's the Y value of the Position property
  17. No such element as "date" here - it should be: data. Is this a typo or what you actually have in your manifest? Are both of these your apps, or is application B a third-party app? I'm assuming the latter, since you do not appear to have included any code for it, and your example still is not complete enough to determine what the problem is. Regardless, I suggest you use a logcat viewer to determine exactly why app A is "restarting"
  18. Dave Nottage

    D12.3 Error when closing

    Could be a 3rd party component package or expert. Start by disabling/removing the latest ones you've installed.
  19. You appear to be trying to do something different from the OP. Save what? Yes: please describe what it is you are actually trying to achieve, preferably with a more complete example.
  20. Dave Nottage

    iOS Selectors in Delphi

    OK, so after a bit of wailing and gnashing of teeth, I've come up with something more simplified - hopefully as much as possible. The attached code is just for iOS, however hopefully it meets these basic requirements: Requests permissions that allow creation of an album that can be accessed by the app If permissions are too limited, or denied, prompts the user to change the app settings, which is the only way to make subsequent changes if the permissions are not granted. If the prompt is declined, a value is set in the user defaults, so that the user is not prompted again. If they wanted to grant access again later, either this would need to be coded in the app, or they would need to do a manual change Once permissions are granted, the Create/Find Album button becomes enabled, and clicking that either locates the existing album, or fires off a change request to add the album Once the album has been created or found, the Save Image button becomes enabled. Tapping it fires off a request to save the image in the TImage component to the album Notes: The attached demo does not have any dependencies other than what comes with Delphi, and the units provided with it. It contains a "re-import" of the Photos framework with the newer classes, methods etc. It assumes that the device has iOS 14+, so the code would need to be modified to support older versions Feel free to ask about whatever I may have missed 🙂 The plan is to eventually update Kastri with the new import, and include some of the code in the demo as well. SaveImageDemo.zip
  21. Dave Nottage

    iOS Selectors in Delphi

    Thanks for the heads up. As you might gather, that import has not been updated to include newer APIs in a while. I'm planning on updating it, as well as look at those methods you mentioned.
  22. Dave Nottage

    iOS Selectors in Delphi

    If you indeed needed to do this, an issue should be filed in the Quality Portal. Kudos for working that one out - it had me stumped. In which case, you may be interested in this demo which uses an implementation of the PHPhotoLibrary framework. I had been considering creating a kind of "lite" version just for saving images to a nominated collection, because the entire implementation might be considered "overkill" when that's all that is being used.
  23. Dave Nottage

    alarm clock play sound for 10 seconds

    Probably best to schedule local notifications and associate them with a sound (that lasts for 10 seconds). There's documentation about it here. Note: Notification sounds on Android (since version 6) are associated with a channel, rather than a notification. The trick of course is that you would need to schedule the notifications a fair way in advance, in case the user does not open the app for some time. I doubt there's any other way of reliably firing off an alarm at exact times - Android and iOS have made that kind of thing increasingly difficult to implement. I'm happy to be proven wrong 🙂
  24. Dave Nottage

    TMemo no longer scrolls on iOS when set to Platform on iOS 18

    I've added a comment to the report, however I'm repeating it here: It appears the UIPanGestureRecognizer being used in the parent "native" implementation (TiOSScrollBox) is interfering with the scrolling - I'm yet to find exactly why. Making a copy of FMX.ScrollBox.iOS and commenting out this line: View.addGestureRecognizer(FPanRecognizer); seems to fix it, but I expect any pan gestures supported by Delphi will be lost, and this would also apply to TStringGrid, for example.
  25. You do not have that. Please provide a complete example, that has the correct spelling of implementation, and the declaration for TFooBase, e.g. unit Unit2; interface type TFooBase = class; TFooBaseClass = class of TFooBase; TFooBase = class end; TFooA = class(TFooBase) end; TFooB = class(TFooBase) end; //Then in another class type TBar = class public function FindFooByClass(AFooClass: TFooBaseClass): TFooBase; end; implementation function TBar.FindFooByClass(AFooClass: TFooBaseClass): TFooBase; begin end; end. Which incidentally, compiles. Also, please just ask your question in one group.
×