Android Question Manifest editor - SetServiceAttribute - external module

moster67

Expert
Licensed User
Longtime User
If I set the following in the Manifest manually and then make the AndroidManifest file "read-only", the service seems to be running fine:
<service android:name="com.kct.bluetooth_demo.KCTBluetoothService"/>

I'd like to avoid keeping the AndroidManifest file "read-only" while developing so I have tried the following in the manifest editor:
SetServiceAttribute(com.kct.bluetooth_demo, android:name, "KCTBluetoothService")
but I get an error as follows:
Error parsing manifest script:
Module com.kct.bluetooth_demo not found (Manifest Editor)

"com.kct.bluetooth_demo" is part of my wrapper.

As a test, SetApplicationAttribute works fine with "com.kct.bluetooth_demo" and apparently, the module is found:
SetApplicationAttribute(android:name, "com.kct.bluetooth_demo.KCTApp")

I guess it is something stupid but I cannot get it to work in the manifest editor. Any help/ideas?
 

moster67

Expert
Licensed User
Longtime User
Sei grande! Thank you, Jordi. ?
It created indeed the necessary entry in the manifest.
Now I learned something new again. Much appreciated.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…