Jump to content

Dave Nottage

Members
  • Content Count

    1560
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by Dave Nottage

  1. Dave Nottage

    Open android gallery with intent

    There is already an import for it in the Androidapi.JNI.Provider unit. In Delphi 10.4.1, starting at line 3658
  2. Dave Nottage

    StoryBoard launch screen - Delphi 10.4

    It's not, e.g: https://stackoverflow.com/questions/33002829/ios-keeping-old-launch-screen-and-app-icon-after-update Another possible solution (which I have not tried): http://arsenkin.com/launch_screen_image_cache.html Edit: An afterthought - this might not help you since your problem is no splash screen at all. Having said that, I still expect it is not an Embarcadero issue.
  3. Dave Nottage

    Problem with Delphi RIO 10.3.3 and Google API Level 29

    It's telling you exactly what the problem is, i.e. that the xml is invalid. It is likely because you have not correctly added the attribute you mentioned. The application tag should look like this:
  4. Dave Nottage

    A component named DotNetForm already exists.????

    This seems related: https://quality.embarcadero.com/browse/RSP-31075
  5. Dave Nottage

    A component named DotNetForm already exists.????

    That can happen when a desktop (.dst) file becomes "invalid". Try renaming whatever your startup layout is (default is C:\Users\(username)\AppData\Roaming\Embarcadero\BDS\21.0\Startup Layout.dst) and restart Delphi - it should recreate the .dst file.
  6. Dave Nottage

    Adding file directories to project

    This won't work for cross-platform projects that target more than one platform from a single project. I started working on something like this a while ago to add to Codex: https://github.com/DelphiWorlds/Codex ..and just the other day I realised I needed it again. Fortunately the project didn't have a lot of dependent units. It has me thinking I should go back and finish it, though 🙂
  7. How do you mean? Please show your code. Also bear in mind that showing the wifi settings as per the last link provided by Rollo62 does not allow you to select a particular config. The user must do that
  8. Dave Nottage

    Find UDP Server

    ..and boy, is that fun 🙄
  9. Dave Nottage

    The android app doesn't start at specific devices

    Thanks for that information. It might help other developers who make the same error. You're welcome!
  10. Dave Nottage

    The android app doesn't start at specific devices

    I've tried your app on my Samsung tablet which has Android 9, and the results are the same. It works on my Pixel 3a which has Android 11. Some questions: Was the application created in an earlier version of Delphi? i.e. like Delphi 10.3.x, or earlier? Does the Libraries node under the Android platform in Project Manager look different to this?: Are there any Java classes that your app uses that you needed to create (or find) an import for? i.e. one that was not supplied with Delphi? If so, which one(s)?
  11. Dave Nottage

    Browsing for certain files on Android

    By "browsers" I assume you mean "folders"? What does "MyDocuments" actually represent? Does it mean the files contained in the folder returned by TPath.GetDocumentsPath? If so, is there some reason why you cannot iterate the files in that folder, and just present them in a list box?
  12. Dave Nottage

    The android app doesn't start at specific devices

    ..and its name is? It may help in finding what the problem is from the logs. Better still, what is the package identifier? Is the app on the Google Play, and if so, is it available in all regions?
  13. If you have not seen already, Chris Pimlott appears to have beaten me to it: https://fmxnative.com/ios-extensions-with-firemonkey
  14. You mean it's possible to use an extension of the type you're using in a Xamarin project? Can you find out what their build process does? I'd like to be able to help you solve this. Can you confirm that the extension you created is exactly the one I asked about earlier? i.e.
  15. Dave Nottage

    Firebase

    Firebase covers a broad range of subjects: https://firebase.google.com/ Which one(s) are you referring to?
  16. Dave Nottage

    IPhone style

    I guess you mean whether it is in Light or Dark mode? If so, take a look at GetUserInterfaceStyle, here: https://github.com/DelphiWorlds/Kastri/blob/master/Core/DW.UIHelper.iOS.pas
  17. Dave Nottage

    Authorization using Apple ID

    Yes, it was a "Dave" bug. Updated demo attached - now allows you to set button type, style and corner radius. AppleSignInDemo.zip
  18. Dave Nottage

    Authorization using Apple ID

    Has not been successful so far. The initWithAuthorizationButtonType method seems to ignore the 2nd parameter being passed to it, as well as the setCornerRadius method. Very odd
  19. Dave Nottage

    Authorization using Apple ID

    I'll see if I can debug it, thanks
  20. Dave Nottage

    Authorization using Apple ID

    Ah yes, sorry.. the roundness can be changed. I'll take a look at adding that. These are the style values: ASAuthorizationAppleIDButtonStyleBlack A black button. ASAuthorizationAppleIDButtonStyleWhiteOutline A button with a white outline. ASAuthorizationAppleIDButtonStyleWhite Which are displayed in the link I gave: https://developer.apple.com/design/human-interface-guidelines/sign-in-with-apple/overview/buttons/#creating-a-custom-sign-in-with-apple-button I'll also take a look at adding support for those.
  21. Dave Nottage

    Authorization using Apple ID

    The implementation I have done uses the native control, i.e. ASAuthorizationAppleIDButton, which is fairly limited in the styles available. Please refer to: https://developer.apple.com/documentation/authenticationservices/asauthorizationappleidbutton?language=objc https://developer.apple.com/documentation/authenticationservices/asauthorizationappleidbuttonstyle?language=objc If you have a sign-in button which does not have a style that is mandated by Apple, your app is likely to be rejected. See: https://developer.apple.com/design/human-interface-guidelines/sign-in-with-apple/overview/buttons/#creating-a-custom-sign-in-with-apple-button Examples of rejections: https://community.auth0.com/t/apple-store-rejected-app-because-of-sign-in-with-apple-styles/43854 https://github.com/firebase/FirebaseUI-iOS/issues/823 For these reasons, I'm not going to be implementing styles other than what they provide.
  22. Dave Nottage

    Authorization using Apple ID

    Sorry.. been busy with Memorizor. They're still coming. Were you after an installable component for Apple Signin, or something else?
  23. For anyone that might come across this topic: I had this error recently. It was being caused by the less than optimal Version Info grid in Project Options. Somehow the CFBundleExecutable value was changed: So if you have the same error message, it might pay to check the values in the Version Info section
  24. I figured this would be easy.. I'm working on an app that needs to read data from a com port - this I have code for. I'm having trouble finding something (that actually works), that can "simulate" data being sent to the port so that it can be read from the app. Simulation is needed because I'm remoting to the machine in question and I'd rather avoid having to (or for someone else to) go to where the machine is to connect a device that might not even be suitable. I have come across this: https://www.aggsoft.com/com-port-emulator.htm, however I'm unable to work out exactly how it is supposed to emulate (when clicking "Start", it prevents anything else from accessing the port) or it's just not suitable anyway. I used to work on apps over 20 years ago (using Delphi 3) that did this kind of thing, but we had the luxury of having the actual hardware with us. That's about how long it has been since I've done this kind of thing.
  25. Dave Nottage

    "Simulating" a com port with data arriving

    Com0Com works great, thanks! I'm using it on Windows 10. Thanks also to everyone else for replying
×