从App World下载的应用程序是否共享项目?
我的公司创建了多个 BlackBerry 应用程序,它们都使用一些共享的 Java 项目。最近,我们一直在追查一个错误,我们推测该错误可能是由使用其中一个项目的旧版本的应用程序引起的。我的问题是,从 App World 单独下载的两个应用程序是否共享它们共有的项目,或者每个应用程序都使用自己的项目副本吗?
例如,假设我有两个应用程序,Foo 和 Bar,每个应用程序都使用项目 Baz。我首先下载:
- Foo 1.0
- 使用 Baz 1.0
然后我下载:
- Bar 2.0
- 使用 Baz 2.0
当我启动 Bar 时,它会使用 Baz 1.0 版还是 2.0 版吗?
My company creates multiple BlackBerry apps that all use a few shared Java projects. Recently we've been chasing a bug that we theorize may be caused by an app using an old version of one of the projects. My question is, do two apps downloaded separately from App World share the projects they have in common, or does each app use its own copy of the project?
For example, say I have two apps, Foo and Bar, which each use the project Baz. I first download:
- Foo 1.0
- with Baz 1.0
Then I download:
- Bar 2.0
- with Baz 2.0
Will Bar use version 1.0 or 2.0 of Baz when I launch it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常,最后安装的应用程序的库将覆盖现有的库,这通常不是您想要的。这是 BlackBerry 平台长期存在的问题,如 此处。
我和其他人所做的是:
本质上,您正在消除共享库的概念,这是不幸的,但至少您的应用程序的工作独立于任何其他更改。
抱歉,我想还有第三种选择:将库打包为单独的下载。但这有其自身的问题。
Normally, the last-installed application's library will overwrite the existing library, which is often not what you want. This has been a longstanding problem with the BlackBerry platform, as seen here.
What I and others do is either:
Essentially you're doing away with the concept of a shared library, which is unfortuante, but at least your app works independently of any other changes.
Sorry, I guess there's a third option: package the library as a separate download. But that has its own issues.