Too large APK due to multiple densities and screens sizes?

浪尽此生 提交于 2019-12-23 17:16:38

问题


Google suggests to create for each image 4 different versions - one for each density (ldpi, mdpi, hdpi, xhdpi). Sometimes you might even want to create others, based on the screen size (small, normal, large, xlarge).

This causes a weird situation where most of the app's images will never be used by the app, right?

How come Google doesn't create multiple APKs on their website, to target the best APK to the end user's device, so that 100% of the resources will be targeted on the device's specs? Or there is already such a thing?


回答1:


Yes there is a support for multiple APK. Please refer here.

To address your need precisly you can certain filters in your manifest file i.e. <supports-screens> or <compatible-screens>



来源:https://stackoverflow.com/questions/11184167/too-large-apk-due-to-multiple-densities-and-screens-sizes

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