Astronaut loading animation Circular loading bar

Try : Insurtech, Application Development

AgriTech(1)

Augmented Reality(20)

Clean Tech(5)

Customer Journey(12)

Design(35)

Solar Industry(6)

User Experience(55)

Edtech(10)

Events(34)

HR Tech(2)

Interviews(10)

Life@mantra(11)

Logistics(5)

Strategy(17)

Testing(9)

Android(47)

Backend(30)

Dev Ops(7)

Enterprise Solution(27)

Technology Modernization(2)

Frontend(28)

iOS(43)

Javascript(15)

AI in Insurance(35)

Insurtech(63)

Product Innovation(49)

Solutions(19)

E-health(10)

HealthTech(22)

mHealth(5)

Telehealth Care(4)

Telemedicine(5)

Artificial Intelligence(132)

Bitcoin(8)

Blockchain(19)

Cognitive Computing(7)

Computer Vision(8)

Data Science(17)

FinTech(50)

Banking(7)

Intelligent Automation(26)

Machine Learning(47)

Natural Language Processing(14)

expand Menu Filters

8 Best Ways to Reduce Android App Size

5 minutes, 29 seconds read

With the increase in mobile storage spaces that have gone up to 256 GB, app size is also growing. App size is sure to grow as developers are adding new features, trying to meet customer needs, and also trying to support their apps on various screen sizes. Around 74% of the world uses Android, and 70% of users consider app size before installing them. Moreover, as humans are getting accustomed to instant gratification, they ponder on ways to download apps as they take up storage spaces. Despite the cloud support for photos, videos, and files, android users face issues, such as mobile hanging due to app size. As customer expectations are increasing, android app developers are considering other ways to reduce app size while still incorporating significant additional features and keeping in mind the customer experience.

Below are the 8 best ways to reduce android app size:

1. Use Android App Bundle to Reduce App Size

When generating the release version of your app, you can choose between APK and Android App Bundle.  The second option will make Google play to generate the APK with only those features a specific user need. 

Use Android App Bundle

App Bundle Vs APK

Android App Bundle

  • It is a publishing format that includes compiled code and resources of your app, and delays APK generation and signing to Google Play.
  • With Android App Bundles, the compressed download size restriction is 150 MB. The app bundle cannot be used with APK expansion files.
Android App Bundle
Important: In the second half of 2021, new apps will be required to publish with the Android App Bundle on Google Play. New apps larger than 150 MB must use either Play Feature Delivery or Play Asset Delivery.

How to build android app bundles?

To build app bundles, follow these steps:

  1. Download Android Studio 3.2 or higher—it’s the easiest way to add feature modules and build app bundles.
  2. Add support for Play Feature Delivery by including a base module, organizing code and resources for configuration APKs, and, optionally, adding feature modules.
  3. Build an Android App Bundle using Android Studio. You can also deploy your app to a connected device from an app bundle by modifying your run/debug configuration and selecting the option to deploy APK from app bundle. Keep in mind, using this option results in longer build times when compared to building and deploying only an APK.
  4. If you’re not using the IDE, you can instead build an app bundle from the command line.
  5. Test your Android App Bundle by using it to generate APKs that you deploy to a device.
  6. Enroll into app Play App Signing. Otherwise, you can’t upload your app bundle to the Play Console.
  7. Publish your app bundle to Google Play.

Please note: Android Package Kit – As per developer console, by the mid of 2021, developers won’t be able to upload apk on play store)

  • Android operating system uses APK which is the package file format for distribution and installation of mobile apps, games and middleware. APK is similar to other software packages such as APPX in Microsoft Windows or a Debian package in Debian -based operating systems.
  • Google Play requires that the compressed APK downloaded by the users should not exceed 100 MB.
  • The expansion files for your app are hosted by Google Play which serves them to the device at no cost to you. The expansion files are saved to the device’s shared storage location (the SD card or USB-mountable partition).

2. Use Proguard

Proguard is probably one of the most useful tools to reduce your APK size. It reduces the source code files to a minimum and can reduce the APK file size upto 90%.

  • Use it in all variants whenever using “Proguard”
  • Helps to avoid conflict at the of generate apk or bundle if will use in all the variants.
  • We cannot let ProGuard rename or remove any fields on these data classes, as they have to match the serialized format. It’s a safe bet to add a @Keep annotation on the whole class or a wildcard rule on all your models.

3. Use Android Size Analyzer Plugin

This Android Studio plugin will provide you recommendations to reduce the size of your application.

With the APK Analyzer, you can accomplish the following:

  • View the absolute and relative size of files in the APK, such as the DEX and Android resource files.
  • Understand the composition of DEX files.
  • Quickly view the final versions of files in the APK, such as the AndroidManifest.xml file.
  • Perform a side-by-side comparison of two APKs.

There are three ways to access the APK Analyzer when a project is open:

  • Drag an APK into the Editor window of Android Studio.
  • Switch to the Project perspective in the Project window and then double-click the APK in the default build/output/apks/ directory.
  • Select Build > Analyze APK in the menu bar and then select your APK.

More details at: Jetbrains

4. Optimize Your App’s Resources

Whether used or not, every resource takes up memory. It is therefore necessary to have only those resources that you need, and to use those in a memory efficient way. In other words, you should consider the resolution of the image before finalizing on it.

5. Optimize Libraries

As large libraries consume huge amounts of space, it is advisable to remove parts of it in case you do not need them and if it is permitted by the license of the library. Proguard can aid you in this process but it is not always able to remove large internal dependencies.

6. Use Vector Graphics Wherever Possible

They are sharp and do not consume much space as they rely on mathematical calculations and not on pixels that need to be saved. However, they cannot be used for photography.

7. Compress Your Images

By using tools such as pngcrush, you can reduce the file size of PNG images. It is advisable to do this images as they still look the same. 

8. Only Support Specific Densities

If only a small portion of users use a specific density, it might be better to let Android scale your other densities for them as it would reduce your APK size.


As mobile storage space is growing, people are installing a large number of apps to meet a wide range of needs. But as app size is increasing, people are continuing to struggle with storage issues. With provisions such as Proguard, one can compress the APK file size and optimize libraries easily. Compressing images and using vector graphs are also useful in reducing app size.

About the author: Anand Singh is Tech Lead at Mantra Labs. He is integral to the company’s Android-based projects and enterprise application development.

Further Reading:

Cancel

Knowledge thats worth delivered in your inbox

Embracing the Digital Frontier: Transforming the Patient Journey in Pharma

In the realm of pharmaceuticals, the digital revolution is not just a buzzword; it’s a seismic shift reshaping the landscape of patient care. From discovery to delivery, digital technologies are revolutionizing every facet of the pharmaceutical industry. One of the most profound impacts is evident in the patient journey. Today’s Patients are more informed, engaged, and empowered than ever, thanks to the proliferation of digital tools and platforms. In this comprehensive exploration, we will delve into the multifaceted ways digital is redefining the patient journey in pharmaceuticals.

According to a report by Accenture on the rise of digital health, these are the key challenges to overcome:

  • 99% of respondents indicated that the development and commercialization of Digital Health solutions has accelerated in the past two years. As part of this, companies require various new and strengthened capabilities to execute their visions. 
  • Patients and health professionals need to trust that the data collected is accurate, safe, and secure for them to feel comfortable using it. 
  • Fragmented data or lack of access to data has been a barrier to development. An overarching guideline on data privacy is needed.

Leveraging Digital Solutions for Accessible Drug Delivery

In the pharmaceutical industry, the journey of medication from production facilities to patients’ hands is evolving with the integration of digital solutions. These technologies not only streamline logistics but also ensure that medications reach even the most remote and underserved areas. Let’s delve into how digital innovations are transforming drug delivery and backend channels in the pharmaceutical industry.

Digital Backend Channels and Supply Chain Management:

Pharmaceutical firms leverage digital tech for efficient backend operations. Software like SAP Integrated Business Planning and Oracle SCM Cloud enable real-time tracking, inventory management, and demand forecasting. With AI and analytics, companies adapt to market changes swiftly, ensuring timely medication delivery and optimized supply chain logistics.

Innovative Digital Drug Delivery Technologies:

  1. Controlled Monitoring Systems: Digital temperature monitoring systems provide digital temperature monitoring solutions using IoT sensors and cloud platforms, safeguarding temperature-sensitive medications during transit, ensuring compliance with regulatory standards, and minimizing product spoilage risk.
  1. Last-Mile Delivery Platforms: Zipline and Nimblr.ai, along with LogiNext, employ digital last-mile delivery solutions, using drones and AI-powered logistics to transport vital medical supplies efficiently to remote regions, improving accessibility for underserved communities.
  1. Telemedicine Integration with Prescription: Integrated telemedicine and prescription platforms, like Connect2Clinic, are rapidly growing in response to COVID-19. With telehealth claims at 38 times pre-pandemic levels, the industry is projected to hit $82 billion by 2028, with a 16.5% annual growth rate. Mantra Labs partnered with Connect2Clinic, enabling seamless coordination between healthcare providers, pharmacies, and patients. This facilitates virtual consultations and electronic prescribing, benefiting remote patients with medical advice and prescriptions without in-person visits. These platforms enhance healthcare access, medication adherence, and patient engagement through personalized care plans and reminders.
  1. Community Health Worker Apps: CommCare and mHealth empower community health workers with digital tools for medication distribution, education, and patient monitoring. Customizable modules enable tracking inventories, health assessments, and targeted interventions, extending pharmaceutical reach to remote communities, and ensuring essential medications reach those in need.

Through the strategic deployment of digital solutions in drug delivery and backend channels, pharmaceutical companies are overcoming barriers to access and revolutionizing healthcare delivery worldwide. By embracing innovation and collaboration, they are not only improving patient outcomes but also advancing toward a more equitable and inclusive healthcare system.

Personalized Medicine:

Wearable devices and mobile apps enable personalized medicine by collecting real-time health data and tailoring treatment plans to individual needs. For example, fitness trackers monitor activity and vital signs, customizing exercise and medication. Personalized medicine optimizes efficacy, minimizes adverse effects, and enhances patient satisfaction by leveraging patient-specific data.

Enhanced Patient Engagement:

Pharmaceutical firms utilize digital platforms for patient engagement, fostering support and education during treatment. Through social media, mobile apps, and online communities, patients connect, access resources, and receive professional support. Two-way communication enhances collaboration and decision-making, boosting treatment adherence, health outcomes, and consumer loyalty. Click here to know more.

Data-Driven Insights:

The abundance of healthcare data offers pharma companies unique opportunities to understand patient behavior and treatment patterns. By leveraging big data analytics and artificial intelligence, they extract actionable insights from various sources like electronic health records and clinical trials. These insights inform targeted marketing, product development, and patient support programs. However, ensuring data privacy and security is crucial, requiring robust regulatory frameworks and transparent practices in the digital era.

Challenges and Considerations:

Maximizing the benefits of digital technologies requires addressing challenges like patient data privacy and equitable access to healthcare tech. Stringent safeguards are needed to protect confidentiality and trust, alongside efforts to bridge the digital divide. Regulatory frameworks must evolve to balance innovation with patient safety and security amidst rapid advancements in digital health.

Key Considerations for Pharma Companies in Embracing Digital Innovation:

  • Prioritize patient-centricity in digital initiatives, focusing on improving patient outcomes and experiences.
  • Invest in robust data privacy and security measures to build and maintain patient trust.
  • Foster collaboration and partnerships with technology companies and healthcare providers to drive innovation and scalability.
  • Leverage analytics and AI to derive actionable insights from healthcare data and inform decision-making processes.
  • Continuously monitor and adapt to regulatory requirements and industry standards to ensure compliance and mitigate risks.

Conclusion:

The digital revolution is not just a paradigm shift but a catalyst for transformation across the pharmaceutical industry. By embracing digital technologies, pharma companies can unlock new opportunities to enhance the patient journey, improve treatment outcomes, and drive sustainable growth. However, realizing the full potential of digital health requires collaboration, innovation, and a steadfast commitment to addressing the challenges and considerations inherent in this transformative journey. As we navigate the digital frontier, the future of patient care promises to be more connected, personalized, and empowering than ever before.

Cancel

Knowledge thats worth delivered in your inbox

Loading More Posts ...
Go Top
ml floating chatbot