How to increase compilation and execution priorities of activity on real devices?

91 views Asked by At

I want to know how I can increase the activity priorities to execute its data faster. I have nine view-pagers and all have multiple images in a single activity. When I start this activity it takes between 5-10 seconds. All other activities start with normal animation time, only this activity is taking a long time to display its content on the screen. I am using Bitmap to store the images from the folder of the android device and that's why it takes such a long time.

I want to start this activity with normal time. Is it possible ?

Can I increase the priority of my app's activity to get the results instantly ?

1

There are 1 answers

3
W3hri On

Since you didn't provide any sourcecode, i can only assume whats the reason for your activity to take that much time to be created.

I would say that have to improve you way of loading your images. Try using a library like Universal Image Loader to load and display them. The UIL loads them asynchronously, so your aticvity can be ready while the images themselves load in a background thread.