Launchers touch features support (aka remove '5' secs delay)

When you press "home" Android will introduce a 5 secs delay to any app and service trying to execute an intent unless the app sending that intent is the current launcher. This prevents Kustom Wallpaper to launch apps without delay since it is running as a service.

This can be easily removed by adding support within the launcher for trusted wallpapers in order to let them remove this delay via a content provider. In order to support this what you should do is the following:

  • Create a content provider that will respond to "delete" query like context.getContentResolver().delete("content://mypackage/reset5secs") you can find an example in this gist
  • When query is received you should verify via getCallingPackage that the requester is the currently set wallpaper or, if you prefer, Kustom Wallpaper package (org.kustom.wallpaper)
  • If that is confirmed you should launch a transparent activity that will call finish() immediately
  • If that has been done return 1 otherwise 0

If you implement this feature please then open a ticket using this site to inform the author about the exact URI so it will be added to the app as supported.

Launchers currently supporting this feature are:

Was this article helpful?
0 out of 0 found this helpful