Hello
I will try to be very specific in relation to this issue. I have a service, svc_br_receiver, and in that service I use broadcast receiver lib. The lib has a method called registerReceiver. Under SDK 34 it fails with the following:
I have looked this up on the web and found the following; https://stackoverflow.com/questions...r-not-exported-should-be-specified-when-a-rec
I do not know if the lib is supported anymore https://www.b4x.com/android/help/broadcastreceiver.html
The intents I need to receive dont work when they are in the manifest (static) only in a service(dynamic). There are no background services, notifications etc, just intent receiving.
Suggestions ?
Regards
John.
I will try to be very specific in relation to this issue. I have a service, svc_br_receiver, and in that service I use broadcast receiver lib. The lib has a method called registerReceiver. Under SDK 34 it fails with the following:
B4X:
svc_br_receiver_service_create (java line: 300)
java.lang.SecurityException: com.islesystems.atlasbtn: 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:3087)
at android.os.Parcel.createException(Parcel.java:3071)
at android.os.Parcel.readException(Parcel.java:3054)
at android.os.Parcel.readException(Parcel.java:2996)
at android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature(IActivityManager.java:5684)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1868)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1804)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1792)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:765)
at com.rootsoft.broadcastreceiver.BroadCastReceiver.registerReceiver(BroadCastReceiver.java:52)
at com.islesystems.atlasbtn.svc_br_receiver._service_create(svc_br_receiver.java:300)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
at com.islesystems.atlasbtn.svc_br_receiver.onCreate(svc_br_receiver.java:56)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4915)
at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2447)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:368)
at android.app.ActivityThread.main(ActivityThread.java:8826)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.am.ActivityManagerService.registerReceiverWithFeature(ActivityManagerService.java:14900)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2570)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3005)
at android.os.Binder.execTransactInternal(Binder.java:1387)
at android.os.Binder.execTransact(Binder.java:1299)
I have looked this up on the web and found the following; https://stackoverflow.com/questions...r-not-exported-should-be-specified-when-a-rec
I do not know if the lib is supported anymore https://www.b4x.com/android/help/broadcastreceiver.html
The intents I need to receive dont work when they are in the manifest (static) only in a service(dynamic). There are no background services, notifications etc, just intent receiving.
Suggestions ?
Regards
John.