应用安装大小在不同设备类型上相同 [英] App install size the same on different device types

查看:93
本文介绍了应用安装大小在不同设备类型上相同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在主/新手机上安装应用程序时,安装大小约为18.5MB 当我将应用程序安装在旧的Samsung Galaxy Ace(Mk1)上时,由于某种原因,它的安装尺寸几乎相同,如您在此处看到的那样:

When I install my app on my main/new phone, the installed size is around 18.5MB and when I install my app on an old Samsung Galaxy Ace (Mk1), for some reason, it installs with pretty much the same size, as you see here:

它可以在我的主手机上完美运行,但是很显然,旧版Galaxy Ace确实为此苦苦挣扎.

It runs perfectly on my main phone, but obviously, the old Galaxy Ace really struggles with it.

现在,我从Play商店下载了一个随机游戏,有了这个游戏,您可以在此处查看结果:

Now, I download a random game from the Play Store and with that one you can see the results here:

更好的是,与功能更强的手机相比,功能更弱的手机占用的空间更少.

Much better, it takes up less space on the less capable phone than it does on the more capable phone.

但是,我的问题是,我可以在哪里开始尝试弄清为什么我的应用程序表现出这种期望的行为?

However, my question is, where can I start to try to figure out why my app doesn't exhibit this desired behaviour?

有关我的项目的信息

我在项目中提供了4套图形,它们是:

I have provided 4 sets of Graphics within my project and they are:

图形

  • XHDPI:总计3.73MB
  • HDPI:总计2.87MB
  • MDPI:总计1.33MB
  • LDPI:总计1.03MB

声音

  • OGG声音文件:202KB
  • MP3音乐配乐:5.6MB

(未签名和已签名)APK文件约为16.02MB

The (Unsigned and signed) APK file is about 16.02MB

此外,APK中还有一个classes.dex文件,大小约为3.5MB.

Apart from that there is a classes.dex file within the APK which is about 3.5MB.

在Eclipse中,我链接了BaseGameUtils和Google-play-service-lib jar文件.

In Eclipse, I link BaseGameUtils and Google-play-service-lib jar files.

我知道我的游戏比下载的其他游戏更耗资源-但这不是这个问题的重点.我需要确保在性能较差的手机上安装的应用程序的尺寸要小于更好"的手机,但是如您所见,我的手机完全相同.

I know that my game is slightly more resource hungry than the other game I downloaded - but that isn't the point of this question. I need to make sure that the size of the installed app is smaller on lesser capable phones than it is 'better' ones but as you can see, mine is exactly the same.

任何帮助将不胜感激.

修改

其他信息(如果有帮助的话):

Additional information if it helps:

Samsung Galaxy Ace正在运行Android 2.3.4 Gingerbread

The Samsung Galaxy Ace is running Android 2.3.4 Gingerbread

另一部手机正在运行Android 4.4.2 Kit Kat

The other phone is running Android 4.4.2 Kit Kat

推荐答案

答案就是图片..您看到android应用可以指定应该安装应用的位置,无论是内部还是外部-您都可以在自己的位置进行操作android清单文件

the answer is the picture.. you see android apps can specify locations where apps are supposed to be installed, whether internal or external- you can do that in your android manifest file

android:installLocation="auto"

从设置屏幕快照中查看您的应用程序,但您尚未在清单中指定该元素,因此"move_to_sdCard按钮"处于非活动状态. Y 我们的应用安装在内存中

Looking at your app you from the settings screenshot you have not specified that element in your manifest hence the "move_to_sdCard button" is inactive. Your apps installs in internal memory

进入另一个应用程序,查看屏幕快照,您将看到"move_to_phone按钮"处于活动状态,因为它们指定了该功能,因此由于设备上没有足够的空间,它会自动将应用程序安装在内部-外部内存或严格来说是外部存储器.但是设置该功能后,并非所有资源或文件都安装在内部-外部存储器上,因此它们是共享的,因此在执行过程中会减小大小,从而减少输出.

coming to the other app, looking at the screenshot you will see that the "move_to_phone button" is active because they specified that feature hence since there wasn't enough space on your device it automatically installed your app on the internal-external memory or strictly external memory.. But when that feature is set not all resources or files are installed on the internal-external memory they are shared, so the size gets trimmed in the process hence that ouput.

谈到应用程序的滞后性,您需要非常深入地研究代码.较新的api还包含旧的api所没有的功能,因此您需要重新评估选择的代码种类.

Speaking about the lag of your app, you need to digg into your codes pretty much. also newer apis contain functions the old ones do not have, hence you need to re-evaluate the kinds of codes you choose..

希望我很清楚

这篇关于应用安装大小在不同设备类型上相同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆