• 316
    0

    Display images in Firemonkey TListBox Introduce how to display in OnList event of TListBoxItem and how to display by placing TImage component on TListBoxItem. How to display in the OnPaint event of TListBoxItem Place a TButton component and a TListBox component on the form. Describe the OnClick event of the TButton component. procedure TForm2.Button1Click(Sender: TObject); ...
  • 336
    0

    Introduce how to use Firemonkey application to copy text to clipboard. To use the clipboard, use the IFMXClipboardService interface. Check whether the platform on which the application is running can use IFMXClipboardService. var   ClipboardService: IFMXClipboardService; if TPlatformServices.Current.SupportsPlatformService(   IFMXClipboardService, IInterface(ClipboardService)) then begin end; if IFMXClipboardService is available, the variable ClipboardService contains an instance of ...
  • 273
    0

    Delphi Android microphone and  camera operation TakePhotoFromCameraAction1: TTakePhotoFromCameraAction; // Get pictures through the phone camera TakePhotoFromLibraryAction1: TTakePhotoFromLibraryAction; //Get existing pictures on the phone ShowShareSheetAction1: TShowShareSheetAction;//Share pictures with other programs (Bitmap.Assign();)   Get microphone settings FMX.Media FMicrophone: TAudioCaptureDevice; FMicrophone := TCaptureDeviceManager.Current.DefaultAudioCaptureDevice; FMicrophone.FileName set path FMicrophone.State = TCaptureDeviceState.Capturing device state FMicrophone.StartCapture; //Start recording FMicrophone.StopCapture; // end recording ...
  • 257
    0

    Delphi Android internal system related operations (Cell phone information, vibration, clipboard, keyboard, phone, dialing) //Get phone information function GetPhoneInfo(): string; Var   TelephonyManager: JTelephonyManager;   TelephonyServiceNative: JObject; begin   result := ”;   TelephonyServiceNative := SharedActivityContext.getSystemService     (TJContext.JavaClass.TELEPHONY_SERVICE);   if Assigned(TelephonyServiceNative) then     TelephonyManager := TJTelephonyManager.Wrap       ((TelephonyServiceNative as ILocalObject).GetObjectID);   ...
  • 376
    0

    You may want to know the battery level. On Android, the battery manager broadcasts intent information about the battery. To find out the battery level, get the battery level and battery level and calculate the percentage. The code is based on the Android developer training article “Monitoring battery power and charging status“. Sample code Put ...
  • 371
    0

    When the screen turns black, it is usually impossible to read the application that reads the barcode displayed on the terminal. In this case, a method of increasing the brightness of the application side device is performed. Use WindowManager.Layoutparams to control the brightness in Delphi. Sample code Place a button on the form Press the ...
  • 396
    0

    For example, when your computer is damaged by a game application, you want to produce a vibration effect. To use the Android vibrator in Delphi, use the Android Vibrator class. When using Android vibrator, you need to set permissions. Sample code Place two buttons on the form Press the button to vibrate for 500 milliseconds ...
  • 3047
    0

    UniGUI special objects
  • 2589
    0

    UniGUI special objects
  • 1402
    0

    Delphi Firemonkey calls functions asynchronously in the main thread (delayed calls)