Jump to content

radekc

Members
  • Content Count

    6
  • Joined

  • Last visited

Everything posted by radekc

  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. 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.
  4. radekc

    displaying TAndroidNativeView descendant

    Solved, for future: use https://github.com/Zeus64/alcinoe/blob/master/source/ALFmxEdit.pas as example, refactor for your JView.
  5. 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
  6. Solved: if you use d8 for dexing, use Java 8 (as expected), but don't use --no-desugaring param.
×