Jump to content

Dave Nottage

Members
  • Content Count

    1296
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by Dave Nottage

  1. Dave Nottage

    Why AV happen here

    This is the code: unit utTFrameStandDemoLoginFrame; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Objects, FMX.Effects, FrameStand; type TTFrameStandDemoLoginFrame = class(TFrame) TFrameStandDemoLoginFrameRectangle: TRectangle; TFrameStandDemoLoginFrameToolBar: TToolBar; TFrameStandDemoLoginFrameToolBarShadowEffect: TShadowEffect; TFrameStandDemoLoginFrameToolBarLabel: TLabel; TFrameStandDemoLoginFrameToolBarBackSpeedButton: TSpeedButton; procedure TFrameStandDemoLoginFrameToolBarBackSpeedButtonClick(Sender: TObject); private { Private declarations } [FrameInfo] FInfo: TFrameInfo<TTFrameStandDemoLoginFrame>; public { Public declarations } end; implementation {$R *.fmx} procedure TTFrameStandDemoLoginFrame.TFrameStandDemoLoginFrameToolBarBackSpeedButtonClick(Sender: TObject); begin FInfo.HideAndClose; end; I expect it's because FInfo is not being created
  2. Dave Nottage

    How to create IOS app using full iphone screen

    I think you mean info.plist.TemplateiOS.xml
  3. You'd need to have PAServer on your MacBook accessible from the VM. Since the VM is outside of your work environment, you would probably need to set up port forwarding on your router, so that it can forward to PAServer.
  4. Dave Nottage

    TestFlight problems

    It's because of this issue: https://quality.embarcadero.com/browse/RSP-40302 Workaround steps from the report: Locate the matching App Store provisioning profile on the Mac Copy the provisioning profile to the project folder, and rename it embedded.provisionprofile Add embedded.provisionprofile to the Deployment for macOS, with a Remote Path value of: Contents\ Deploy Now the app should be able to be submitted to TestFlight
  5. Dave Nottage

    D11.2 Generated APK

    Yes, it's possible to run apps on Android 10 using Delphi 11.2
  6. Dave Nottage

    Can't Find SDK

    I have the same setup as you and it works OK. On the Mac, can you open a Terminal window, execute this command: /usr/bin/xcodebuild -version -sdk If it succeeds, the results can be fairly lengthy, but you should see things like: MacOSX13.0.sdk in it
  7. Anyone here successfully deployed a macOS App Store application? I've followed the instructions here: http://docwiki.embarcadero.com/RADStudio/Rio/en/Completing_the_Provisioning_Page ..have a correct provisioning profile on my Mac, and have set CFBundleIdentifier to the correct value, however Delphi complains: [Error Error] Missing provisioning information. Mobile Provisioning Profile has not been specified for the "AppStore" platform configuration. Any ideas as to what I should check?
  8. Dave Nottage

    Deploying macOS apps with App Store configuration

    Yes, by having the correct provisioning profile for App Store that matches the CFBundleIdentifier value in the Version Info page of the Project Options, and by specifying the correct certificate information in the Provisioning page of the Project Options.
  9. It's possible that the app is installed for another user, in which case the form of adb uninstall will need to be: adb uninstall 'some.package.name' Where 'some.package.name' is the package identifier, e.g. com.embarcadero.FMXClock. This form of the command will uninstall for all users
  10. Yes. If the app does not appear in the icons then it may not have uninstalled properly. See the steps here: https://stackoverflow.com/a/32702041/3164070
  11. What's the actual error message(s)?
  12. I assume you've followed the steps as outlined in this video?
  13. The actual error message may help, however I recall seeing problems elsewhere with Redmi and Android 12
  14. Your AndroidManifest.template.xml file is out of date. Delete the file, then rebuild the app, which will recreate the file. If that does not fix the problem, see here:
  15. Dave Nottage

    Android app bundle with RAD Studio 10.2

    Not "out of the box" - it might be possible using a whole bunch of command line commands, however if you're serious about having something on Google Play, you're far better off upgrading. You could start with Delphi 10.4 Community Edition, depending on what you earn.
  16. I get this error when the setup launches FPDelphi after installation:
  17. Dave Nottage

    Unable To Install Android Apk Under Developer Mode Via USB

    Uninstalling the original app would have had the same effect. If you find you need to add that attribute, please refer to:
  18. Dave Nottage

    Unable To Install Android Apk Under Developer Mode Via USB

    If you haven't made any changes to the AndroidManifest.template.xml file in the project, just delete it, and rebuild. If you did make any changes, you'll need to reapply them
  19. Dave Nottage

    Unable To Install Android Apk Under Developer Mode Via USB

    This may be of help: https://stackoverflow.com/a/48524656/3164070
  20. Dave Nottage

    delphi camera focus

    This is a forum for solving problems for other developers. Your answer does not solve the question that was asked. Posting wrong answers only serves to confuse developers that might come across them
  21. Dave Nottage

    delphi camera focus

    Yet another wrong answer. This code only compares what the current mode currently is, with auto (which is not one of the continuous modes) - it does not compensate for what modes are supported
  22. Dave Nottage

    delphi camera focus

    Some do not support it, for example the Samsung S4 apparently does not.
  23. Dave Nottage

    delphi camera focus

    Most front cameras support fixed (TFocusMode.Locked) only. One way (likely the easiest) to resolve this would be to use a patched FMX.Media.Android unit. Copy the unit to the project folder and change this routine: procedure TAndroidVideoCaptureDevice.SetFocusMode(const AFocusMode: TFocusMode); var Params: JCamera_Parameters; // Patch code vars: LFocusModes: JList; LFocusMode: JString; I: Integer; LIsSupported: Boolean; begin Params := Camera.getParameters; if Params = nil then Exit; // Patch code BEGIN LIsSupported := False; LFocusModes := Params.getSupportedFocusModes; for I := 0 to LFocusModes.size - 1 do begin LFocusMode := TJString.Wrap(LFocusModes.get(I)); if ((AFocusMode = TFocusMode.AutoFocus) and LFocusMode.equals(TJCamera_Parameters.JavaClass.FOCUS_MODE_AUTO)) or ((AFocusMode = TFocusMode.Locked) and LFocusMode.equals(TJCamera_Parameters.JavaClass.FOCUS_MODE_FIXED)) or ((AFocusMode = TFocusMode.ContinuousAutoFocus) and LFocusMode.equals(TJCamera_Parameters.JavaClass.FOCUS_MODE_CONTINUOUS_PICTURE)) then begin LIsSupported := True; Break; end; end; if not LIsSupported then Exit; // Patch code END FFocusMode.Value := AFocusMode; UpdateFocusModeParameter(Params); Camera.setParameters(Params); SetAutoFocus; end; This means that if the mode is not supported, it doesn't try and change it, so it will remain either the default, or the last supported mode it was set to.
  24. Dave Nottage

    ChatGPT Example

    Because the URL is probably invalid. It does not appear to be documented anywhere. Because, as the error says, the request is bad. As I said: This should work as long as there's no characters that need escaping in the question variable: rest.PostData := '{"model": "text-davinci-003", "prompt": "' + question + '", "temperature": 0, "max_tokens": 64}';
  25. Dave Nottage

    ChatGPT Example

    Why did you choose not to include those in your post? Do the quotes here really need to be escaped? Is that URL documented somewhere? I'm unable to find it
×