Jump to content

Dave Nottage

Members
  • Content Count

    1424
  • Joined

  • Last visited

  • Days Won

    32

Everything posted by Dave Nottage

  1. Dave Nottage

    Communication from local computer into "rdp session"?

    You could use this as a starting point, or to learn from: https://github.com/DelphiWorlds/MiscStuff/blob/master/Test/RDSTwainTestCase.zip Though the code is pretty messy. I had a plan to re-organise it - maybe some day πŸ™‚
  2. Dave Nottage

    iOS app can’t start on iPhone

    You may also need to delete any cache-xxxxxx folders under PAServer/scratch-dir on the Mac, then import
  3. As you discovered, it is being added during the build process. The value for exported is not in any configuration files so presumably it is hard-coded. The "easiest" way to fix this is to edit the generated AndroidManifest.xml, add it to the deployment and disable the one that Delphi would normally deploy. Of course this means having to repeat the process if you make any changes that affect the manifest. ..or you could use Delphi 11, where the problem has been fixed.
  4. 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
  5. Dave Nottage

    iOS 15.1

    If you haven't installed either the November or January patch, install that, then re-import the iOS SDK.
  6. 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.
  7. 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
  8. Dave Nottage

    Detecting start of drag operations

    As promising as that looked, it didn't help πŸ™‚
  9. 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.
  10. 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 πŸ˜‰
  11. 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.
  12. 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
  13. Dave Nottage

    RS 11 FMX Android JFileProvider not found

    This might apply to you: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidLibraries
  14. Please see: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidLibraries
  15. 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
  16. 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?
  17. I don't know of any option for df that means it needs to wait for input
  18. 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
  19. Which libraries are they? Have you read their documentation to see if they actually wait for input while they're running?
  20. https://www.google.com/search?q=movie+format+compatible+across+platforms
  21. Use the IsRunning property
  22. 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.
  23. if you're planning on deploying to the Play Store, staying current is a better option.
  24. 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
  25. 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.
Γ—