简体   繁体   English

Android应用可以在5.1上快速运行,但在以前的版本中运行速度很慢

[英]Android app runs fast on 5.1 but in previous version is very slow

I have an app which runs fine on Android 5.1 but it takes ages to run on old android version, even though I configured the minimum target to 4.0.1 (API 15). 我有一个可以在Android 5.1上正常运行的应用程序,但是即使我将最低目标配置为4.0.1(API 15),也需要花一些时间才能在旧的android版本上运行。 The app is based on a mainactivity and switches among three fragments. 该应用程序基于mainactivity并在三个片段之间切换。 For the fragments, I use support libraries, so that it can run on old version of android. 对于片段,我使用支持库,以便它可以在旧版本的android上运行。 Why could I be doing wrong? 为什么我做错了? Some hint about having an for different android version using API 22? 关于使用API​​ 22的不同Android版本的一些提示?

If there isn't a problem in your code, check the old device ram and heap size also try selecting a good device for example galaxy nexus. 如果您的代码没有问题,请检查旧设备的内存和堆大小,然后尝试选择一个好的设备,例如银河系。

also some information for better performance for the emulator, here: Making the Android emulator run faster 还提供了一些信息,以提高模拟器的性能,此处: 使Android模拟器运行更快

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

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