简体   繁体   中英

IPC mechanism in android jar library via AIDL file

is there any way to compile android AIDL files into android jar libraries? i want that my jar library that lives into an android app, can directly send data to another android application via IPC. is this possible? i do this in two regular android apps and they connect each other via IPC but now i want to an android library connects to another app.

when we user an AIDL file in android project, after building of project the compiler creates a java class in gen folder and that class uses to IPC mechanism. but android libraries doesn't have any gen folder! is this possible to use IPC inside an android jar library at all?

不要将普通项目设为jar,请将其设为android库项目: http : //developer.android.com/tools/projects/index.html#LibraryProjects

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM