Android - Testing app on Galaxy S8 or LG G6

北慕城南 提交于 2019-12-06 21:25:57

问题


I was reading the following article about updating an app to take full advantage of devices like the Galaxy S8 or LG G6

https://android-developers.googleblog.com/2017/03/update-your-app-to-take-advantage-of.html

And what I want to do is to test the app in an emulator of these screens and test it before and after adding the line of code the article suggests:

<meta-data android:name="android.max_aspect" android:value="2.1" />

I have tried creating an AVD inside of Android Studio with a screen size of 5.8 and a resolution of 2960x1440 (Galaxy S8 screen resolution), and my app runs fine without any black bars, even though it's a portrait-only app, and due to that it'd be expected to show black bars, so I think I'm not configuring the emulator appropiately.

Any ideas?

Thank you.


回答1:


I have been looking for similar thing to test my app and found that Samsung provides online test lab like firebase.

You can go http://developer.samsung.com/rtlLanding.do and check it out. They give 5 minutes free if you don't have developer account.

As per samsung you can get following

  • 20 credits are provided to each Samsung Developer user every day.
  • With 1 credit, users can use the Remote Test Lab service for 15 minutes.
  • Minimum reservation: 30 minutes (2 credits)
  • Maximum reservation: 10 hours a day (40 credits)

More details : http://developer.samsung.com/remotetestlab/rtlAboutRTL.action




回答2:


You can change your targetSdkVersion to 24,The default is already available。



来源:https://stackoverflow.com/questions/43442589/android-testing-app-on-galaxy-s8-or-lg-g6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!