简体   繁体   English

模拟三星 Galaxy Tab

[英]Emulate Samsung Galaxy Tab

I would like to test my application with new Samsung Galaxy Tab tablet.我想用新的三星 Galaxy Tab 平板电脑测试我的应用程序。

What parameter should I set in emulator to emulate this device?我应该在模拟器中设置什么参数来模拟这个设备?

  • What resolution and density should I set?我应该设置什么分辨率和密度?
  • How can I indicate that this is large screen device?我怎样才能表明这是大屏幕设备?
  • What hardware does this tablet support?这款平板电脑支持哪些硬件?
  • What is max heap size?什么是最大堆大小?
  • Which Android version?哪个安卓版本?

UPDATED:更新:
Matt provided a great link onhow to add emulators for all Samsung devices . Matt 提供了一个关于如何为所有三星设备添加模拟器的很好的链接。

OLD:旧:
To get the official Samsung Galaxy Tab emulator do the following:要获得官方的三星 Galaxy Tab 模拟器,请执行以下操作:

  1. Open the Android SDK and AVD Manager打开 Android SDK 和 AVD 管理器
  2. Click on Available packages点击可用包
  3. Expand the Third party Add-ons.展开第三方加载项。 There you will see Samsung Electronics add-ons.在那里您将看到三星电子附加组件。
  4. Once the add-on is installed create a new emulator.安装附加组件后,创建一个新的模拟器。 Under Target you will see the new Samsung Tab settings, select that.在目标下,您将看到新的三星标签设置,选择它。

That's it!就是这样!

If you want step-by-step instructions with images, direct your browser to Samsung developer website. 如果您需要有关图像的分步说明,请将浏览器指向Samsung开发人员网站。 All you need is just to follow the instructions on this page 您只需按照此页面上的说明操作即可

You can't.你不能。

"The Samsung Emulator has the same functionality as the Generic Android Emulator, but varies with the size and appearance of the device." “三星模拟器具有与通用 Android 模拟器相同的功能,但因设备的大小和外观而异。”

The problem with Samsung is that they don't use a generic android image, they have custom apps and they react in custom ways and do weird things you wouldn't expect and when you're trying to fix bugs that's what you want.三星的问题在于他们不使用通用的 android 图像,他们有自定义应用程序,他们以自定义方式做出反应,并做你意想不到的奇怪事情,当你试图修复你想要的错误时。 You cannot get that.你不能得到那个。 You need access to a physical device to get the right ecosystem to hunt down the bugs and map out which intents work and how they work on that device.您需要访问物理设备才能获得正确的生态系统来寻找错误并确定哪些意图在该设备上起作用以及它们如何工作。 And sometimes there are errors that only occur on Samsung devices because some of the core rendering code is different as well.有时会出现仅在三星设备上发生的错误,因为某些核心渲染代码也不同。 I've had errors where all Android devices except Samsung would work flawlessly but the scheme itself could not work on Samsung and had to be scrapped.我遇到过错误,除了三星之外的所有 Android 设备都可以完美运行,但该方案本身无法在三星上运行,因此不得不报废。 The only thing Samsung allows is skinning and that won't properly note the changes in the rendering pipeline or how the samsung ecosystem deals with intents.三星唯一允许的就是换肤,它不会正确记录渲染管道的变化或三星生态系统如何处理意图。

You can make the device look similar, that's worthless.你可以让设备看起来相似,那毫无价值。 I don't care what it looks like, I care whether this bug still affects that particular model or whether the tweak to the intents I made rectified the issue and I can't learn that from a pretty picture as the border to the same device.我不在乎它是什么样子,我在乎这个错误是否仍然影响那个特定的模型,或者我对意图的调整是否纠正了这个问题,我无法从漂亮的图片中了解到这一点作为同一设备的边框.

I found under website.我在网站下找到的。

http://developer.samsung.com/android/tools-sdks/Samsung-GALAXY-Tab-Emulator http://developer.samsung.com/android/tools-sdks/Samsung-GALAXY-Tab-Emulator

Extract zip file to add-ons under android sdk path.将 zip 文件解压缩到 android sdk 路径下的附加组件。 then launch Android SDK Manager.然后启动 Android SDK 管理器。 under "extras" folder check "Android + Google APIs for GALAXY Tab, API 8, revision 1" item and install package.在“extras”文件夹下,选中“Android + Google APIs for GALAXY Tab, API 8, revision 1”项并安装包。

That's all.仅此而已。

What resolution and density should I set?我应该设置什么分辨率和密度?

  • 1024x600 1024x600

How can I indicate that this is large screen device?我怎样才能表明这是大屏幕设备?

  • you can't really (not that i know of)你真的不能(不是我知道的)

What hardware does this tablet support?这款平板电脑支持哪些硬件?

What is max heap size?什么是最大堆大小?

  • not sure不确定

Which Android version?哪个安卓版本?

  • 2.2 2.2

Hope that helps - check the spec page for all unanswered questions.希望有所帮助 - 检查所有未回答的问题的规范页面。

If you are developing on Netbeans, you will not get the Third-Party add-ons.如果您在 Netbeans 上进行开发,您将不​​会获得第三方附加组件。 You can download the Skins directly from Samsung here: http://developer.samsung.com/android/tools-sdks您可以在此处直接从三星下载皮肤: http : //developer.samsung.com/android/tools-sdks

After download, unzip to ...\\Android\\android-sdk\\add-ons[name of device]下载后解压到...\\Android\\android-sdk\\add-ons[设备名称]

Restart the Android SDK Manager, and the new device should be there under Extras.重新启动 Android SDK Manager,新设备应该在 Extras 下。

It would be better to add the download site directly to the SDK...if anyone knows it, please post it.最好把下载地址直接加到sdk里。。。如果有知道的请发一下。

Scott斯科特

Go to this link ... https://github.com/bsodmike/android-avd-profiles-2016/blob/master/Samsung%20Galaxy%20Tab%20A%2010.1%20(2016).xml转到此链接... https://github.com/bsodmike/android-avd-profiles-2016/blob/master/Samsung%20Galaxy%20Tab%20A%2010.1%20(2016).xml

Save as xml file in your computer.在您的计算机中另存为 xml 文件。 Go on Android Studio => Tools => AVD Manager => + Create Virtual Device => Import Hardware Profiles ... choose the saved file and the device will be available on the tablet's section.继续 Android Studio => Tools => AVD Manager => + Create Virtual Device => Import Hardware Profiles ...选择保存的文件,设备将在平板电脑部分可用。

Happy Android developments guys!!!快乐的 Android 开发伙计们!!!

I don't know if it is help.不知道有没有帮助Create an AVD for a tablet-type device: Set the target to "Android 3.0" and the skin to "WXGA" (the default skin).为平板设备创建 AVD:将目标设置为“Android 3.0”,将皮肤设置为“WXGA”(默认皮肤)。 You can check this site.你可以检查这个网站。 http://developer.android.com/guide/practices/optimizing-for-3.0.html http://developer.android.com/guide/practices/optimizing-for-3.0.html

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

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