Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dreamtheater39
Old
#1  
dreamtheater39's Avatar
Senior Member - OP
Thanks Meter 39
Posts: 1,171
Join Date: Oct 2004
Location: Bangalore
Default [REQ] Overriding Home button long press

Hi!

Was wondering if we could somehow override the home button long press to run a custom application instead of showing the recent apps list? This way, we could develop a custom application which shows more stuff rather than just 6 recent apps.

Some ideas are - integrating a task manager which shows running apps, favorite apps shortcuts, shortcut to app drawer etc.

I could develop the application but I wouldn't know how to override the home button long press! Any ideas anyone?

Cheers,
San
dt39-UltimateROM-series for Samsung i780
Visit my blog dedicated to learning how to cook ROMs for the i780.
i780romdev.blogspot.com
 
oswade
Old
(Last edited by oswade; 24th October 2010 at 01:31 PM.)
#2  
Senior Member
Thanks Meter 92
Posts: 962
Join Date: Jun 2010
Well, there is at least one (paid) app that already does this (could be more but i don't know of them) - "MultiTasking Pro" http://www.cyrket.com/p/android/com....ultitaskingpro

It would be nice to have extra functionality though, such as a clock (say, if you're in the middle of a game and want to check the time).

As for how it works, just from testing it out, it appears to act as a launcher (given that single home button press takes you to home launcher). I gather this as I had to set it as the default app when i pressed home button for the first time, aswell asthe fact that you have to select the home launcher in the app settings.

The way the app works is, press home button once brings up the menu (overlaying existing app). press it a second time and it takes you to the "default" home launcher as selected in settings. If you hold down home, the original app menu pops up, reinforcing the fact that this isn't a replacement per se.


Of course, overriding the original home button hold function menu would appear to be a much cleaner solution, and I welcome any info on that... whether its integrated into touchwiz or what not... One things for sure, is that samsung modified it to include a link to their "task manager" app.
 
Bec07
Old
#3  
Bec07's Avatar
Senior Member
Thanks Meter 90
Posts: 721
Join Date: Aug 2010
TaskSwitcher is better, faster, uses less memory and it's completely free.

However no app can replace the long press. It needs kernel/system file modding.

Sony J70 -> Nokia 3300 -> W800i -> 6230i -> Motorola A925 -> N82 -> 3GS -> SGS -> SGS2 -> ...
-----------------------------------------------------------------------------------------------
N900 -> A500 -> P7310 -> TF201 -> TF810C -> ...
 
dupel
Old
#4  
dupel's Avatar
Senior Member
Thanks Meter 23
Posts: 1,352
Join Date: Jun 2010
Location: London
Quote:
Originally Posted by Bec07 View Post
TaskSwitcher is better, faster, uses less memory and it's completely free.

However no app can replace the long press. It needs kernel/system file modding.
Indeed, not possible. Does anyone know if it was implemented in other android phones?

PS. Power strip is better =) Very very fast and you can see 12 recent apps + widgets. Itching thumb is very promising, but its a plain beta for now.
Nokia 5800
At first I was like , but than I was all
 
Bec07
Old
#5  
Bec07's Avatar
Senior Member
Thanks Meter 90
Posts: 721
Join Date: Aug 2010
Yeah but itching thumb uses a LOT of memory.

Sony J70 -> Nokia 3300 -> W800i -> 6230i -> Motorola A925 -> N82 -> 3GS -> SGS -> SGS2 -> ...
-----------------------------------------------------------------------------------------------
N900 -> A500 -> P7310 -> TF201 -> TF810C -> ...
 
jjwa
Old
#6  
Senior Member
Thanks Meter 10
Posts: 220
Join Date: Jun 2010
Location: Enschede
Quote:
Originally Posted by Bec07 View Post
Yeah but itching thumb uses a LOT of memory.
For me Itching Thumb is currently the only task switcher style thing I find good enough (interface, functionality) to run next to Launcher Pro... I uninstalled all others I tried before.

But if I could have Launcher Pro on short press home, and Itching Thumb on long press home, that would be exactly how I would want that . Because I think optimizations such as memory use will come in time anyway.
 
Bec07
Old
#7  
Bec07's Avatar
Senior Member
Thanks Meter 90
Posts: 721
Join Date: Aug 2010
I hope for the visual style to be integrated in android and have a real preview, live of the app.

Sony J70 -> Nokia 3300 -> W800i -> 6230i -> Motorola A925 -> N82 -> 3GS -> SGS -> SGS2 -> ...
-----------------------------------------------------------------------------------------------
N900 -> A500 -> P7310 -> TF201 -> TF810C -> ...
 
MikeyMike01
Old
#8  
MikeyMike01's Avatar
Recognized Developer
Thanks Meter 2449
Posts: 6,374
Join Date: Jul 2010

 
DONATE TO ME
Quote:
Originally Posted by Bec07 View Post
However no app can replace the long press. It needs kernel/system file modding.
Any idea on what would need to be modified?
Apple iPhone 5
Samsung Galaxy Nexus
.
Samsung Captivate
Samsung Focus
Samsung Infuse 4G
Samsung Galaxy S II
Motorola Xoom

.
Captivate Roms:...Serendipity VII...||...Serendipity...||...Assonance
.

Infuse Roms:...Serendipity VII Infuse...||...MIUI
.
SGS II Roms:...Serendipity 8...||...Serendipity 9

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Recognized Contributor Code of Conduct

During the first half of 2012, XDA initiated the Recognized Contributor (RC) program to recognize … more

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more