The Samsung Camera API error on devices with Android 14

I have a problem with my application.

When I tried to run my application on Samsung devices with Android 14 I have a following problem:

java.lang.IllegalStateException: Call initialize() first.
at com.samsung.android.sdk.camera.SCamera.checkInitialized(SCamera.java:297)
at com.samsung.android.sdk.camera.SCamera.getSCameraManager(SCamera.java:201)

Sample code:
public static SCameraManager initializeScamera(Context context) {
mScamera = new SCamera();
try {
mScamera.initialize(context);
return mScamera.getSCameraManager();
}catch (Exception e){
e.printStackTrace();
}
return null;
}

I used the newest api Camera SDK v 1.3.2.

Could anyone found solution for this bug?

I checked that the Samsung camera API is DEPRECATED as of December 1, 2019.
Is there any way to still use PHASE_AF_MODE in THE aNDROID application?

I think you are supposed to use CameraX now but I’m not an Android developer so you should see if that is correct.

Usually when Samsung Deprecates an API it is because everything is included in Android.

Hope this helps,

Ron
Samsung Developer Relations