Jump to content

Dave Nottage

Members
  • Content Count

    1681
  • Joined

  • Last visited

  • Days Won

    38

Everything posted by Dave Nottage

  1. Dave Nottage

    TTimeEdit picker time format

    This is working for me in Delphi 13 Florence, so I am not sure what is happening for you.
  2. Dave Nottage

    TTimeEdit picker time format

    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
  3. Dave Nottage

    TTimeEdit picker time format

    Yes, it is a bug. Did you read any of the posts above?
  4. Dave Nottage

    Delphi + Android java class + init function problem

    6 years later, I've come up with this.
  5. Dave Nottage

    Delphi 12.1 with MacOS version and iOS version

    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.
  6. Dave Nottage

    Delphi 12.1 with MacOS version and iOS version

    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).
  7. Dave Nottage

    Detection of Internet Connection

    Yes, there is here.
  8. Dave Nottage

    D13 already has a patch

    PAServer works without the patch. The fix was for PAServerManager.
  9. Dave Nottage

    TMapview stays empty

    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.
  10. 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.
  11. Dave Nottage

    Send image with mms

    Funny thing - I had already answered this:
  12. 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.
  13. I don't seem to be able to find it. Do you have a link? EDIT: Never mind.. found it 🙂
  14. Dave Nottage

    Delphi 13, Android 13 - Segmentation fault in 64bit app

    TJContext.JavaClass.RECEIVER_EXPORTED
  15. 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.
  16. 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.
  17. Dave Nottage

    Delphi 13, Android 13 - Segmentation fault in 64bit app

    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.
  18. Dave Nottage

    How to get the battery capacity of an Android phone?

    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 🙂
  19. Dave Nottage

    Delphi 13, Android 13 - Segmentation fault in 64bit app

    Can you upload the 64-bit .apk somewhere? (here if possible)
  20. Dave Nottage

    Delphi 13, No Firebase SDK in Getit

    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.
  21. Dave Nottage

    I cannot add components in my Android Service

    The old Quality Portal is now accessible. This is a link to the report I was referring to.
  22. Dave Nottage

    I cannot add components in my Android Service

    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.
  23. Dave Nottage

    loading example data into fmx TStringGrid

    Can you upload your test program here? Alternatively, create an entry in QP and attach there?
  24. Dave Nottage

    I cannot add components in my Android Service

    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.
  25. Dave Nottage

    help

    In Delphi? From the menu, Tools | Manage Features:
×