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

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

问题描述

当我在我的主/新手机上安装我的应用程序时,安装的大小约为 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:

三星 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天全站免登陆