android - How to use in a library a resource provided by the app that use the library -
i developping android hce payment sdk , include manifest part related apdu service in sdk provided android library (aar) our clients.
<!-- service --> <service android:name="com.mypackage.myapduservice" android:exported="true" android:permission="android.permission.bind_nfc_service" > <intent-filter> <action android:name="android.nfc.cardemulation.action.host_apdu_service" /> <category android:name="android.intent.category.default" /> </intent-filter> <meta-data android:name="android.nfc.cardemulation.host_apdu_service" android:resource="@xml/apduservice" /> </service> the problem apduservice.xml cannot defined in library because contains payment service description , banner should customized clients when build payment app on top of sdk. there way tell library manifest android.nfc.cardemulation.host_apdu_service resource not in library somewhere else (somewhere being provided later payment app developer) ? other solution whould include apduservice.xml in sdk have same externalisation issue apduservicebanner , description resources of file: need way tell these resources provided outside of library payment app developper.
thanks answers
Comments
Post a Comment