Fcoder
Fcoder

Reputation: 9226

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?

Upvotes: 0

Views: 1693

Answers (1)

pskink
pskink

Reputation: 24740

dont make common project as a jar, make it as an android library project: http://developer.android.com/tools/projects/index.html#LibraryProjects

Upvotes: 1

Related Questions