对不同的黑莓手机一样的应用 [英] Same Application on Different Blackberry Handsets

查看:348
本文介绍了对不同的黑莓手机一样的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在黑莓开发新手,已经被困在一个非常复杂的事情。
我必须做出哪些应该支持所有O.S 6和7 0.S基于手机的应用程序。

I am a newbie in Blackberry Development and has got stuck on a very complex thing. I have to make an application which should be support all O.S 6 and 0.S 7 based mobile phones.

现在我有BB在OS 6和7个不同的手机不同的屏幕分辨率。

Now I have different screen resolutions for different handsets in BB OS 6 and 7.

现在如何管理我的背景图像,其按钮位置上的设备的所有尺寸为同步。

Now how can i manage my background images, and its button positions to be synced on all size of devices.

我已经创造了640×480的屏幕大小的图像,并根据它,我已经把一些按钮的x,y位置。现在,如果我对小480x360的屏幕尺寸上安装相同的应用程序如何我管理的X,Y位置和管理背景的大小根据设备的宽度和高度。

I have created an images for the screen size of 640x480 and according to it I have placed some button on x,y positions. now if i install the same app on a screen size of 480x360 how can i manage the x,y positions and manage the background size according to device width and height.

有人能帮忙吗?我是完整的新手。

Can anybody help? I am complete newbie.

推荐答案

使用preprocessor,<一个href=\"http://stackoverflow.com/questions/1383277/using-$p$pprocessor-directives-in-blackberry-jde-plugin-for-eclipse\">built-in到Eclipse JDE-插件或第三方preprocessor ​​并的黑莓蚂蚁工具

Use preprocessor, built-in to Eclipse JDE-plugin, or third-party preprocessor and BlackBerry Ant Tools

使用,里面preprocessor指令相同的源$ C ​​$ C文件编译为不同的RIM操作系统版本不同的应用程序。

Compile separate applications for different RIM OS versions using the same source code files with preprocessor directives inside.

在技术上与RIM SDK编译的应用程序6.0是与RIM OS 7.0设备兼容,但提供最好的用户体验,使单独RIM操作系统版本不同的应用程序。

Technically an application compiled with RIM SDK 6.0 is compatible with device with RIM OS 7.0, but to provide the best user experience make separate applications for separate RIM OS versions.

在preprocessing包括适合于构建一个特定的应用程序版本的图像文件。如果你需要支持多屏幕尺寸,然后添加最大可能的<一个href=\"http://stackoverflow.com/questions/7022256/blackberry-runtime-error-fridg-could-not-find-img-logo-png/7026039#7026039\">images到你的项目,然后缩放它们在向下运行。几乎缩减不会影响图像质量。

On preprocessing include those image files which are suitable for building a particular application version. If you need to support many screen sizes, then add the biggest possible images to your project and then scale them down at the runtime. Scaling down almost does not affect image quality.

当Ant构建过程中聘请 ALX任务收集有关独立的应用程序的所有信息版本到一个ALX文件。

Upon ant build process employ Alx task to collect all information about separate application versions into one alx file.

因此​​,您将有一个ALX文件(应用程序描述文件,它是一个XML文件),和一组里面cod文件夹。

As a result you will have one alx file (application descriptor file, it is an xml-file), and a set of folders with cod files inside.

在所有cod文件进行签名,你也可以做它在 Ant构建过程与cod文件的所有文件夹作为一个ZIP压缩文件分发此ALX文件。

When all cod files are signed, you can also do it upon ant build process distribute this alx file with all folders with cod files as one zip archive.

客户解压此存档,通过USB的计算机连接器,启动黑莓桌面管理器,选择这一个ALX文件。通过ALX任务生成指令将引导黑莓桌面管理器安装适合该设备的RIM OS版本的应用程序。

Customer unzips this archive, connects device via usb to the computer, launches BlackBerry Desktop Manager and selects this one alx file. Directives generated by alx task will guide BlackBerry Desktop Manager to install application suitable for the device RIM OS version.

如果你想以无线方式发布应用程序,然后使用 jadtool任务并做一个PHP页面读取浏览器的用户代理并重定向浏览器到<一个href=\"http://stackoverflow.com/questions/6676656/difference-between-otainstall-and-standardinstall-in-blackberry/6677754#6677754\">relevant JAD文件。

If you want to distribute your application wirelessly, then employ jadtool task and make a php page that reads browser user agent and redirects browser to a relevant jad file.

使用OTA(空中下载)方法用于分发应用程序之前,添加以下MIME类型的说明你的web服务器的的.htaccess 文件。

Before using OTA (over the air) method for distributing your application, add the following MIME-type instructions to the .htaccess file of your web-server.

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType application/vnd.rim.cod cod

这篇关于对不同的黑莓手机一样的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆