问题描述
在安卓(建成后),我们发现在斌
文件夹扩展的文件 .apk文件
。
In Android (after building), we find in the bin
folder a file of extension .apk
.
在我的黑莓手机项目中,我找不到类似的 APK
,我想知道什么是扩展黑莓Java应用程序?
In my BlackBerry project, I cannot find something like the apk
, and I want to know what is the extension for BlackBerry Java apps?
推荐答案
有关黑莓,有建立一个应用程序的方法不止一种。如果你正在使用的常用工具之一来构建(如黑莓插件为Eclipse或旧RIM JDE),他们一般会同时生成。
For BlackBerry, there's more than one way to build an app. If you're using one of the common tools to build (e.g. BlackBerry Plug-In for Eclipse, or the Legacy RIM JDE), they will generally build both.
A .COD 文件基本上是RIM的版本的.zip文件,包含整个应用程序。通常情况下,.cod文件,解压的时候,里面包含了很多更小的.cod文件。这可能是最接近的Android上的.apk文件。
A .cod file is basically RIM's version of a .zip file, that contains the entire app. Usually, the .cod file, when unpacked, contains many more smaller .cod files inside it. This is probably the closest thing to the .apk file for Android.
另外,你可以通过空中下载(OTA),通过使用Java应用程序描述符(的.jad)文件,该文件是引用的主要二进制程序包中的小文本文件来安装应用程序。下面是一个JAD文件的例子:
Alternately, you can install apps Over-The-Air (OTA), by using a Java application descriptor (.jad) file, which is a small text file that references the main binary app bundle. Here's an example of a jad file:
MIDlet-Name: HelloBB
MIDlet-Version: 1.0.0
MIDlet-Vendor: BlackBerry Developer
MIDlet-Jar-URL: HelloBB.jar
MIDlet-Jar-Size: 26037
MicroEdition-Profile: MIDP-2.0
MicroEdition-Configuration: CLDC-1.1
MIDlet-1: ,res/img/icon.png,
RIM-MIDlet-Flags-1: 0
Manifest-Version: 1.0
RIM-COD-URL: HelloBB.cod
RIM-COD-Size: 13304
RIM-COD-Creation-Time: 1340831331
RIM-COD-Module-Name: HelloBB
RIM-COD-Module-Dependencies: net_rim_cldc,net_rim_locationapi,net_rim_bb_lbs_api_2
RIM-COD-SHA1: bf 00 66 e0 30 5d 03 8c 8a b6 00 36 cf c9 76 98 40 d2 71 d9
当你用的Eclipse插件,我相信默认是产生所有这些文件中的成果目录中的主项目目录里面下,在子目录下,依赖于什么样的应用程序的您正在构建,并且操作系统版本你的目标。例如:
When you build with the Eclipse plug-in, I believe the default is to produce all these files under the deliverables directory inside your main project directory, with subdirectories under that depending on what kind of app you're building, and which OS version you're targeting. For example:
$ cd deliverables/Standard/5.0.0/
$ ls
HelloBB.cod HelloBB.csl HelloBB.cso HelloBB.debug HelloBB.jad HelloBB.jar HelloBB.rapc
这篇关于我在哪里可以找到类似" .apk文件"黑莓开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!