avoid package dependency
i have couple of appz(diffrent apk's), and i run activities from one app to another. my target is to avoid package depndency between them, in case in the future i want to upgrade or compile one package without the absence of another.
开发者_如何学JAVAthe problem is that: without setting the dependecy between eachother(eclipse: buildpath->projects), i cant fire the intents, i`am getting error:"Unable to start activity component..."
any idea how can i solve this issue?
thanks, ray.
Let A depends on B: A => B
.
I suggest:
- to create a third one package (named
C
), and move to it shared code. - Make dependency
A => C,
andB => C
.
Now A
and B
packages are independent, but they depends on a common package C
.
精彩评论