Jump to content

Dave Nottage

Members
  • Content Count

    1296
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by Dave Nottage

  1. Dave Nottage

    iOS app can’t start on iPhone

    If you imported the iOS SDK before you installed the patches, you will need to re-import the SDK
  2. Dave Nottage

    iOS 15.1

    If you haven't installed either the November or January patch, install that, then re-import the iOS SDK.
  3. Dave Nottage

    Detecting start of drag operations

    This answer has served me well for some time now: https://stackoverflow.com/a/13835244/3164070 however it does not work for when a user drags an attachment from Outlook (it works when dragging the entire email). Does anyone know if an object of a different name is created, or perhaps some other "event" occurs? I'm otherwise looking at installing a global mouse hook as @Remy Lebeau suggests in one of the other answers in the same SO post.
  4. Dave Nottage

    Detecting start of drag operations

    I'd like to know how it is the likely solution. Please refer to the original question. The problem I am trying to solve is in the original question. The "why" is that a WVD app is on the receiving end of the drag operation, and the virtual channel needs to register the WVD app window for drag/drop. The best time to do this is at the start of the operation. As I say, this has been working famously for standard drag/drop, but it does not work for dragging attachments out of Outlook
  5. Dave Nottage

    Detecting start of drag operations

    As promising as that looked, it didn't help πŸ™‚
  6. If you're using the original project, follow the steps here to ensure that it has references to the correct Android libraries: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidLibraries Delete the original AndroidManifest.template.xml, making sure you note any customizations you added yourself. Recompiling the project should recreate the AndroidManifest.template.xml file and you can add any customizations back in. I suspect the error messages you were seeing when you tried compiling with Delphi 10.4 may have been related to having an older AndroidManifest.template.xml. Assuming that you had not changed the %targetSdkVersion% part of AndroidManifest.template.xml, you will find that your app will now need to request permissions for "dangerous" permissions at runtime, so you will need to modify your code to suit. There's examples of how to do this in demos like in the camera component demo: https://github.com/Embarcadero/RADStudio11Demos/tree/main/Object Pascal/Mobile Snippets/CameraComponent and the location demo: https://github.com/Embarcadero/RADStudio11Demos/tree/main/Object Pascal/Mobile Snippets/Location If you opted to install the Android SDK/NDK files when you installed Delphi 11, when you add an SDK, it should default to the compatible values anyway.
  7. Dave Nottage

    Async dialog on android?

    I can understand that async dialogs are a concept that can be a challenge to embrace. Some time in the future we'll all be wondering why πŸ˜‰
  8. Dave Nottage

    Async dialog on android?

    There's a good reason for that - implementing modal dialogs on Android the same way as on Windows is practically impossible. The workaround is to use async dialogs. Developers do this on Windows all the time - from one form, show another. When the user takes some action on the secondary form, do something based on that action, and close the form. The primary form will still be there when they get back πŸ™‚ If the primary form needs to "know" what happened on the secondary form, you could expose a property or event handler on the secondary form which the primary form can examine, or handle.
  9. Dave Nottage

    Application terminate on Android/iOS

    For Android, this is the only way I've found that will quit completely and remove the task from the "recent items" list: https://github.com/DelphiWorlds/Kastri/blob/64a5600e0845862f3e3991cd1708dee82a65ff45/Core/DW.Android.Helpers.pas#L561 For iOS, it's bound to have your app rejected if it is on the App Store, otherwise: https://developer.apple.com/library/archive/qa/qa1561/_index.html
  10. Dave Nottage

    RS 11 FMX Android JFileProvider not found

    This might apply to you: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidLibraries
  11. Please see: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidLibraries
  12. Dave Nottage

    AdMob in Delphi11

    I've just added a new demo: https://github.com/DelphiWorlds/Playground/tree/main/Demos/Advertising to the Playground repo
  13. Dave Nottage

    Cannot write to GetLibraryPath (Android)

    On Android, it's not meant to be written to by the app. What is the reason why you're using that folder to write to?
  14. I don't know of any option for df that means it needs to wait for input
  15. You said you are running apps that result in: Process terminated with exit code: 0. Stockfish just locked up on me - regardless of whether or not it's waiting for input, that's not what you described
  16. Which libraries are they? Have you read their documentation to see if they actually wait for input while they're running?
  17. https://www.google.com/search?q=movie+format+compatible+across+platforms
  18. Use the IsRunning property
  19. I had originally planned on having a commercial version, however those plans changed. Now Kastri is driven mostly by sponsorship and one-off donations. Kastri Free is deprecated and developers should use Kastri instead.
  20. if you're planning on deploying to the Play Store, staying current is a better option.
  21. It runs on my Android 11 device when I build it with Delphi 11. If you're using 10.4.1, you should go to the Libraries node under the Android platform in Project Manager, right click it and click Revert System Files To Default. Like this, but you're going back a version: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidLibraries
  22. Dave Nottage

    Where I can find all implemented services documentation

    There may not be one, although this link (from the one you gave) might help: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Mobile_Tutorials:_Mobile_Application_Development_(iOS_and_Android) It might be easier to ask here if there is an implementation of what you want to use, or scan the Delphi source.
  23. Dave Nottage

    3rd party Android app or Apple app stores

    Yes. They're called Custom Apps: https://developer.apple.com/custom-apps/ Yes, that would be. It seems they're hard to find.
  24. Dave Nottage

    3rd party Android app or Apple app stores

    Play Store has a restriction on the target SDK level (30), but does not have a restriction on the minimum SDK level set for an app, so you can support users that have lower versions of Android. The iOS App Store apparently has a restriction of a minimum version of iOS 9.0. That might work if you find a viable alternative for Play Store. If you wish to target app stores, you need to stay current with Delphi.
  25. Dave Nottage

    DRM video player

    ALFmxVideoPlayer uses ExoPlayer (which supports DRM) for Android: https://github.com/Zeus64/alcinoe/blob/master/source/ALFmxVideoPlayer.pas You might be able to at least learn from the code.
Γ—