I'm developing a hybrid app using worklight, and so far I just have couple of screens in my app. But when I run this app in my Android phone, if I check the apk file it's size is showing as 4.4 MB! I'm not even 20% through my app development and still it is so heavy.
Is this an issue with worklight or there is a way in worklight to keep your app lightweight?
Thanks for the heads-up. We are aware of this and are making way on reducing our application file size in a future release.
I'm not in front of my work machine at the moment, so I can't test tips before giving you them, buuuttt... in your native\assets folder there should be a icudt46l.zip file.
If you do not intend on using the JSONStore feature, try deleting this file and re-building your app. This should reduce the filesize considerably, but again I can't guarantee what happens during runtime (nothing bad should happen...).
Related
I have a question, is it possible to write android apps without android studio? I know languages like C and java The problem is the following: I have a 4 GB RAM and as you all know, android studio is hungry for memory. I have tried to reduce android studio memory usage by disabling some plugins. One of the sources I have seen is This: https://techzog.com/development/android-studio-high-ram-usage/ however, I still have problems, particularly with my screen reader crushing and needing to constantly restart screen reader to read out contents of the window. So, my thinking was, is there a way to develop apps with IDE like visual studio code for example, or even simpler, notepad++ and then somehow build the project? The issue with this is project file structure creation, which has a lot of files and etc. Besides that, android studio has powerful capabilities for debugging on device, managing dependencies, APIs and etc. Is there some way to do this (possibly harder way) but without android studio? I prefer developing native vs hybrid or web apps. I have even tried python and developing some apps with beeware, but I still prefer native. Any suggestions are welcome. Thanks in advance.
Yes, you can do with Visual Studio code by using Kotlin. Also your app will be able to run at Android and IOS.
I am new to Flutter and dart language. After developing some example apps seeing from the tutorial I have come to know that the simple Tab-Layout App is taking 7MB for APK after release and after installing the APP the size is 27MB. My question is as follows:
What is the difference between the APK Size and Installed APP Size?
When developing an App whether its Native or Flutter, what should we keep in mind that APK size should not be huge or the size of the APP after installing should not be huge?
Keeping in mind of the all pros and cons of Native and Flutter, what is the best approach to develop an Android APP?
Installed App has something like the DOUBLE in space of the standard APK, this is cause by how Android "installs" all Apps. If you open a folder in "/data/app/..." you can see that for each PackageName/App it is stored the standard APK file (the one you release) and there are at least two folders: for libraries and one for optimized code (not accessible/readable from us without Root). These folders contain other extracted and optimized files starting from your APK.
Flutter Apps cannot be smaller than 6-7Mb because it brings all Flutter Core inside them. To "shrink" your App you can follow common rules to shrink any normal Native App.
The best approach? All depends on your skill, how much available time you have to complete the App, how much times the Customer change his minds about the position of some graphic interface, etc... Flutter main website page has written "Flutter is Google’s mobile app SDK for crafting high-quality native interfaces" so the main purpose of it is to quickly create Interfaces. This is good when a Customer interrupts our work every 10 minutes because he wants to change something in the graphic aspect and we cannot manually change many XML and then rebuild a version each time, so Flutter could improve this step a lot. Flutter is even good at initial stage when we are not sure where we will set components/widgets at final stage, so we can move all the stuff in few seconds to check the graphical result. Performance of Flutter Apps are quite good, but not good as a Native App obrliviously. Using Flutter could be the good way when you already know that the final APK will be bigger than 25MB, because in this case 25MB or 25+7MB is not that's difference but the speed (in GUI development) provided from Flutter are something not estimable.
I recently deleted what I had in terms of an app from Android Studio due to ridiculously bad code. But, I had originally tested the app before the code went crazy. With that being said, I have that part of the app on my phone. Can I take the app off of my phone and put it into Android Studio and pick up where I left off on that? I've read that you can take an .apk and load it into Android Studio, I just don't know where to find it on my phone.
You can decompile the .apk, but you can NOT turn it into an Android Studio project. And if you enabled proguard when building, the decompiled .java files will be a jibberish.
What you should do is install a VCS like git (it is easy to setup and use) and commit your changes regularly. This way you will always be able to roll the project back in case of trouble.
In order to get access to the .apk file, you need to use a 3rd party app like appsaver or super saver to save the apk onto your sdcard or internal memory.
I'm using IBM Worklight 6.0 to develop a cross platform application. There is no provision(as far as my knowledge) about the way the native applications are generated by worklight.
Is it possible to make these applications run faster?
And do these applications cache the data(say images in the applications), locally in the mobile applications so that the App runs faster the next time its invoked?
If not is there any way to do that?
Update to the recently released Worklight 6.0.0.2; your initial start-up time should decrease considerably. See if it helps.
I have just developed a new Android Air application using Adobe Flashbuilder and I am having the issue that when it is installed on a device it is 10mb in size which is huge. I dont understand why this is as when I look at the size of the entire App Folder in Flashbuilder it only ammounts to 1.6mb.
Is there something that I should have done within Flashbuilder in order to compress the size? Can anyone please help with this as I really want to release this app but dont want to at this install size.
10 MB is really not that much.
But it's probably because you're using a third party library and that's not inside your folder but it needs to be compiled within your app.