Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

StopSwitchDelay - Remove 5s Delay To Open Apps After Pressing Home Button

OP GermainZ

20th March 2014, 11:58 PM   |  #1  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 7,337
 
5,911 posts
Join Date:Joined: Aug 2012
More
Introduction
This is a very simple module that removes the 5 seconds delay preventing you from opening apps (other than from the launcher) after pressing the home button.
More detailed explanation | Even more detailed explanation

Requirements:
Xposed Framework

Source:
https://github.com/GermainZ/StopSwitchDelay

Download:
http://repo.xposed.info/module/com.g...topswitchdelay

Thanks:
rovo89 and Tungstwenty for the Xposed Framework.
Last edited by GermainZ; 27th March 2014 at 12:39 PM.
The Following 83 Users Say Thank You to GermainZ For This Useful Post: [ View ]
21st March 2014, 12:45 AM   |  #2  
pitastrudl's Avatar
Senior Member
Flag Ljubljana
Thanks Meter: 557
 
1,726 posts
Join Date:Joined: May 2011
Donate to Me
More
Im not sure what kind of delay are you talking about?
21st March 2014, 12:55 AM   |  #3  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 7,337
 
5,911 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by pitastrudl

Im not sure what kind of delay are you talking about?

After pressing the home button, there's a five seconds delay set by Android.

During that time, if an activity (e.g. Switchr) tries to start another activity, that action will be delayed. On KitKat and higher, I think it shows you a warning when that happens (a "Loading app..." toast.)
(The delay is reset when you open an app from the launcher or task switcher, too)

If you've never encountered the issue then you most likely don't need this module.
Last edited by GermainZ; 23rd March 2014 at 12:21 AM.
The Following 7 Users Say Thank You to GermainZ For This Useful Post: [ View ]
21st March 2014, 01:07 AM   |  #4  
pitastrudl's Avatar
Senior Member
Flag Ljubljana
Thanks Meter: 557
 
1,726 posts
Join Date:Joined: May 2011
Donate to Me
More
Quote:
Originally Posted by GermainZ

After pressing the home button, there's a five seconds delay set by Android.

During that time, if an activity (e.g. Switchr) tries to start another activity, that action will be delayed. On KitKat and higher, I think it shoes you a warning when that happens (a "Loading app..." toast.)
(The delay is reset when you open an app from the launcher or task switcher, too)

If you've never encountered the issue then you most likely don't need this module.

Now that you mention it, i have encountered a problem like that, but i've only seen it in a few apps. Also while using switchr, the problem occured randomly(or so it seemed). an example for the app is Castle Clash. But I do not recall a toast showing "loading app". Would the delay also apply to Tasker? I will try out the module and report. Maybe the problem is fixed in a custom rom im using(Slimkat, AOSP).
21st March 2014, 05:50 AM   |  #5  
killoid's Avatar
Senior Member
Flag 23.7000 N, 90.3750 E
Thanks Meter: 295
 
995 posts
Join Date:Joined: Feb 2013
More
@GermainZ can we get gingerbread support plz?
21st March 2014, 06:23 AM   |  #6  
Pkt_Lnt's Avatar
Senior Member
Flag SLO
Thanks Meter: 2,061
 
3,480 posts
Join Date:Joined: Dec 2011
More
So that is what has been driving me crazy and I had no idea. Seemed like lags and hangs. Thanks!
21st March 2014, 09:44 AM   |  #7  
Member
Thanks Meter: 6
 
93 posts
Join Date:Joined: Nov 2013
Sounds Great!!
I'm using side bar app to open some apps and I have encountered that many times but I didn't know it's concerning with home button and I thought it was just a bug of the sidebar app!! Great!! However, can't be that was added in Android OS originally due to necessary?? Any Risks after this module??
21st March 2014, 11:04 AM   |  #8  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 7,337
 
5,911 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by killoid

@GermainZ can we get gingerbread support plz?

Should work fine on Gingerbread, I'll lower the SDK version later.
Quote:
Originally Posted by Soe Min Thu

However, can't be that was added in Android OS originally due to necessary?? Any Risks after this module??

I can't see any. If a malicious app wants to override your home button this way it could use a background service to bypass the delay anyway. As to why it was added, ask the Google engineers.
The Following User Says Thank You to GermainZ For This Useful Post: [ View ]
21st March 2014, 01:23 PM   |  #9  
_jis_'s Avatar
Senior Member
Thanks Meter: 150
 
491 posts
Join Date:Joined: Feb 2012
More
Thumbs up
Quote:
Originally Posted by GermainZ

After pressing the home button, there's a five seconds delay set by Android.
During that time, if an activity (e.g. Switchr) tries to start another activity, that action will be delayed. On KitKat and higher, I think it shoes you a warning when that happens (a "Loading app..." toast.)

As a long time user of SwipePad I know this delay and connected toast message very well. Thank you for this module!
Quote:
Originally Posted by GermainZ

As to why it was added, ask the Google engineers.

Normally Android system force a 5s delay after you click the home button in order to give home application some priorities to finish switching. But I think that 5s was huge overkill on any today's decent hardware.
The Following User Says Thank You to _jis_ For This Useful Post: [ View ]
21st March 2014, 07:25 PM   |  #10  
GermainZ's Avatar
OP Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 7,337
 
5,911 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by killoid

@GermainZ can we get gingerbread support plz?

I've lowered the minSdkVersion to support Gingerbread, please test it.

The Following 3 Users Say Thank You to GermainZ For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes