开发者

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.

开发者_如何学JAVA

the 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:

  1. to create a third one package (named C), and move to it shared code.
  2. Make dependency A => C, and B => C.

Now A and B packages are independent, but they depends on a common package C.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜