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.

Sample code:
public static SCameraManager initializeScamera(Context context) {
mScamera = new SCamera();
try {
return mScamera.getSCameraManager();
}catch (Exception e){
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,

Samsung Developer Relations