-
Content Count
1587 -
Joined
-
Last visited
-
Days Won
36
Everything posted by Dave Nottage
-
iOS problem since switching from Delphi 12.1 to 12.2
Dave Nottage replied to BytePusher's topic in Cross-platform
I suspect you mean "14 or higher", because I can build using a: Minimum iOS version supported value of 13.0 -
It's because at the time, they had no connection to the internet. I've seen this myself where wifi is not exactly reliable.
-
Why does the "payment" page (or the rest of the site) not use https?
-
Imports folder missing -- attempting to install Macbook app
Dave Nottage replied to cupboy's topic in Delphi IDE and APIs
In which case it seems the import has not completed. You may need to follow these steps: Delete the folder: C:\Users\admin\OneDrive\Documents\Embarcadero\Studio\SDKs\MacOSX14.sdk Delete the SDK from the SDK Manager in Delphi On the Mac, in the ~\PAServer\scratch-dir folder, remove any folders starting with cache-dir In Delphi, re-add the SDK -
Imports folder missing -- attempting to install Macbook app
Dave Nottage replied to cupboy's topic in Delphi IDE and APIs
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 -
How much RAM for Macbook Pro M4 to Run RAD Studio 12?
Dave Nottage replied to amit's topic in General Help
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. -
Why i haven't Android SDK after intall RAD Studio 12?
Dave Nottage replied to Anna Blanca's topic in Cross-platform
In the IDE options - ensure these are checked, and click Save I don't know, sorry. -
Why i haven't Android SDK after intall RAD Studio 12?
Dave Nottage replied to Anna Blanca's topic in Cross-platform
What happens if you create a completely new app, saved to a different path, and compile it? -
Why i haven't Android SDK after intall RAD Studio 12?
Dave Nottage replied to Anna Blanca's topic in Cross-platform
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. -
Why i haven't Android SDK after intall RAD Studio 12?
Dave Nottage replied to Anna Blanca's topic in Cross-platform
Same error? Make sure you changed the Java settings for both Android 32-bit and 64-bit SDKs -
Why i haven't Android SDK after intall RAD Studio 12?
Dave Nottage replied to Anna Blanca's topic in Cross-platform
Your Java settings are incorrect. See my earlier reply. -
Why i haven't Android SDK after intall RAD Studio 12?
Dave Nottage replied to Anna Blanca's topic in Cross-platform
From the IDE menu, use Tools | Options (not Project Options), Deployment > SDK Manager -
Why i haven't Android SDK after intall RAD Studio 12?
Dave Nottage replied to Anna Blanca's topic in Cross-platform
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: -
From the readme: "NOTE This code is dependent on code from the Kastri repo."
-
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
-
D12, Android 14, how to locate "assets\internal" at runtime
Dave Nottage replied to Fudley's topic in FMX
Should be: TPath.GetDocumentsPath -
How do I create an Android simulator under Delphi 11.3 ?
Dave Nottage replied to FreeDelphiPascal's topic in FMX
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? -
How do I create an Android simulator under Delphi 11.3 ?
Dave Nottage replied to FreeDelphiPascal's topic in FMX
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? -
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.
-
For FMX controls, it's the Y value of the Position property
-
How to get the result of Activity.startActivityForResult in android
Dave Nottage replied to iken's topic in Cross-platform
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" -
Could be a 3rd party component package or expert. Start by disabling/removing the latest ones you've installed.
-
How to get the result of Activity.startActivityForResult in android
Dave Nottage replied to iken's topic in Cross-platform
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. -
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
-
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.