简体   繁体   English

为Android开发phonegap应用

[英]developing phonegap apps for android

I've developed a few phonegap apps for ios and now I want to create android versions for one of them. 我为ios开发了一些phonegap应用程序,现在我想为其中一个创建android版本。 The thing with android is, of course, that it is used on so many different devices. android的问题当然在于,它在许多不同的设备上使用。 I understand that the safest way is to test the app on every single device that I'm targeting, but is there a smart and easy solution to test for as many devices as possible without buying 20 new phones? 我知道最安全的方法是在我定位的每台设备上测试该应用程序,但是是否有一个智能便捷的解决方案可以在不购买20部新手机的情况下测试尽可能多的设备? Is the emulator, for example, reliable? 例如,仿真器是否可靠?

Any hints and tips from you android phonegap guys and girls out there much appreciated! 来自您的Android phonegap男女生的任何提示和技巧都非常感谢!

You can try Genymotion. 您可以尝试Genymotion。 It has a wide range of devices and they are reliable as far as I experienced, you can get it here; 它具有广泛的设备,据我所知它们是可靠的,您可以在这里找到它。

http://www.genymotion.com/ http://www.genymotion.com/

Also you can try virtual devices from Eclipse. 您也可以尝试从Eclipse进行虚拟设备。 Plus if you try a few real devices, it would be enough I think. 另外,如果您尝试一些实际的设备,我认为就足够了。

You are right, there are hundreds of devices no one tests them all. 没错,有数百种设备,没有人可以对它们进行全部测试。

The best idea is to test on a few physical devices of varying API level and screen size. 最好的想法是在一些API级别和屏幕大小不同的物理设备上进行测试。 That is of course not always possible so best idea is to use the built in emulators. 当然,这并非总是可能的,因此最好的主意是使用内置的仿真器。

Android SDK comes with an Android SDK manager, this enabled you to download system images for every API version. Android SDK随附有一个Android SDK管理器,这使您能够下载每个API版本的系统映像。

You can then use Android Device Manager to create new emulators, running different screen sizes and images. 然后,您可以使用Android设备管理器来创建新的模拟器,并运行不同的屏幕尺寸和图像。

This should enable you to test quite comprehensively. 这应该使您能够进行全面的测试。

Good luck. 祝好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM