-
Content Count
1681 -
Joined
-
Last visited
-
Days Won
38
Everything posted by Dave Nottage
-
This is working for me in Delphi 13 Florence, so I am not sure what is happening for you.
-
Sorry, I misunderstood your issue. If it does not match the phone setting, that is a new bug. I'll take a look into it
-
Yes, it is a bug. Did you read any of the posts above?
-
6 years later, I've come up with this.
-
Delphi 12.1 with MacOS version and iOS version
Dave Nottage replied to Peter J.'s topic in Cross-platform
For me, it's: Delphi 13.0, Xcode 26.0, macOS 26.0 (Tahoe), iOS 26.0 SDK As per above, it's working fine for me. You should at least be able to use Xcode 16.4/iOS 18.x SDK to deploy to the App Store using Delphi 13, though by April next year you will need to upgrade. -
Delphi 12.1 with MacOS version and iOS version
Dave Nottage replied to Peter J.'s topic in Cross-platform
It may mean the table is out of date. Regardless of what the table says, if you're deploying to the App Store, you need a mininum of Xcode 16.x, which Delphi 12.2 and later supports. Delphi 12.3 and 13.0 works fine with Xcode 26.x. The debug problem has nothing to do with whether or not it's Xcode 16.x, but what version of iOS is on the device. Being able to launch an iOS app from Delphi is a different matter. It appears somewhere around the Xcode 16.x era the launcher requires a value for CFBundleIdentifier that has at least one dot (.), e.g. the app will launch with a value of com.delphiworlds.$(ModuleName) but not just $(ModuleName). -
Yes, there is here.
-
PAServer works without the patch. The fix was for PAServerManager.
-
Maps using TMapView are supported only on Android and iOS. On WIndows, it does nothing. As far as I know, Windows is supported for the TMS Maps components.
-
How to call onActivityResult of my activity?/java2op not generating some classes
Dave Nottage replied to NecoArc's topic in FMX
I guess this should have been a big clue. Sorry I missed it 🙂 Did they provide any documentation for the SDK, or example apps? Even if it's in Java/Kotlin. If there's an example app you could check the AndroidManifest.xml to see if you have everything required in yours. -
Funny thing - I had already answered this:
-
How to call onActivityResult of my activity?/java2op not generating some classes
Dave Nottage replied to NecoArc's topic in FMX
You need to add this to the <queries> section of AndroidManifest.template.xml, e.g: <queries> <%queries-child-elements%> <!-- The following line has been added manually --> <package android:name="br.com.gertec.easylayer.codescanner" /> </queries> If there is documentation for the SDK, I expect they describe this - it might be different from above. -
Application Delphi 12 and 13 Crash when call bindservice on Android 16
Dave Nottage replied to Kamino's topic in Cross-platform
I don't seem to be able to find it. Do you have a link? EDIT: Never mind.. found it 🙂 -
Delphi 13, Android 13 - Segmentation fault in 64bit app
Dave Nottage replied to Vandrovnik's topic in FMX
TJContext.JavaClass.RECEIVER_EXPORTED -
Application Delphi 12 and 13 Crash when call bindservice on Android 16
Dave Nottage replied to Kamino's topic in Cross-platform
I get the same issue that you do with that example project with my Pixel 6 Pro (Android 16). I think I had it the wrong way around - it seems it is looking for that method with that signature, but of course does not find it. What is more puzzling is that the IBinderSession type does not seem to exist, in any API level, and there are no references to it anywhere in the Delphi source (Java or Pascal) Right now I am at a loss as to what the cause is. -
Application Delphi 12 and 13 Crash when call bindservice on Android 16
Dave Nottage replied to Kamino's topic in Cross-platform
The message is telling you it cannot find a method with the latter signature. Somewhere in your code you have a declaration for that, rather than the correct one. Usually you would use TLocalServiceConnection to connect to a service. It seems you are using something else, because this is how TJavaServiceConnection (used by TLocalServiceConnection) is declared: TJavaServiceConnection = class(TJavaLocal, JServiceConnection) private [Weak] FLocalConnection: TLocalServiceConnection; public constructor Create(const ALocalConnection: TLocalServiceConnection); procedure onBindingDied(name: JComponentName); cdecl; procedure onNullBinding(name: JComponentName); cdecl; procedure onServiceConnected(name: JComponentName; service: JIBinder); cdecl; procedure onServiceDisconnected(name: JComponentName); cdecl; end; Which matches the documentation. There is no indication this has changed since API level 1. -
Delphi 13, Android 13 - Segmentation fault in 64bit app
Dave Nottage replied to Vandrovnik's topic in FMX
Actually, I meant the one for a blank app. As for this one, in the logcat messages there's this message: java.lang.SecurityException: cz.cyklotrek.Cyklotrek: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts I cannot determine what the cause is without seeing your code, however it's related to this. -
How to get the battery capacity of an Android phone?
Dave Nottage replied to ningantai's topic in Cross-platform
The JNI Bridge can be used (as it can for other Java classes, like in many other Java imports in Delphi) for this: uses Androidapi.JNIBridge, Androidapi.JNI.JavaTypes, Androidapi.JNI.GraphicsContentViewText, Androidapi.Helpers; type JPowerProfile = interface; JPowerProfileClass = interface(JObjectClass) ['{A0EDE09D-94EB-447F-AEF8-C0761A5C4BFA}'] {class} function init(context: JContext): JPowerProfile; cdecl; end; [JavaSignature('com/android/internal/os/PowerProfile')] JPowerProfile = interface(JObject) ['{AADA92E9-6D6C-438B-A997-24637F9155E6}'] function getBatteryCapacity: Double; cdecl; end; TJPowerProfile = class(TJavaGenericImport<JPowerProfileClass, JPowerProfile>) end; function GetBatteryCapacity: Double; begin Result := TJPowerProfile.JavaClass.init(TAndroidHelper.Context).getBatteryCapacity; end; Not sure how useful it's going to be. My device is reporting 18% and the value this function returned was 5003. The source for PowerProfile is here - perhaps someone can make sense of it 🙂 -
Delphi 13, Android 13 - Segmentation fault in 64bit app
Dave Nottage replied to Vandrovnik's topic in FMX
Can you upload the 64-bit .apk somewhere? (here if possible) -
If you want to use Firebase supported features in Delphi "out of the box", you need Firebase iOS SDK 6.18, which is listed at the bottom of this page. Other releases can be navigated to via this link.
-
The old Quality Portal is now accessible. This is a link to the report I was referring to.
-
Given that you'd need to rewrite a significant part of the functionality from TCameraComponent (in order to avoid using FMX units), yes.. it'll be somewhat complex.
-
Can you upload your test program here? Alternatively, create an entry in QP and attach there?
-
You cannot use TCameraComponent in a service. If you want to use camera features in a service, you'd need to either implement it yourself or have someone do it for you. It might help to explain why you want code to do this. Using the camera in a service means that it cannot be shown in a UI, so presumably you'll want to be able to record to a file, and/or send the video over a network. This is not trivial. If you wish to use the code from it, yes.
-
In Delphi? From the menu, Tools | Manage Features: