![]() ![]() ![]() Use ProguardĮvery time we build a new project, we see the following piece of code in the app-level build. Use WebP file formatĪs we have seen in the image shared for the Android Analyser plugin above, one of the recommendations was to change the PNG file to a WebP file format. To learn more about Image Compression in Android, you can refer our MindOrks article on the same. Ensure that the Image Compression techniques are understood and implemented to reduce the size of the apk before releasing the app to the play store. But the biggest drawback here might be using a lot of images that can bloat up the size of the app. In most of the applications, Images are used to convey messages or improve the UX. If using PNG and JPEG files is something mandatory in your project, you can compress them using image quality tools like TinyPNG. Repetitive code also leads to increased file size thereby effecting the Apk size. Try reusing the code as much as possible instead of repetitive code. Object-Oriented Programming has solved a lot of problems in the programming world. ![]() For example, use only specific libraries of Google Play Services. Reduce libraries sizeĬheck if you can reduce the size when it comes to the usage of libraries. So this can actually help in removing the same thereby helping in reducing the size of the application. Lint actually helps in generating warnings or unused code inside the application. Using Vector Drawable is one of the best ways to reduce the size significantly. Hence, one of the main things that can be implemented to reduce apk size is to remove unused resources in the application.Īlso, it is advised to use scalable drawable objects(importing vector assets) instead of other image formats like PNG, JPEG, etc. It also provides APK analyzer to reduce your Android app size by inspecting the. Remove Unused ResourcesĪs we have already discussed the size of the apk has an impact on how fast the app loads, how much memory it uses, and how much memory power it consumes. It has also in-built emulator to test application on any virtual device. The recommendations can help us in reducing the app size in a much better way. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |