In my java apk I use this code to launch the camera:
cameraIntent = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
cameraIntent.putExtra("android.intent.extra.quickCapture", true);
//File photoFile = createImageFile();
//Uri photoURI = FileProvider.getUriForFile(getApplicationContext(),
"com.lo.test.provider", photoFile);
//cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
startActivityForResult(cameraIntent, REQUEST_CAPTURE_IMAGE);
In the onActivityResult method, for many different devices, I can get the return flow and work with the photos I take. But with a few devices I get a white screen with message log like this:
2023-10-22 01:45:02.056 13137-13137 System.out com.lo.test I Fin de openCameraIntent
2023-10-22 01:45:02.056 13137-13137 Second Activity com.lo.test V Fin de openCameraIntent
2023-10-22 01:45:12.449 13137-13150 o.test com.lo.test W Reducing the number of considered missed Gc histogram windows from 111 to 100
---------------------------- PROCESS ENDED (13137) for package com.lo.test ----------------------------
---------------------------- PROCESS STARTED (17417) for package com.lo.test ----------------------------
2023-10-22 01:45:21.991 17417-17417 ActivityThread com.lo.test I Relaunch all activities: onCoreSettingsChange
2023-10-22 01:45:22.040 17417-17417 ziparchive com.lo.test W Unable to open '/data/app/~~w5RdZZDsNzvS9Unhg0IXiw==/com.lo.test-hPTUSB_ZDsOQzoOcVmvj9w==/base.dm': No such file or directory
2023-10-22 01:45:22.040 17417-17417 ziparchive com.lo.test W Unable to open '/data/app/~~w5RdZZDsNzvS9Unhg0IXiw==/com.lo.test-hPTUSB_ZDsOQzoOcVmvj9w==/base.dm': No such file or directory
At this point the queries to database all of them return like no data in database(the database has data)
And after that the apk crash.
EDIT: The log file https://easyupload.io/2wpxve
Any idea?