How to wrap third party library as android service? -


so have library drives external devices on bluetooth or wifi. library written party , cant change it.

there multiple android applications controlling device. separate apks , separate processes. act of connecting/reconnecting cant done when user switches apps. thinking wrap library in service runs in own process , client applications can bind that.

this presents few interesting problems. data objects in library not parcelable or serializable. there not many support generics , wrapping them time consuming.

there few dozen objects represent interfaces controlling specific aspects of device each 2-12 methods each. maybe wrap each of these using aidl.

i want make using service similar using library directly possible.

i feel wrapping third party library aidl service not uncommon android developers. 1 has faced before have suggestions?


Comments