简体   繁体   English

将应用程序移植到android

[英]Porting application to android

I am about to port my application on android. 我即将在android上移植我的应用程序。 Since I am new to this system I would like to ask for tips on android phones for testing my app. 由于我是该系统的新手,因此我想在Android手机上询问有关测试我的应用程序的提示。 The number of phones is pretty huge so it is pretty hard to choose the right one. 手机的数量非常庞大,因此很难选择合适的手机。 Also I wasn't able to find some kind of official chart of system distribution. 我也找不到某种官方的系统分布图。

I know that it really depends on hardware and how much my app demands from hardware. 我知道这确实取决于硬件以及我的应用对硬件的需求量。 It is pretty basic app and I am able to run this app at 30fps on iPhone 4S. 这是非常基本的应用程序,我能够在iPhone 4S上以30fps的速度运行此应用程序。

I did some research and people are talking about the latest phones but I think that it is not necessary to buy the newest one. 我做了一些研究,人们在谈论最新的手机,但是我认为没有必要购买最新的手机。 Also, is there option to buy for example tablet and emulate android devices on this tablet? 此外,是否可以选择购买平板电脑并在此平板电脑上模拟android设备?

So my goal is to focus on devices people have the most. 因此,我的目标是专注于人们拥有最多的设备。

Thank you for any advice. 感谢您的任何建议。

You can run many of your tests on the Android emulator. 您可以在Android模拟器上运行许多测试。 Using it together with the DDMS will allow you to simulate several real life situations (arriving call, arriving sms, change position...) 将其与DDMS结合使用将使您能够模拟几种现实生活情况(到达呼叫,到达短信,更改位置...)


You can use BlueStacks which is an emulator put on steroids. 您可以使用BlueStacks ,它是类固醇的仿真器。


TestFairy and UTest are awsome communities for crowd testing were you can test ~any device you can think of. TestFairyUTest是进行人群测试的绝佳社区,您可以测试任何可以想到的设备。


Still, it is a good idea, especially if you plan your run at Android to be long, to maintain a small stash of real devices. 不过,这是一个好主意,特别是如果您计划长时间在Android上运行,以保持少量的真实设备。

Which devices should you buy? 您应该购买哪些设备? Which OS version should they run? 他们应该运行哪个OS版本?

The Android dashboard is the official source for answering some of these questions. Android 仪表板是回答其中一些问题的官方资料。 It gives an up to date statistics of worldwide distribution by OS version, svreen size/density and more: 它提供了按操作系统版本,svreen大小/密度等的全球分布的最新统计信息:


操作系统分配

OS Distribution 操作系统分配




屏幕类型分布

Screen type Distribution 屏幕类型分布



So, true to July 2014 you would want devices running Jelly Bean, Gingerbread & ICS and you screens of types normal/hdpi, normal/xxhdpi and normal/xhdpi. 因此,直到2014年7月,您都希望设备运行Jelly Bean,Gingerbread&ICS,并且屏幕类型为normal / hdpi,normal / xxhdpi和normal / xhdpi。 This list can grow but even this will provide you with a good sample of the Android device ecosystem. 这个列表可以增加,但是即使这样也会为您提供Android设备生态系统的一个很好的示例。

As for manufacturers, the picture is clear: Samsung is the winner. 对于制造商来说,情况很明显:三星是赢家。 Exact number & distributions are harder to find here, but a Google search might help. 确切的数字和分布在这里很难找到,但是Google搜索可能会有所帮助。

If my memory serves me write some 65% of all Android devices are Samsungs made with Galaxy S3 taking 15% (of ENTIRE Android market) and Galaxy S4 = 10%. 如果我记笔记的话,那么所有Android设备中约有65%是由Galaxy S3制成的三星(占整个Android市场的15%),而Galaxy S4 = 10%。


Device screen features: 设备屏幕功能:

  • Galaxy S2 is normal/hdpi Galaxy S2是正常/ hdpi
  • Galaxy S3 is normal/xhdpi Galaxy S3是正常/ xhdpi
  • Galaxy S4/S5 is normal/xxhdpi Galaxy S4 / S5是正常/ xxhdpi

These will probably be your best bet. 这些可能是您最好的选择。 You will do smartly to install on them 2-3 different OS versions, at minimum Jelly Bean and ICS. 您将很聪明地在它们上安装2-3个不同的OS版本,至少要安装Jelly Bean和ICS。

The Android Development Tools in Eclipse and Android Studio both have emulators that can be used to emulate different devices, including tablets and phones. Eclipse和Android Studio中的Android开发工具都具有可用于模拟不同设备(包括平板电脑和手机)的模拟器。 You don't need to buy anything to be able to test your app on an emulator. 您无需购买任何东西就可以在模拟器上测试您的应用程序。 The emulators run on your computer. 仿真器在您的计算机上运行。

For more information 欲获得更多信息

As for what devices most people have, while I don't have official statistics, looking at my own applications' downloads, most people are using either a Nexus 4 or Nexus 5. 至于大多数人拥有的设备,虽然我没有官方统计数据,但查看我自己的应用程序下载后,大多数人使用的是Nexus 4或Nexus 5。

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

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