Jump to content

radekc

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

1 Neutral

Technical Information

  • Delphi-Version
    Delphi 11 Alexandria

Recent Profile Visitors

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

  1. I have same problem on RDP. Look like Flicker happens when CodeInsight show Done (maybe they need refressh window). CodeInsight is started every time a key is pressed. Disabling CodeInsigh (and Restart LSP) block flickering but I need LSP .
  2. radekc

    How to save 'zip' file to external SD card?

    IF you want use EXTERNAL_MANAGE_STORAGE and use same code as before (on Android 13 required, introduced in Android 11), your user must enable all access, you can invoke dialog with this code (working code based on Kastri library) class function TMainForm.NeedsAllFilesAccessPermission: Boolean; begin Result := TOSVersion.Check(11) and not TJEnvironment.JavaClass.isExternalStorageManager; end; class function TMainForm.ShowAllFilesAccessPermissionSettings: Boolean; var LIntent: JIntent; LUri: Jnet_Uri; LAction: JString; begin Result := False; if NeedsAllFilesAccessPermission then begin LUri := TJnet_Uri.JavaClass.fromParts(StringToJString('package'), TAndroidHelper.Context.getPackageName, nil); LAction := StringToJString('android.settings.MANAGE_APP_ALL_FILES_ACCESS_PERMISSION'); LIntent := TJIntent.JavaClass.init(LAction, LUri); TAndroidHelper.Context.startActivity(LIntent); Result := True; end; end;
  3. radekc

    displaying TAndroidNativeView descendant

    Solved, for future: use https://github.com/Zeus64/alcinoe/blob/master/source/ALFmxEdit.pas as example, refactor for your JView.
  4. Hi, I wrapped 3rd party JView java component with class based on TAndroidNativeView, but now I am lost. Everything is created, dynamic library from 3rd party is loaded (debugger is show it), I can call methods, but how I show it on form or on layout? I see created parent Layout in TAndroidNativeView, but how I parent this layout with FMX? I looked in FMX in Android MapView, but I don't know.
  5. Solved: if you use d8 for dexing, use Java 8 (as expected), but don't use --no-desugaring param.
  6. Hi, I am try use 3rd party library (https://developers.arcgis.com/android/latest/java/sample-code/display-a-map/) and after some battle and fixed resources I get run-time error java.lang.BootstrapMethodError: Exception from call site #2 bootstrap method every solution on web recommended for Android studio compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } but what about Delphi? General info https://developer.android.com/studio/write/java8-support
×