黑莓playbook开发环境搭建

由于黑莓说开发app会送平板,而且注册费由200$降成了0,所以稍微尝试了一下playbook开发,写一下跑个helloworld的过程:
需要先准备这些玩意:
Adobe air sdk //air的原始sdk,目前playbook的程序都是用air开发的,这样的好处是把跨产品环境的问题问题交给air去解决,不像android那样因为机型多样而需要开发者关注过多的东西
BlackBerryPlayBookSimulator //黑莓的模拟器rom,安装后是一个iso
vmware player//vmware虚拟机,加载上面的iso来虚拟出playbook环境
flashbuilder4//开发air只能用这个了,需要注意的是60天试用期,另外安装完成之后可能会出错无法运行,据说要换一个用户才行。
BlackBerry Tablet OS SDK for Adobe AIR//相当于在air上加了一些黑莓自己的接口,这个安装的时候要选择上面的flashbuilder4和air的sdk目录,他会把插件什么的帮你搞定。

上面的东西在黑莓和adobe的开发社区都有下载。

全都装好后,可以运行vmware player跑起来一个playbook的环境,ui还可以的样子,但是一个app也没有。

然后可以开flashbuilder写helloworld了。由于是用as写,貌似没办法使用可视化设计器,照着官方例子先弄个helloworld来吧。需要注意的是,在模拟器上先要设置一个密码,再开启开发模式,然后在about里找到模拟器的ip,运行程序的时候需要在运行配置里填写这个ip和密码才可以在模拟器上运行,相当于远程部署的意思。另外模拟器上的时间要手工设置成和电脑上一样,否则程序跑不起来。

官方文档里似乎只有一个helloworld和一个rssreader的示例,整个sdk里也只有一个helloworld的sample,对开发者实在不友好。总体感觉该有的东西基本没有,尤其是开发文档,是否真的要深入这个开发平台,目前感觉还是要慎重。

截几个图:

4 Comments.

Leave a comment
  1. 关注这个,能一起研究吗?

  2. 很好的文章,给力

  3. 兔年快乐.O(∩_∩)O~关注中。。。

  4. What you wrote was actually very reasonable. However, what about this? suppose you were to write a killer post title? I mean, I don’t want to tell you how to run your website, but what if you added a headline to maybe get folk’s attention? I mean 暺?playbook撘€?憓撱?| beralee????is a little vanilla. You could glance at Yahoo’s front page and note how they write article titles to grab people to open the links. You might add a related video or a related pic or two to grab people interested about everything’ve written. In my opinion, it might make your website a little livelier.

Leave a Reply

( Ctrl + Enter )