I have apps A
and B
. I want one to use some methods A
in B
. Is that possible?
I tried adding project A
to the build path of B. Compiler is OK with that, but I get runtime NoClassDefFoundError
(for the first used class from project A
).
I'm making this with Eclipse.
Edit: The reason I need to to that is because my project B is a test of project A. It was not possible to test the usual way, because between other things I have to test AsynchTasks, and that doesn't work with JUnit. So I thought making normal Android project B containing custom test. But since that also doesn't seem to work, I came back to my original test project and implemented there my custom / not JUnit tests. In an ugly way, but it works.