How to make install faster after compile?

gkumar

Active Member
Licensed User
Longtime User
I am testing the application in emulator. .apk file is of size 5 mb because of some bitmaps and icons. But everytime it takes more than a minute to compile and install the apk to the emulator. compilation is faster but install process takes time.
Is there any way to fasten the install process to emulator? Or a quick view of UI design changes without installing the apk to emulator?
 

gkumar

Active Member
Licensed User
Longtime User
Instead of 2.2 emulator I am using 2.3.3 now. But I am having one problem. After 2 activities display, when application enters the 3rd activity, which is having imageview, 2 panels, scrollviews, it shows "Unexpected error" popup. But same is working good with 2.2 emulator.

I tried to debug the code. But before coming into the activity create it shows the error popup. I am not able to figure out the problem. What may be the cause of this issue?
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Check the logs on the right hand side of the IDE. You might need to unfilter them to get access to the information you need.

Have you generated the code in debug?

I would seriously recommend looking at compressing the graphical elements that you have defined. I do a lot of work on my Apps to ensure that the PNGs and so on are made as small and compact as possible without compromising the quality. If the images are large, consider reducing the physical size of them, especially if the App is targetting phone users, they don't have that much screen real estate to play with anyway. I used a tool I've had for years, which I purchased to reduce the size of graphics files. It can reduce the number of colours for instance and allows me to reduce the pixel dimensions and jpeg compression and apply a further compression technique as well. It's called xatio, from xat.com but there are other tools, probably free ones around that are available. It can make a big difference to the APK size.
 
Upvote 0

gkumar

Active Member
Licensed User
Longtime User
I figured out the problem.

If I keep the below line
"Max Application VM heap Size" = 24

in the hardware properties of emulator in AVD manager, then it throws error. But If I delete the above line, it works fine. This is the same case with emulator 2.2 and 2.3.3. I wonder how this parameter relates to this problem.
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Max Application VM heap Size

It's setting the Maximum Application Virtual Memory heap size, I guess without it it's set too low and you blow the limit.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…