-
Content Count
1609 -
Joined
-
Last visited
-
Days Won
36
Posts posted by Dave Nottage
-
-
4 minutes ago, cupboy said:E2597 ld: warning: directory not found for option '-LC:\Users\admin\OneDrive\Documents\Embarcadero\Studio\22.0\Imports\OSXARM64'
That's a warning - you can ignore it.
4 minutes ago, cupboy said:ld: file not found: CoreFoundation
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
-
5 hours ago, amit said:Can you suggest me how much RAM for M4 Macbook should it have to Run RAD Studio 12 for developing all Platforms (iOS, Android, Mac, Linux and Windows)?
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.
-
1
-
-
-
3 minutes ago, Anna Blanca said:But earlier, Delphi 11 works normal with tis path....
What happens if you create a completely new app, saved to a different path, and compile it?
-
20 minutes ago, Anna Blanca said:And that's message about error:
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.
-
12 minutes ago, Anna Blanca said:And my Delphi-12 as before not working.
Same error? Make sure you changed the Java settings for both Android 32-bit and 64-bit SDKs
-
43 minutes ago, Anna Blanca said:Yes, i have it all. But compilling under Android doesn't work....
Your Java settings are incorrect. See my earlier reply.
-
2 minutes ago, Anna Blanca said:No SDK Manager....
From the IDE menu, use Tools | Options (not Project Options), Deployment > SDK Manager
-
11 minutes ago, Anna Blanca said:this time with message from my new screens
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:
-
-
15 minutes ago, khaledAlamdar said:If you find it, don't forget to share it with us.
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-
1
-
-
36 minutes ago, Fudley said:TPath.GetAppPath
Should be: TPath.GetDocumentsPath
-
18 minutes ago, Tang said:When I debug the android app, after pressing F9, it cannot run in debug mode
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?
19 minutes ago, Tang said:Don't know where the bug is in the app.
How does the bug manifest itself? i.e. are there any error messages? Does the app start?
-
On 5/9/2025 at 7:36 PM, Tang said:How to get the Delphi linked to it?
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.
On 5/9/2025 at 7:36 PM, Tang said:the problem is I cannot run in debug mode
What is the actual issue you are having?
-
6 minutes ago, amit said:I wonder if it is possible to run RAD Studio 12 on Mac book under Virtual Machine like Parallels
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.
-
1
-
-
11 hours ago, Fudley said:Where can I find the Top value please?
For FMX controls, it's the Y value of the Position property
-
8 minutes ago, Alisson said:<date
android:host="pay-response"
android:scheme="retornopagamento/return_scheme" />No such element as "date" here - it should be: data. Is this a typo or what you actually have in your manifest?
10 minutes ago, Alisson said:I have an application A that calls an application B with intent implicitly:
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"
-
1
-
-
38 minutes ago, ToddFrankson said:Happens when I close Delphi (With or without opening a project)
Could be a 3rd party component package or expert. Start by disabling/removing the latest ones you've installed.
-
6 hours ago, Alisson said:I managed to make it work, but at some points my app restarts.
You appear to be trying to do something different from the OP.
6 hours ago, Alisson said:But after I save it
Save what?
6 hours ago, Alisson said:Any tips?
Yes: please describe what it is you are actually trying to achieve, preferably with a more complete example.
-
On 4/24/2025 at 8:39 AM, Dave Nottage said:I'm planning on updating it, as well as look at those methods you mentioned.
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.
-
2
-
1
-
56 minutes ago, alejandro.sawers said:On iOS 14+ we finally have ways to request and check write-only access to the photo library via authorizationStatusForAccessLevel and requestAuthorizationForAccessLevel. These are missing from Kastri but are trivial to import, except for requestAuthorizationForAccessLevel
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.
-
1
-
-
12 minutes ago, alejandro.sawers said:Patch Macapi.ObjectiveC.pas to force a custom encoding for our signature:
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.
13 minutes ago, alejandro.sawers said:Given the above limitation a best approach would be using the PHPhotoLibrary framework, as this allows to ask permission and check its status if previously denied, but such framework it is not implemented in Delphi by default.
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.
-
4 hours ago, Anto90 said:I need to implement an alarm (ios and android) that rings at different times of the day. Is it possible to do it with the Kastri library by Dave Nottage?
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 🙂
-
On 4/16/2025 at 3:06 AM, Chris Pim said:I’ve logged a QP issue for this but wonder if anyone could suggest any other workarounds or options?
I've added a comment to the report, however I'm repeating it here:
It appears theUIPanGestureRecognizer
being used in the parent "native" implementation (TiOSScrollBox
) is interfering with the scrolling - I'm yet to find exactly why. Making a copy ofFMX.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.
Imports folder missing -- attempting to install Macbook app
in Delphi IDE and APIs
Posted
In which case it seems the import has not completed. You may need to follow these steps: