Jump to content

MikeMon

Members
  • Content Count

    82
  • Joined

  • Last visited

  • Days Won

    1

MikeMon last won the day on April 3

MikeMon had the most liked content!

Community Reputation

9 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. MikeMon

    Andoid TLabels Have Lines on the Letters

    On all devices. Most of the times.
  2. Hi I'm using Delphi 10.3.3. I have a problem with TLabels on Android. There are horizontal or vertical lines on some letters in the TLabel. As you can see on the attached image, the "d", "y" and "A" of the label "Cloudy Apple Juice" have lines on them. So do the "h", "O", "u", "c" and "e" of the label "Fresh Orange Juice". I'm using Java JDK version 1.8.0_261. I don't know if this has anything to do with it, but lately I had to uninstall the JDK (of which I don't remember what the version was) and reinstall it (version 1.80._261). Has anyone encountered this before? And what is the default version installed by Delphi 10.3.3.
  3. Hi I'm using Delphi 10.3.3. I have a problem with TLabels on Android. There are horizontal or vertical lines on some letters in the TLabel. As you can see on the attached image, the "d", "y" and "A" of the label "Cloudy Apple Juice" have lines on them. So do the "h", "O", "u", "c" and "e" of the label "Fresh Orange Juice". I'm using Java JDK version 1.8.0_261. I don't know if this has anything to do with it, but lately I had to uninstall the JDK (of which I don't remember what the version was) and reinstall it (version 1.80._261). Has anyone encountered this before?
  4. MikeMon

    ZXing Delphi for 10.4

    After some testing, I found out the following: The advancedTestApp is crashing on Android and not compiling on iOS using Delphi 10.4. The reason is that the FMX.Media.Android.pas and FMX.Media.AVFoundation.pas (and maybe the FastUtils.pas) provided by ZXing Delphi are not compatible with Delphi 10.4. AdvancedTestApp works just fine with the original files coming with Delphi 10.4. But unfortunately, by using the originals, the app is VERY slow both on iOS and Android. Any third party camera controls recommended for Firemonkey (Android and iOS) except winsoft?
  5. MikeMon

    ZXing Delphi for 10.4

    Camera is true and the AccessCameraPermissionRequestResult IS in the main thread. The error on 10.3.3 is on Android ONLY.
  6. MikeMon

    ZXing Delphi for 10.4

    1.) Thank you for your valuable help. I will check the iOS code above. Just FYI, the Android version is not working, either. When running the advancedTestApp, though it IS asking for permission and I'm choosing yes, the minute I'm using the "Scan off/on" button, the app is freezing. 2.) In addition to the above, I'm getting the following error on some Android devices and using Delphi 10.3.3, Assertion failure (FastUtils.pas, line 172), which is Assert((ASrcHeight and 3) = 0); Any ideas?
  7. MikeMon

    ZXing Delphi for 10.4

    Hi. I'm using the code provided in the uMain.pas unit of the advancedTestApp project. This is some of the code for the camera permission: // Optional rationale display routine to display permission requirement rationale to the user procedure TFormMain.DisplayRationale(Sender: TObject; const APermissions: TArray<string>; const APostRationaleProc: TProc); begin // Show an explanation to the user *asynchronously* - don't block this thread waiting for the user's response! // After the user sees the explanation, invoke the post-rationale routine to request the permissions TDialogService.Showmessage('The app needs to access the camera in order to work', procedure(const AResult: TModalResult) begin APostRationaleProc end) end; procedure TFormMain.AccessCameraPermissionRequestResult(Sender: TObject; const APermissions: TArray<string>; const AGrantResults: TArray<TPermissionStatus>); begin // 1 permission involved: CAMERA if (Length(AGrantResults) = 1) and (AGrantResults[0] = TPermissionStatus.Granted) then { Fill the resolutions. } begin CreateCamera(); end else Showmessage('Cannot access the camera because the required permission has not been granted') end; procedure TFormMain.FormActivate(Sender: TObject); begin {$IFDEF ANDROID} FPermissionCamera := JStringToString(TJManifest_permission.JavaClass.CAMERA); {$ENDIF} PermissionsService.RequestPermissions([FPermissionCamera], AccessCameraPermissionRequestResult, DisplayRationale); end; procedure TFormMain.StartCapture; begin FBuffer.Clear(TAlphaColors.White); FActive := True; LabelFPS.Text := 'Starting capture...'; PermissionsService.RequestPermissions([FPermissionCamera], ActivateCameraPermissionRequestResult, DisplayRationale); StartStopWatch(); lblScanning.Text := 'Scanning on'; FaLblScanning.Enabled := True; end; procedure TFormMain.ActivateCameraPermissionRequestResult(Sender: TObject; const APermissions: TArray<string>; const AGrantResults: TArray<TPermissionStatus>); begin // 1 permission involved: CAMERA if (Length(AGrantResults) = 1) and (AGrantResults[0] = TPermissionStatus.Granted) then begin { Turn on the Camera } CreateCamera(); FCamera.Active := True; end else Showmessage('Cannot start the camera because the required permission has not been granted') end; procedure TFormMain.CreateCamera(); begin if (FCamera <> nil) then exit; FCamera := TCameraComponent.Create(self); FCamera.Quality := TVideoCaptureQuality.MediumQuality; FCamera.FocusMode := TFocusMode.AutoFocus; FCamera.OnSampleBufferReady := CameraComponent1SampleBufferReady; end;
  8. MikeMon

    ZXing Delphi for 10.4

    It's not even asking the first time. Unfortunately.
  9. MikeMon

    ZXing Delphi for 10.4

    Hi. Thank you for your answer. The code working on Delphi 10.3.3 is crashing on Delphi 10.4. Btw, if the user hasn't given permission to access the camera yet, he/she will be asked to give one. That works quite fine on Delphi 10.3.3.
  10. MikeMon

    ZXing Delphi for 10.4

    Unfortunately, the ZXing is not working on Delphi 10.4. On iOS, the camera isn't working. On Android, the app is crashing with a floating point error.
  11. MikeMon

    StoryBoard launch screen - Delphi 10.4

    Hi @vfbb. Option 4 yes. Option 3 isn't working. The default Delphi launch screen images are added no matter what.
  12. MikeMon

    StoryBoard launch screen - Delphi 10.4

    Hi Guyz I'm having an issue making the storyboard work with an existing app (I haven't tried with new apps yet). I've followed these steps but I keep on getting a blank screen: 1.) I deleted the info.plist.TemplateiOS.xml from my project directory. 2.) Added the launch images in the project options 3.) I edited the LaunchScreen.storyboard and Assets files in LaunchScreen.TemplateiOS (actually only the Contents.json file in the Assets\LaunchScreenImage.imageset folder) as needed by replacing the default FM launch icons with mine. 4.) Made sure that my launch screen images to be deployed are in the "Project | Deployment". 5.) Deleted the app on the device (as @vfbb suggested above) 6.) Powered down the device (as @vfbb suggested above) 7.) Powered up the device (as @vfbb suggested above) 8.) Installed the app (as @vfbb suggested above) Any ideas
  13. MikeMon

    ZXing Delphi for 10.4

    Hi @vfbb Thank you for your information. Will look into it.
  14. MikeMon

    ZXing Delphi for 10.4

    Hi Does anyone know if ZXing Delphi is compatible with Delphi 10.4? or is there a version for Delphi 10.4?
  15. Hi @Dave Nottage After some playing around, I found out what the problem was. The "Authorization" header should not be encoded. Now, everything works fine by using REST. FYI, the pre-complied RESTDebugger.exe that comes with Delphi 10.3.3 doesn't have the "Do Not Encode" checkbox when adding parameters. I had to recompile its project and it was there.
×