Android Question Manifest, Service and AAR lib question

MMORETTI964

Member
Licensed User
Longtime User
I'm trying to use an AAR lib inside B4A.
I've tried to make a wrapper in Eclipse (using AAR) or use JavaObject directly but the bad result is the same.

After a couple of hours, I've discovered (inside the log) this text:
Unable to start service Intent { cmp=b4a.example/eu.coges.btdatakeymodule.Wrapper.BluetoothLeService } U=0: not found

In the AAR manifest however the service is described under the <application> tag.
<service
android:name="eu.coges.btdatakeymodule.Wrapper.BluetoothLeService"
android:enabled="true" />

I've seen that the AAR Manifest.XML should be added by B4A, I have to add the service myself inside the manifest? How?
Or I've to point in another direction?

Thank you very much.
 
Last edited:

MMORETTI964

Member
Licensed User
Longtime User
Works like a charm!

Thank you Erel.
If I understood right all "application tags" of the manifest XML inside AAR should (if needed) should be replicated in the BA manifest (with his script language).
Other tag (like android permission) is merged with the app-B4A file.
+++
Another things very difficult is "logging" libraries because the log unfiltered has many many many rows (overall a lot of system and application "poops" the log with a lot of unuseful information). There are a way during the debug to filter the log only for my app? Or could be made in future?

Thanks.
Maurizio
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
There are a way during the debug to filter the log only for my app?
This is not the correct place to post this question. You can use BA.Log to log messages from your library.

Other tag (like android permission) is merged with the app-B4A file.
Permissions from AndroidManifest.xml are not added automatically. You need to add it manually or add it to the library with the @Permissions annotation.
 
Upvote 0
Top