Forum > Android

jOpenDialog crashes in Android 10

(1/6) > >>

neuro:
The sample project “AppOpenFileDialogDemo1”
works in Android 4.3 (32-bit, device: Samsung Galaxy S3),
however fails to work in Android 10 (64-bit, device: Samsung Galaxy S9).
In sample project both buttons “Get File List” and “jOpenDialog1.Show()” crash the app when running in Android 10.
The following code also crashes in Android 10:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---listFile:= Self.GetFileList(Self.GetEnvironmentDirectoryPath(dirDownloads));
How to fix this bug of jOpenDialog?

jmpessoa:

Maybe you need handle file permissions....

(Please,  see jCameraDemo or others..... how to handle file permissions....)

neuro:
“AppCameraDemo” also fails to work in Android 10.
The app writes “'Success! ['+manifestPermission+'] Permission grant!!!”,
however when the button “Take Photo!” is pressed, the app crashes.
Just try it yourself in Android 10.

jmpessoa:
Ok... but you can get from "AppCameraDemo" the code to handle file permission...

neuro:
File permissions are invoked and granted successfully,
however file permissions do not help – the app crashes in aarch64 Android 10.
Do you have aarch64 Android 10 device for testing “AppOpenFileDialogDemo1” and "AppCameraDemo"?
On which device you have done the testing?

Navigation

[0] Message Index

[#] Next page

Go to full version