Hi all,
My goal is to alter and recompile the Camera2 library here: https://github.com/AnywhereSoftware...src/anywheresoftware/b4a/objects/Camera2.java
1. I have successfully downloaded and are using the B4J_LibraryCompiler.
2. I have successfully downloaded B4J.
3. I have successfully compiled and tested the FirstLibrary example - however note that it does not have dependency libraries.
4. In order for me to recreate Camera2 from above, naturally, I have to satisfy the following lines in the code block below.
5. Can somebody advise exactly, what files I need to put in the /libs directory, and where do I get these files from - so I can compile this with B4J_LibraryCompiler?
Naturally without any libs, I get this error.
Starting step: Compiling Java code.
javac 1.8.0_251
C:\Users\ss\Desktop\SimpleLibraryCompiler\Camera3\src\b4x\example\Camera2.java:25: error: package android.app does not exist
import android.app.Activity;
^
1 error
Error.
My goal is to alter and recompile the Camera2 library here: https://github.com/AnywhereSoftware...src/anywheresoftware/b4a/objects/Camera2.java
1. I have successfully downloaded and are using the B4J_LibraryCompiler.
2. I have successfully downloaded B4J.
3. I have successfully compiled and tested the FirstLibrary example - however note that it does not have dependency libraries.
4. In order for me to recreate Camera2 from above, naturally, I have to satisfy the following lines in the code block below.
5. Can somebody advise exactly, what files I need to put in the /libs directory, and where do I get these files from - so I can compile this with B4J_LibraryCompiler?
Naturally without any libs, I get this error.
Starting step: Compiling Java code.
javac 1.8.0_251
C:\Users\ss\Desktop\SimpleLibraryCompiler\Camera3\src\b4x\example\Camera2.java:25: error: package android.app does not exist
import android.app.Activity;
^
1 error
Error.
Dependencies - what do I put in libs?:
package anywheresoftware.b4a.objects;
import java.io.Closeable;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Context;
import android.graphics.ImageFormat;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.SurfaceTexture;
import android.hardware.camera3.CameraAccessException;
import android.hardware.camera3.CameraCaptureSession;
import android.hardware.camera3.CameraCharacteristics;
import android.hardware.camera3.CameraDevice;
import android.hardware.camera3.CameraManager;
import android.hardware.camera3.CaptureRequest;
import android.hardware.camera3.CameraCaptureSession.CaptureCallback;
import android.hardware.camera3.CameraDevice.StateCallback;
import android.hardware.camera3.params.StreamConfigurationMap;
import android.media.Image;
import android.media.ImageReader;
import android.media.MediaCodec;
import android.media.MediaRecorder;
import android.util.Size;
import android.view.Surface;
import android.view.TextureView;
import anywheresoftware.b4a.AbsObjectWrapper;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.Events;
import anywheresoftware.b4a.BA.Hide;
import anywheresoftware.b4a.BA.Permissions;
import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.BA.Version;
import anywheresoftware.b4a.keywords.Common;
import anywheresoftware.b4a.objects.collections.List;