![webos内核](https://i-blog.csdnimg.cn/blog_migrate/f6b7d699585dabc704c850244b47e386.png)
webos内核
With all the new mobile operating systems how do you to know which one to pick? Like Android, Palm has a webOS emulator to allow developers to test applications without physical hardware. Here is how you can test drive webOS on your computer for free.
使用所有新的移动操作系统,您如何知道该选择哪一个? 与Android一样,Palm具有一个webOS模拟器,使开发人员无需物理硬件即可测试应用程序。 这是您可以免费在计算机上测试驱动器webOS的方法。
Getting Started
入门
The Palm webOS SDK/PDK requires that you have Java installed for the developer tools as well as VirtualBox 3.2.6 or higher.
Palm webOS SDK / PDK要求您为开发人员工具安装Java,以及VirtualBox 3.2.6或更高版本。
The first step is to install Java Runtime Environment (JRE). You may already have JRE installed and you can verify if it is installed by opening a command prompt and typing in the command java -version. You should get a output just like the one below. If you get this output you already have Java installed and you can skip to installing VirtualBox.
第一步是安装Java Runtime Environment(JRE)。 您可能已经安装了JRE,可以通过打开命令提示符并键入命令java -version来验证是否已安装。 您应该获得与以下输出类似的输出。 如果获得此输出,则您已经安装了Java,可以跳到安装VirtualBox。
![](https://i-blog.csdnimg.cn/blog_migrate/d37faed7e609550acfa263c8322badf2.png)
If you get an error that Java is not a recognized command then you need to install the Java Runtime Environment. If after you install JRE you still get an error, install the Java Development Kit and then try again (see links below).
如果收到错误消息,表明Java不是可识别的命令,则需要安装Java Runtime Environment。 如果在安装JRE之后仍然出现错误,请安装Java Development Kit,然后重试(请参阅下面的链接)。
![](https://i-blog.csdnimg.cn/blog_migrate/b8717eda4432257db54b98666fee30a4.png)
Install Java like you normally would from Oracle’s website.
像通常从Oracle网站上那样安装Java。
![](https://i-blog.csdnimg.cn/blog_migrate/28cc7db728cc0a979b1efc575fc31468.png)
Make sure you avoid any crapware they bundle with the installation like the worthless Yahoo Toolbar.
确保避免与安装包捆绑在一起的任何垃圾软件,如毫无价值的Yahoo Toolbar。
![sshot20100712194659 sshot20100712194659](https://i-blog.csdnimg.cn/blog_migrate/3b1adfd1812066c4ebc65d6aa50f541d.png)
Install VirtualBox
安装VirtualBox
If you don’t already have VirtualBox, and you should, you can download it from Oracle’s website (link below). Pick the host OS that you are using and download the installer.
如果尚未安装VirtualBox,则应该从Oracle网站下载(以下链接)。 选择您正在使用的主机操作系统并下载安装程序。
![](https://i-blog.csdnimg.cn/blog_migrate/40c441f868cf0baff72971961d356267.png)
Install VirtualBox and start the program so it can create the default .virtualbox folders.
安装VirtualBox并启动程序,以便它可以创建默认的.virtualbox文件夹。
![](https://i-blog.csdnimg.cn/blog_migrate/877dbc8834f5e8457c923251bea4a002.png)
Install Palm SDK
安装Palm SDK
Now we can install the actual Palm SDK tools which will install the webOS emulator for us. Go to Palm’s developer site (link below) and download the latest SDK.
现在,我们可以安装实际的Palm SDK工具,该工具将为我们安装webOS模拟器。 转到Palm的开发人员站点(下面的链接)并下载最新的SDK。
![](https://i-blog.csdnimg.cn/blog_migrate/ed8a54497b6dd3d49ecb9a3a7e4705c9.png)
Install the software by clicking next a few times to accept the default settings.
单击下一步几次以安装软件,以接受默认设置。
![](https://i-blog.csdnimg.cn/blog_migrate/d6febb2b87dffa6191d02e42fb501f08.png)
After the install, go to your start menu (Applications folder in OS X and menu in Linux) and launch the Palm Emulator.
安装后,转到开始菜单(在OS X中为Applications文件夹,在Linux中为菜单),然后启动Palm Emulator。
![sshot-2010-07-23-[22-15-38] sshot-2010-07-23-[22-15-38]](https://i-blog.csdnimg.cn/blog_migrate/ec7ef8672a41e420ae5ecb3e36678ad6.png)
You will get a pop-up asking which screen resolution you would like to use.
您将弹出一个对话框,询问您要使用哪种屏幕分辨率。
Note: I would suggest using the highest resolution possible since your computer resolution will still easily be able to fit the resolution.
注意:我建议您使用尽可能高的分辨率,因为您的计算机分辨率仍将很容易适应该分辨率。
![](https://i-blog.csdnimg.cn/blog_migrate/020b3bfdd4734b1f234d86358520b006.png)
The command will create a virtual machine inside VirtualBox first.
该命令将首先在VirtualBox中创建一个虚拟机。
![](https://i-blog.csdnimg.cn/blog_migrate/1c442117748398ae28d24742b8abb70c.png)
VirtualBox will automatically start the virtual machine once it has been created.
创建虚拟机后,VirtualBox将自动启动虚拟机。
![](https://i-blog.csdnimg.cn/blog_migrate/f9b1ac674cb74fde8d292093c428b694.png)
Once the emulator finishes booting you will be able to play with the emulator just like the real phone.
模拟器完成启动后,您将可以像真实电话一样使用模拟器进行游戏。
![](https://i-blog.csdnimg.cn/blog_migrate/b525cd34c017de64f948fc4f29f9c433.png)
You can click on the “screen” and launch apps just like the real phone.
您可以单击“屏幕”,然后像真实电话一样启动应用程序。
![](https://i-blog.csdnimg.cn/blog_migrate/1bad22ca06dfb8b8c1199135ae94cc0f.png)
Load up a website and then hit the Home button on your keyboard to launch a second application. Swipe left and right to change applications and swipe the card up to close the application.
加载一个网站,然后按键盘上的“主页”按钮以启动第二个应用程序。 左右滑动以更改应用程序,然后向上滑动存储卡以关闭应用程序。
Note: While using the emulator the Esc key will simulate the “back” swipe and the tab key will open the menu. The left and right arrows will simulate long swipes on the gesture area and End will simulate pushing the center “button” in the gesture area.
注意:使用模拟器时,Esc键将模拟“向后”滑动,而Tab键将打开菜单。 左右箭头将模拟手势区域上的长滑动,而End将模拟按下手势区域中的中心“按钮”。
![](https://i-blog.csdnimg.cn/blog_migrate/11b107056353f4ecfb18c546c7fe40c0.png)
Some features may not work, such as screen rotation, multitouch, and GPS but the main OS features will at least let you try it out.
某些功能可能不起作用,例如屏幕旋转,多点触控和GPS,但主要的OS功能至少会让您尝试一下。
If you want to get a feel for how webOS works with your email you can launch the mail application and set up your accounts.
如果您想了解webOS如何处理电子邮件,可以启动邮件应用程序并设置帐户。
![](https://i-blog.csdnimg.cn/blog_migrate/9db7cb1e6debfbc8c05efea7d893f15d.png)
Launching the Emulator
启动模拟器
If you want to open the virtual machine later you can open VirtualBox and just launch the VM directly from the menu.
如果以后要打开虚拟机,则可以打开VirtualBox并直接从菜单中启动VM。
![](https://i-blog.csdnimg.cn/blog_migrate/8b5900ffbb9006a3db9cb478200e13cc.png)
Highlight the VM and click on settings to rename the VM to something that makes more sense to you. I simply named mine “webOS”.
突出显示VM,然后单击设置以将VM重命名为对您更有意义的名称。 我只是将其命名为“ webOS”。
![](https://i-blog.csdnimg.cn/blog_migrate/262d7ec26e80d7c6fd4be437968e00e5.png)
You can also make a shortcut to launch the VM directly. Right click on your desktop and create a new shortcut. In the location of item field browse to your VBoxManage executable. In most cases it will be in your main Program Files under the Oracle\VirtualBox folder. Then type in startvm webOS (or whatever you named your VM).
您还可以创建快捷方式以直接启动VM。 右键单击桌面,然后创建一个新的快捷方式。 在项目字段的位置中浏览到您的VBoxManage可执行文件。 在大多数情况下,它将位于Oracle \ VirtualBox文件夹下的主程序文件中。 然后输入startvm webOS (或任何您命名的VM)。
![](https://i-blog.csdnimg.cn/blog_migrate/31211b921b58276e78dd0d92fb2747bd.png)
Conclusion
结论
If you are in the market for a new Smartphone, the hardware and carrier is only half the choice. You want to make sure you know what you are getting into when you pick a mobile OS and virtual machines are a great way to get to know your software before deciding with your wallet. Playing with the VM should give you a good chance to know what the OS is like and what you can do with it. Not only is the SDK completely free but so are developer accounts and application submissions to the catalog.
如果您在市场上购买新的智能手机,则硬件和运营商只是选择的一半。 您想确保在选择移动操作系统时知道要做什么,而虚拟机是在决定使用钱包之前了解软件的好方法。 与VM一起玩应该给您一个很好的机会,让您知道OS是什么样的,以及可以使用它做什么。 SDK不仅完全免费,而且开发人员帐户和向目录提交的应用程序也完全免费。
If you want to test out Android then check out our article on how to test drive Android on your PC.
如果您想测试Android,请查看有关如何在PC上测试Android驱动器的文章。
Links
链接
Java Runtime Environment (JRE) and Java Development Kit (JDK) can be downloaded from here.
可以从此处下载Java Runtime Environment(JRE)和Java Development Kit(JDK)。
Palm SDK download
Palm SDK下载
翻译自: https://www.howtogeek.com/howto/22681/test-drive-webos-without-buying-a-phone/
webos内核