Hi all,
I would absolutely love to be able to toggle my Android wi-fi connection with a long press of the search soft key. This would be ideal when launching some app that would benefit from a faster connection and would save me returning to the home screen, activating the wi-fi and then returning back to the app.
I've searched everywhere to find an app, or combination of apps (Button Shortcut + something else) that could achieve this but have hit a dead end.
Anyone know of an app that could achieve this?
Alternativily I do have the Android IDE set-up at home, does anyone know how I can hook the long button press (from within all app's) and toggle the wi-fi connection?
Thanks in advance,
Nexus One user (I'm not rooted)
Ok, so I've come to the conclusion there's no apps out there at the moment that will do this so I have started writing my own.
I have successfully hooked the search button and can get a basic activity launched with a long press of the search key from the home screen and within other apps.
All I need now to is to find the code that allows me to enabled/disable wi-fi. Can anyone point me in the direction of a good example?
Thanks, will share my app once its finished!
I now have this working on my Nexus One, needs a couple of tweaks but it's nearly ready to release to the Android Market.
Would anyone care to do a bit of beta testing for me? If so I can PM the apk once it's ready.
Also, if appropriate can a mod please move this into the "Android Apps and Games" forum.
I have now released this to the Market as "In-App Wifi Toggle".
awesome app, thanks for sharing!
raviff said:
awesome app, thanks for sharing!
Click to expand...
Click to collapse
Thanks, glad someone likes it!
Can you tell me what phone and version you're using and what button you're using to activate the app?
I like it. I'm using an N1. I put it on the search soft key.
Works great on my HTC Legend with 2.1 Sense!
Thx!
Sent from my HTC Legend using the XDA mobile application powered by Tapatalk
Very nice... Has anyone tested this on a G1?
I have been using the Toggle WiFi app set to the keyboard shortcut (search-w) but this seems a little more "fluid"...
love it great idea fast easy way to turn wifi on and off
Vermithrax said:
Very nice... Has anyone tested this on a G1?
I have been using the Toggle WiFi app set to the keyboard shortcut (search-w) but this seems a little more "fluid"...
Click to expand...
Click to collapse
I have a friend with a G1 who's been doing some testing for me. The version on the market at present will only work on a short press of the green/call button. The search button on the pull out keyboard doesn't work. Now obviously a short press of the green/call button is normally assigned to shortcut to the phone app and most people won't want to re-assign this and so I have made some adjustments so it will now work on a long press of the green/call button. I will be releasing this update to the market in the next couple of days when I get a moment.
FYI I've just uploaded the new version with the added long press of Call/Green button.
Vary nice app, works as described on HTC Droid Incredible. Like how the systems gives me the choice of Wifi toggle or google search on the long press now. Very nice. Would have paid for it....
Any chance of releasing the source code for us wannabe devs to learn from? I'd love to modify the app to call a specific person on a long search press, as I find the dialer to be the most annoying part of Android.
Hi just downloaded it and works fantastic on my Legend!!
Thank you very much!
lowkee said:
Any chance of releasing the source code for us wannabe devs to learn from? I'd love to modify the app to call a specific person on a long search press, as I find the dialer to be the most annoying part of Android.
Click to expand...
Click to collapse
I will eventually release the source code yes once I've put my website together but not right this minute I'm afraid.
On a seperate note I've been beavering away coding "In-App Bluetooth Toggle". Frankly, its been an absolute slut because I would like the app to work with all versions of Android from 1.5 upwards but the bluetooth API only became available from 2.0. I've been using a complex combination of hacking and reflection to get the pre 2.0 versions working and now have a single app that works on both a v1.6 G1 and v2.1 Nexus One.
Are there any v1.5 (Hero/Moment/Magic/Pulse/CLIQ) users out there willing to do some debug testing for me? I can email you a APK file.
Any help appreciated!
You know what I'd love, it if there was a way to emulate all of the hardware keys, like Menu, Home, Back, etc on the screen rather than by using the hardware keys. Any possibility for something like that using your idea here for Wifi toggle?
thesecondsfade said:
You know what I'd love, it if there was a way to emulate all of the hardware keys, like Menu, Home, Back, etc on the screen rather than by using the hardware keys. Any possibility for something like that using your idea here for Wifi toggle?
Click to expand...
Click to collapse
Would you expect such an emulator to be visible always, in every application? That would seem rather intrusive in my opinion.
Great App. It works good on the HTC Wildfire. The only problem is I(we) don't have a call hardkey, therefore I can either use the wifi or the bluetooth toggle or use the popup menu(which is not very "clean")
Hi!
Can you share how you manage to capture long press on search button by code? It will be greatly appreciate
Thanks in advance!
i search forthis long time so let me know if there are some application that allows what i want. I know it can be only for root users.
I have an idea to application that allow user change function hardware keys.My idea is change search button to bring up app switcher.Be couse i really never used that button. I know many situation when we hold "HOME" to bring it up but it take me back to home+show preview screens +bring up app switcher (i know previews can be turned off by launcher but i want previews, they are cool).You dont need hold anything.It will be much faster switching betwean applications.
So you push HOME to back to home or bring up previews
and push SEARCH button to bring application switcher.
it is good idea?
sorry for bad english.
+1
a key-switcher app would be great
It's a pain in the ass, but there is a way to do this yourself.
Zoltair Wright said:
It's a pain in the ass, but there is a way to do this yourself.
Click to expand...
Click to collapse
thx dude i try it but it does not work i remap
key 127 SEARCH
to
key 127 EXPLORER
but it does not work.Guy Decad3nce developing it to HERO he answer me:
The problem is that the intent activity with the APP SWITCHER(Explorer, I think) can't be changed without adding a reference binary, which is what I'm working on^ .
If anyone wants to help me. Looking at AdamWill's work.
Click to expand...
Click to collapse
forum:
http://forum.xda-developers.com/showthread.php?t=695936
Anyone know if there is a manual for Touchwiz? For instance it took me a long time to find that if I long press the search button I can configure a voice app for it. Be nice it that was documented somewhere?
kmann said:
Anyone know if there is a manual for Touchwiz? For instance it took me a long time to find that if I long press the search button I can configure a voice app for it. Be nice it that was documented somewhere?
Click to expand...
Click to collapse
that has nothing to do with touchwiz. thats an android feature on every rom on the 3 manufacturers that i deal with (moto/samsung/htc)
Any idea how does the button on the stylus work?
thanks,
ugotproblemz said:
Any idea how does the button on the stylus work?
thanks,
Click to expand...
Click to collapse
First of all You need it to take screenshots: touch the screen, press the button and voila ...........
The other functions are depending on the app u use it in (e.g.. dragging)
I'm still on the discover tour myself. Just play around and check............
ugotproblemz said:
Any idea how does the button on the stylus work?
thanks,
Click to expand...
Click to collapse
All the features are in the little booklet that came with, I think it only has 4 functions, albeit useful ones.
But it would be nice if it were remappable to launch different shortcuts and commands, maybe we'll see an app in the future.
Presently, it seems that TouchWiz is catching all button events, all events are system wide.
Hi, is there any apps that i can install to swipe to delete on sms, email, contact and etc other than press and hold long for option to pop out??
Most I found is swipe to unlock and answering calls.
TQ
don't think so
medowance said:
Hi, is there any apps that i can install to swipe to delete on sms, email, contact and etc other than press and hold long for option to pop out??
Most I found is swipe to unlock and answering calls.
TQ
Click to expand...
Click to collapse
Hold long option to pop out will probably only be on the powerful devices.
But I think you are asking for a bit much when you say that.
On the other hand The swipe to delete sms, email and contact is already integrated into the latest versions of android and some ROMS. How about including your device name so others can recommend a ROM.
Oh and
jman2131 said:
don't think so
Click to expand...
Click to collapse
How useful that was. Thanks
Bump.
I would alos like to know if there is a patch or something to add this feature. I just migrated from a palm Pre 2 (WebOS) to a Galaxy s3 running the Jelly Blazed TW ROM. I keep accidentally calling people when trying to delete a message string. If there isn't I imagine I will get used to it eventually.
Deftone said:
Hold long option to pop out will probably only be on the powerful devices.
But I think you are asking for a bit much when you say that.
On the other hand The swipe to delete sms, email and contact is already integrated into the latest versions of android and some ROMS. How about including your device name so others can recommend a ROM.
Oh and
How useful that was. Thanks
Click to expand...
Click to collapse
Currently I'm on Galaxy Note running on original rom 4.0.4 - N7000DXLR1
Hope have a sliding gesture apps to overwrite the press and hold feature.
TQ
medowance said:
Currently I'm on Galaxy Note running on original rom 4.0.4 - N7000DXLR1
Hope have a sliding gesture apps to overwrite the press and hold feature.
TQ
Click to expand...
Click to collapse
AFAIK there is no such function or app in any of the roms:crying:
prithvee said:
AFAIK there is no such function or app in any of the roms:crying:
Click to expand...
Click to collapse
Actually, the only reason I said it was because I used to use that feature in one of the first roms on my x8. It was a gingerbread one that incorporated a lot of the ICS features like the scroll glow.
So yes there is. The gmail does have a slide to delete. Like on the notification drop down.