使用本机API或J2ME开发黑莓应用程序? [英] Develop Blackberry apps using native API or J2ME?

查看:129
本文介绍了使用本机API或J2ME开发黑莓应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们即将建立一个黑莓应用程序,但会喜欢上是否使用J2ME实现一些输入(基于MIDlet的)或黑莓本机(UIApplication的)。

We're about to build a Blackberry application but would love some input on whether to implement using J2ME (MIDlet based) or Blackberry native (UIApplication).

我了解一些权衡。如果我们想将应用到其他设备J2ME将更加灵活。 RIM公司为黑莓原生更好的支持。

I understand some of the tradeoffs. J2ME will be more flexible if we want to port the app to other devices. RIM has better support for Blackberry native.

我仍然缺乏信息的地方,虽然是在UI端。我们要建立一个具有良好的用户体验,看起来像其他应用BB用户习惯于一个应用程序,和一个。我们可以做到这一点,如果我们去J2ME路线?

The place I'm still lacking information, though, is on the UI side. We want to build an app that has a great user experience, and one that looks like other apps BB users are accustomed to. Can we do this if we go the J2ME route?

有关问题的有些主观,少技术性道歉。

Apologies for the somewhat subjective and less technical nature of the question.

推荐答案

我已经试过这两种方法 - 建立一个纯MIDP应用在黑莓和非黑莓平台上运行,并建立一个独立的应用程序黑莓(常采用的多相同的业务逻辑和网络code作为MIDP应用程序)。肯定要走的黑莓原生路线。

I've tried it both ways - building a pure MIDP app to run on BlackBerry and non-BLackBerry platforms and building a separate BlackBerry app (often using much of the same business-logic and networking code as the MIDP app). Definitely go the BlackBerry native route.

这是所有关于BB UI类。他们会给你的能力,(除其他事项外),以不同类型的菜单事件(轨迹球和菜单键)作出回应,回应BB特定的关键codeS,如果你有兴趣在风暴采取的优势方向传感器和触摸支持。再加上他们是一个更丰富的UI元素一起工作的。你可以建立一个不少(但不是全部),他们在纯MIDP做什么,但最终自定义如此之多,每一个平台,你会不会救到底什么。用BB UI和自定义启动节省了大量的时间和精力。

It's all about the BB UI classes. They'll give you the ability to (among other things) respond to the different type of menu events (trackball and menu key), respond to BB specific key codes, if you're interested in the Storm take advantage of the orientation sensor and touch support. Plus they're a much richer set of UI elements to work with. You can build up a lot (but not all) of what they do in pure MIDP, but end up customizing so much of it for each platform that you won't save anything in the end. Starting with the BB UI and customizing saves a lot of time and effort.

即使是在游戏应用程序,或使用时你自定义绘制所有组件,您必须将黑莓图形API更好地获得和得到更好的性能将黑莓本机应用程序的路线。 ,你还有更好的细节有关的输入事件。

Even in gaming applications, or for applications where you're custom drawing all your components, you have better access to the BlackBerry graphics APIs and get better performance going the BlackBerry native app route. And you still have better detail about input events.

最后,还有一些不错的生命周期的东西,你可以用黑莓机应用程序做的,就像推到背景中,或自动运行在系统启动时,你不能用的MIDlet,根据您的应用程序,它可能会感兴趣的事情。

Finally there are some nice lifecycle things you can do with BlackBerry native apps, like pushing to the background, or auto-running on system startup that you can't do with MIDlets, which may be of interest depending on your application.

想想也是市场 - 如果你在​​支持黑莓马上规划,然后也许其他MIDP平台的道路,它通常是一个更好的计划来执行您的初始平台上最好的,你可以。有可能不会有太大的原因移植到MIDP后,如果你没有在BlackBerry先取得成功。

Also think about market - if you're planning on supporting BlackBerry right away, and then maybe other MIDP platforms down the road, it's usually a better plan to execute the best you can on your initial platform. There probably won't be much of a reason to port to MIDP later if you don't succeed on BlackBerry first.

这篇关于使用本机API或J2ME开发黑莓应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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