开发者

avoid package dependency

开发者 https://www.devze.com 2022-12-29 14:09 出处:网络
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 packa

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

精彩评论

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