Taifun
May 9, 2025, 12:14pm
214
It uses api2
From the sources
import android.hardware.camera2.CameraAccessException;
import android.hardware.camera2.CameraCaptureSession;
import android.hardware.camera2.CameraCharacteristics;
import android.hardware.camera2.CameraDevice;
import android.hardware.camera2.CameraManager;
import android.hardware.camera2.CaptureRequest;
import android.hardware.camera2.CaptureResult;
import android.hardware.camera2.TotalCaptureResult
Taifun
So it can't use CameraX because it only works for Android Studio Jetpack Compose?
Taifun
May 9, 2025, 5:51pm
216
What are you talking about?
You can use any extension for your App Inventor project, also this one
Taifun
No, I don't mean by that. I was asking when AI2 builds your app and converts it into an .apk. APKs should be Kotlin or Java. So AI2 converts your visual blocks into Java or Kotlin files and packages them into an APK?
Taifun
May 10, 2025, 1:12pm
218
no, see this answer from @ewpatton
No. App Inventor creates Scheme code, which is used both in the interpreted mode (companion) and is cross-compiled to JVM bytecode by a library called Kawa during compilation. Once the byte code is generated, it is run through the typical Android toolchain to convert it into the dex format for Android, and that is packaged up into an APK.
If you are so inclined, App Inventor is open source and the code responsible for compiling projects is viewable here .
Taifun
lladam
July 18, 2025, 2:43pm
220
How do you get file path of ProCamera's take picture method?
hi all.
I am using ProCamera extension that has TakePicture method:
does TakePicture method save the photo to file? what is the file path?
if TakePicture does not save photo, how to save it manually?
Thanks.
TIMAI2
July 18, 2025, 2:56pm
221
You set the path yourself, with this block:
1 Like
lladam
July 18, 2025, 2:57pm
222
Thanks.
does ProCamera1.Output save photo as file or base64 strings?
called takePicture and set output:
then call ProCamera1.SavedPhoto:
set image1.picture to join: call getASD + temp.jpg ; nothing shown.
basically, nothing doing under ProCamera1.SavedPhoto, seems not called.
lladam
July 21, 2025, 3:47am
223
Hi all.
I am using ProCameraBase64, it has: TakePreviewPicture, how to save this TakePreviewPicture into ASD as /tempxz.jpg?
I used ProCameraBase641.Output, but can't search out the tempxz, can't use it like copy file got:
Thanks.
TIMAI2
July 21, 2025, 6:51am
224
You are saving to ASD, then trying to copy it from your Assets, it is not there!
1 Like
do we have an AfterTakePreviewPicture (or like so) event in this extension?
TIMAI2
July 21, 2025, 7:45am
226
There is a Saved photo event, but it doesn't return anything.
lladam
July 21, 2025, 2:22pm
227
Thanks.
Is that mean it saved to getASD +..., why I can't search out with the name of tempxz?
TIMAI2
July 21, 2025, 2:40pm
228
This block will return a list of all the files in your ASD files directory. You can then search that list for your file.
Adjust the directory name accordingly if you want to return the files in another directory in your ASD.
If you are meaning to save your image to the files directory of the ASD, then this is the path:
1 Like
TIMAI2
Split this topic
July 21, 2025, 10:57pm
229
4 posts were split to a new topic: Upload Image File to Server