Android Question How to add manifest action to an Activity created inside an external library?

Abílio Magalhães

Member
Licensed User
Longtime User
Hi,

I'm trying to add this manifest:
<code>

AddActivityText(com.abilio.FirstLib, <intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" android:resource="@xml/device_filter" />)

</code>


But B4A tells an error, because "com.abilio.FirstLib" is not an Activity.

In fact, "com.abilio.FirstLib" is an Activity created inside a .jar library and it needs to have access to USB.

Can you send me your comments?

Kinds Regards,
Abilio
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…