Hello everyone
Here I present another error that occurs when changing the manifest file (TargetSdkVersion 33 to 34)
Testing with Android 14
In this example the message is sent if TargetSdkVersion = 33, but changing it to 34 shows the mentioned error
I attach a small program with the example
Here I present another error that occurs when changing the manifest file (TargetSdkVersion 33 to 34)
Testing with Android 14
Logs:
java.lang.SecurityException: b4a.example: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature(IActivityManager.java:6203)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1863)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1803)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1791)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:766)
at anywheresoftware.b4a.phone.PhoneEvents.Initialize(PhoneEvents.java:303)
at b4a.example.b4xmainpage._b4xpage_created(b4xmainpage.java:41)
at b4a.example.b4xmainpage.callSub(b4xmainpage.java:197)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1098)
at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1069)
at b4a.example.b4xpagesmanager._vvvvvvvvvvvv0(b4xpagesmanager.java:528)
at b4a.example.b4xpagesmanager._vvv3(b4xpagesmanager.java:865)
at b4a.example.b4xpagesmanager._v0(b4xpagesmanager.java:199)
at b4a.example.b4xpagesmanager._vv1(b4xpagesmanager.java:206)
at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:716)
at b4a.example.main._activity_create(main.java:366)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
at b4a.example.main.afterFirstLayout(main.java:105)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8755)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
In this example the message is sent if TargetSdkVersion = 33, but changing it to 34 shows the mentioned error
I attach a small program with the example