Skip to content
This repository has been archived by the owner on Jan 6, 2019. It is now read-only.

it opens slow #71

Open
irregularisnotrandom opened this issue Feb 6, 2016 · 6 comments
Open

it opens slow #71

irregularisnotrandom opened this issue Feb 6, 2016 · 6 comments

Comments

@irregularisnotrandom
Copy link

Hi
I am using this as search agent instead of home replacement. Everytime i need to open it, it takes like 2 seconds before i see the who app.

I am on lollipop.

@edgarvperes
Copy link
Owner

It takes some time to get all launchable activities from Android and this is done every time our activity is created.

Are you using any of those RAM management app? If you are, I suggest disabling it.
These things do more bad than good.
If you are using Greenify to only kill specific apps, don't greenify Hayai Launcher.

Do you remove Hayai from the recents/overview screen? Doing so removes the activity from Android cache forcing it to be recreated on the next time you open it, which is slow.

Android will also remove our activity from cache if you need RAM. Are you using a low RAM device?
Some devices with terrible RAM management (such as Galaxy S6) also kill cached activities for no good reason.

In the future we can either try to cache the launchable activities in a database to avoid asking Android for them or we can keep a background service open all the times with all the information we need of the launchable activities.

@edgarvperes
Copy link
Owner

Try v1.3.0, hopefully the activity will get killed less often.

@irregularisnotrandom
Copy link
Author

Hi it seems a bit better

@kashifo
Copy link

kashifo commented Mar 12, 2016

You should not load apps every time the activity is created. Load only first time when the app is launched, then on install/uninstall update the saved data.

@edgarvperes
Copy link
Owner

@KashifAnwaar
Maintaining a database of all apps is a possible solution, but it wastes storage space.
In my opinion, Android shouldn't take too long to return all installed apps. I shouldn't have to create a database if one exists already...
I'll work on this eventually.

@kashifo
Copy link

kashifo commented Mar 15, 2016

@seizonsenryaku
Wasting storage space is better than wasting time, also it is not wasting storage space because it saves time, and also it'll take few kilobytes only.

BTW

that is not your fault, all launchers behave like that only. it's not an issue for launcher's you can close it.

@irregularisnotrandom Quickdroid - an open source software will suit your needs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants