[Request][Mod] Flip search button function - Nexus One Android Development

I seldom use the search function on my n1 (quick press search button), compared to my shortcut (long press search button).
I'd love to have the function on the button flipped, so that only when I long press search I get to search, but simply quick pressing it brings me to quickdesk (my shortcut)
There has got to be others interested in this, but I can't find any solution on how to solve it..
Can somebody help me out?
Regards
-e

I THINK someone looked at this before, and without having an app running actively ALL the time to remap the default single press keys, its impossible.

dogiedogie said:
I THINK someone looked at this before, and without having an app running actively ALL the time to remap the default single press keys, its impossible.
Click to expand...
Click to collapse
Or i assume, editing the framework from source ? Like how wysie did it with long-press home-button. If u dont know what im referring to try cm6.

The home button long press change in cm6 is really nice.
Wondering how deep in the OS/framework these changes are..
Basically the OS should register the 4 "hardware" buttons the same way, so if one can be changed, all should be able to be changed..
Also since I just wanna swap functions, there is no need for a gui/front end to control the changes or map certain programs to it.
(I wouldn't complain if cm6 got a full search button control for both short and long press though)
Sounds like something that could be baked into a cm rom if enough people was interested in it..
-e

It should be possible, but I took a brief look at the source and couldn't find it -_-. Will look harder next week. (Weekend's here )
Glad to see you all liking the home button binding change .

I was actually thinking about this after seeing the MT Slide ad... All the genius button is is the search button binded to a skinned voice dialer (if it's even skinned, haven't looked into it)

Wysie said:
It should be possible, but I took a brief look at the source and couldn't find it -_-. Will look harder next week.
Click to expand...
Click to collapse
Massive props to you if you can pull this off!
Looking forward to some good news next week

Key Mapping
This is a good resource: http://www.kandroid.org/android_pdk/keymaps_keyboard_input.html#androidKeymapKeyCharMap.

Would be awesome if you could pull this off
Wysie said:
It should be possible, but I took a brief look at the source and couldn't find it -_-. Will look harder next week. (Weekend's here )
Glad to see you all liking the home button binding change .
Click to expand...
Click to collapse
Sent from my Nexus One

Related

[APP][UPDATED Updated 26/01/2010] PLToggle - Toggle screen rotation

I made this program in answer to a request in the HD2 General forum, but thought I should post it here.
It's a small app that toggles the display orientation back and forth to the rotation of your choice, without the need for the g-sensor.
The default installation includes the settings screen (available from your start menu), and the application itself, which is available via a long-hold of the call button. When the application is first installed, it defaults to standard landscape (the left of the phone being the bottom), but this can be changed via the settings screen.
BIG THANKS!! to vonski and Eldorado9 for their patience and testing. Thanks guys
Have fun
Note:
Manila doesn't like being forced into landscape, so you can't use this app for that - sorry. It works upside-down, just not sideways. (I've got a HD2 with Sense/Manila 2.5)
Also, I've only tested this on a WVGA device and would like to know how it works on other resolution devices, so please feel free to private message me with any feedback regarding this.
Change details (26/01/2010)
Removed the long_send link that was originally being installed in the Windows folder.
For some reason, when you press the call button to answer a call, it executes the long_send link, despite only being a quick send.
This only happens when there's an incoming call. I've removed this link from the installer, but you still execute the toggle with a long-hold of the call button.
NOTE: The installer will remove the long_send link from your windows folder.
Change details (13/01/2010)
Added the settings screen so there's now only 1 installer, instead of 3.
If you do have the previous version, you can simply delete it from the windows folder, or just leave it and install this one.
It will override the existing version's functionality, despite being able to install it on your storage card now.
Great Job!
John,
Great job and thanks for this. First thing that comes to mind is why did you not combine these into one programme so one can have the option to go left, right or upside down without having to install 3 separate apps?
If its not difficult to do and you can spare the time to do it then I would be very interested in a single combined app that I could run off my quicklinks.
I'm subscribing to this thread to watch developments.
Thanks again.
WB
wacky.banana said:
John,
Great job and thanks for this. First thing that comes to mind is why did you not combine these into one programme so one can have the option to go left, right or upside down without having to install 3 separate apps?
If its not difficult to do and you can spare the time to do it then I would be very interested in a single combined app that I could run off my quicklinks.
I'm subscribing to this thread to watch developments.
Thanks again.
WB
Click to expand...
Click to collapse
It actually is 1 program, but the shortcut (long_send) is different in each zip file, and that tells the app which direction to rotate the display.
This started because someone asked for an app that would put their display in landscape and then back again, with a long-hold on the call button. After I'd done that for them, someone else asked for the opposite direction. Whilst doing that I remember that someone had once asked how to change the display to upside-down, so I did that at the same time.
The main idea here is that you pick a default rotation, and then you only have a button press to toggle it on and off. Anything more than that would require a UI and therefore more interaction, and since I'm trying to keep interaction to a minimum, that sort of goes against the principle of it.
I'll have a think about it though, but I think what you're suggesting is a completely different application. I'm not against doing that, but it won't be part of the development of this.
Thanks for the suggestion mate
Ah ok, I see. Also understand the "minimalist" philosophy behind the development.
The way I would use a programme like this would be to have it as a quicklink on my front screen (I tend not to link things to hardware buttons) which would then give me the options of (L)eft, (R)ight or (U)pside Down. If that requires a UI (I guess it does) then don't go to all that trouble.
The problem with me is I don't always rotate my device the same way all the time (I'm weird like that) although upside down is a new one on me (I remember Tubgirl, I think, asking for that).
Cheers anyway.
WB
Very nice....it's much more convenient than using BSBTweaks and shaking it... Thanks!
Just a quick question:
I use the Standard Windows Hardware Button Assignment and mapped my internet browser button with "rotate Screen"...
now here for the question: Is it possible to write that app for other buttons too? 'cause i'd love to have multifunction on my browser button and your app is almost perfect for it^^ short press = Opera, long hold = rotate... that would be SO AWESOME!!!!
btw: your app is great as it is now.... it's just a question^^
strange_nu_kid said:
Just a quick question:
I use the Standard Windows Hardware Button Assignment and mapped my internet browser button with "rotate Screen"...
now here for the question: Is it possible to write that app for other buttons too? 'cause i'd love to have multifunction on my browser button and your app is almost perfect for it^^ short press = Opera, long hold = rotate... that would be SO AWESOME!!!!
btw: your app is great as it is now.... it's just a question^^
Click to expand...
Click to collapse
Thanks for the comment
I think to do what you've suggested, you'd need something like AEButtons. I've never used it myself, but I believe you can assign different actions for long and short button presses to hardware buttons.
Hope this helps
Thanks thanks thank you very much
another key assignement
is it possible to assignt the exe not to long send button but to windows start button (u know that one in the middle in htc leo-next to home button)
tnx in advance.
karaern said:
is it possible to assignt the exe not to long send button but to windows start button (u know that one in the middle in htc leo-next to home button)
tnx in advance.
Click to expand...
Click to collapse
You'll need to look at other software for that. Try AEButtons. It's not something I use myself, but I believe it will do what you want.
tnx for the fast replay...actually i started to use that toggle and it works fine with long press key.
eve bsb tweek cant rotate application screen on LEO but that toggle does it.
tnx
karaern said:
tnx for the fast replay...actually i started to use that toggle and it works fine with long press key.
eve bsb tweek cant rotate application screen on LEO but that toggle does it.
tnx
Click to expand...
Click to collapse
Glad it's helped mate.
Version 2 will be coming soon, with a settings screen where you can select an orientation, rather than having 3 different downloads.
Thank you vry much.
thanks man!!
Thanks
Many thanks for this, a very useful app
wacky.banana said:
First thing that comes to mind is why did you not combine these into one programme so one can have the option to go left, right or upside down without having to install 3 separate apps?
Click to expand...
Click to collapse
I never liked it the way it was, so I've done some work to give you a UI so you can select a rotation style for the application.
Hope this is better for you
johncmolyneux said:
I never liked it the way it was, so I've done some work to give you a UI so you can select a rotation style for the application.
Hope this is better for you
Click to expand...
Click to collapse
John,
In the language of the streets, "yo da man!"
Just downloaded and will give it a try in a minute. Sounds like just what the doctor ordered.
Cheers again.
WB
PS: Does this mean that our request has given you a chance to hone your UI skills then (lol)?
wacky.banana said:
Does this mean that our request has given you a chance to hone your UI skills then (lol)?
Click to expand...
Click to collapse
Heh - They're far from honed! If it were a windows (PC) app I was building, I'd have no problems. I'm pretty nifty around windows on a PC, but mobile dev is pretty new to me, so I'm just picking it up as I go along. It's always good to find someone asking for something that makes me think "I could do that!"
Cheers for the comments mate - hope you like the new version
Just perfect on my Touch Diamond!!!! Thanks
Towserspvm2000 said:
Just perfect on my Touch Diamond!!!! Thanks
Click to expand...
Click to collapse
Thanks for the comment mate - nice to know it's working well on a different resolution.

[Q] camera app hack

Hello, I just found this:
http://forum.xda-developers.com/showthread.php?t=1149845
which comes from this:
http://forum.xda-developers.com/showthread.php?t=980835
And I wonder if would it be possible to implement something like this on our beloved optimus one?, since it would be really cool to use volume or power buttons to shoot the camera, or maybe it could be the search button IDK, but any of theese would be nicer and more comfortable than tapping the onscreen button to shoot.
Of course I'm just a basic user and not a developer so I have no clue how hard would it be to do it.
Well, if you are a developer and you would contribute to our community with a mod like this, THANK YOU!
I've mentioned it on another topic, way back, many months ago...
Suggested that the key that HAS to be used for camera, is search button !!
By far the most practical way!
No developers found since then....
;S that's a shame, maybe it is not possible or developers don't read general forum... at least they could reply with a "there's no way to do that" or something
And yes, search button would be the best option
morx said:
I've mentioned it on another topic, way back, many months ago...
Suggested that the key that HAS to be used for camera, is search button !!
By far the most practical way!
No developers found since then....
Click to expand...
Click to collapse
If you want the search key to function like the camera button here's what I did.
1. CM7 Settings edit search key to open Camera.
2. In Camera press your menu settings and go advance.
3. Press Use Settings Button for camera.
and what about froyo ?
the volume buttons are too ahrd. even if this is implemented taking pictures will not be easy and there will be alot of blur.
Feeshie said:
If you want the search key to function like the camera button here's what I did.
1. CM7 Settings edit search key to open Camera.
2. In Camera press your menu settings and go advance.
3. Press Use Settings Button for camera.
Click to expand...
Click to collapse
I am using nessy.hypnos which is android 2.2.2 custom rom, not cm7 so there is no way for me to do what you suggest, anyway thanks for your reply.
Any other ideas you guys? I know lg optimus one xda developers forum community has great coders and developers and everything we need to see this implemented is some of them to get interested in doing it.
Still waiting...
Sent from my lg optimus one
nikhil4186 said:
the volume buttons are too ahrd. even if this is implemented taking pictures will not be easy and there will be alot of blur.
Click to expand...
Click to collapse
Even the volume keys would be more comfy that pressing and releasing the onscreen button, but as it is stated before the best option is the search button.
Click photo, click photo
Sent from my lg optimus one

It's there any way to retask the search button?

I never use the search soft button on the 717. Is there any way to reuse it to launch an application or something else?
written in your mud with my stick.
On another galaxy phone there was an app that let you do anything with any button. I made the search button put the phone to sleep.
Don't some of the newer roms allow for it? I swear mine has been the flashlight button ...at least on the lock screen. Unless my decaying brain is just messing with me.
Sent from my Big Ass Outlaw Phone
It used to work fine for me with this:
http://forum.xda-developers.com/showthread.php?p=22918572&highlight=keylayout#post22918572
I would swap my menu and search button for ease of use.
nutpants said:
I never use the search soft button on the 717. Is there any way to reuse it to launch an application or something else?
written in your mud with my stick.
Click to expand...
Click to collapse
if you hold the button down at least google voice search should launch. Maybe a couple other app options.
Btw, deleting voice_talk_q1.apk from system/app on JB will enable google voice search if you long press search. Rather then the samsung svoice only.
jpeg42 said:
It used to work fine for me with this:
http://forum.xda-developers.com/showthread.php?p=22918572&highlight=keylayout#post22918572
I would swap my menu and search button for ease of use.
Click to expand...
Click to collapse
I don't think this works with jelly bean, but maybe some one can figure it out.
written in your mud with my stick.

[Q] Enabling lollipop nav keys?

In the past on kitkat I used a build.prop edit to enable the nav keys on my note 3. It worked fine and I used rom toolbox's build.prop editor to do so. Now however I'm on lollipop and I'm rooted but I'm not sure if that will work.
The reason I'm asking here instead of just tying it out is because I don't have a backup to revert to and I've seen some conflicting answers while googling this. So an anyone confirm that adding "qemu.hw.mainkeys=0" will still work?
-thank you
Make a back up of your build.prop.
Like this
Copy the build.prop and paste it in the same system folder and replace the name.
/system/build.proporiginal
Add what you need to and reboot... if it dont work you can use twrp file manager to delete the build.prop and rename the original.
Thank you. I'll uh try later. I found an alternative in the meanwhile that works great. But first I need to get a custom recovery.
I have Lightning Launcher settings programed to
Menu key long press-open Phone
Back key long press-open Camera
ttkyles said:
I have Lightning Launcher settings programed to
Menu key long press-open Phone
Back key long press-open Camera
Click to expand...
Click to collapse
Would that work in any app?
yup sure does ...
on home screen
menu and back long press goes to specific app. ..
lightning launcher doesn't get much press..But if you take the time to learn its configuration endless possibilities. ...you'll find its the most customizable launcher out.
I show my iPhone phanboy co workers...That i can launch 24 different apps...with a single swipe gesture from my single home screen set up LL.
screenshot
ttkyles said:
yup sure does ...
at anytime or any app
menu and back long press goes to specific app. ..
lightning launcher doesn't get much press..But if you take the time to learn its configuration endless possibilities. ...you'll find its the most customizable launcher out.
Click to expand...
Click to collapse
Well i checked it out. i didnt see a app switcher setting for the menu key.
Also what custom recovery are some of you guys using?
im using twrp 2.8.6.1
Build.prop edit worked for me
evilvoice said:
Build.prop edit worked for me
Click to expand...
Click to collapse
Cool. Great to know. Do you have an screenshots?
With that string added to build.prop, it breaks screenshot (even palm motion). If they are important, I would find another way to take screenshots or wait for xposed.
I can tell you what the buttons look like and what they do, but that's it.
The first button is a backwards "Play" button and it is the same as "Back" but long pressing it does nothing.
The second looks like an "o" centered vertically and horizontally and is the "home" button. Long pressing brought up options for me of Google search, Tasker, or Pressy.
The third button looks like "Stop" from a music player and is the app switcher (recent apps). No long press.
The icons are white and the bar is black
I searched for a way to edit their function but couldn't find anything that didn't require xposed or Softkeyz app.
evilvoice said:
With that string added to build.prop, it breaks screenshot (even palm motion). If they are important, I would find another way to take screenshots or wait for xposed.
I can tell you what the buttons look like and what they do, but that's it.
The first button is a backwards "Play" button and it is the same as "Back" but long pressing it does nothing.
The second looks like an "o" centered vertically and horizontally and is the "home" button. Long pressing brought up options for me of Google search, Tasker, or Pressy.
The third button looks like "Stop" from a music player and is the app switcher (recent apps). No long press.
The icons are white and the bar is black
I searched for a way to edit their function but couldn't find anything that didn't require xposed or Softkeyz app.
Click to expand...
Click to collapse
Yeah i tried it just know and its a bit more messed up than it was in kitkat. Stock apps look strange etc. Well thank you for being the first to test for me.

Remap App Switch To Menu

So ive been search around for a while now on how to fix this. And to anyone that chimes in and says why do you need the menu button obviously you don't use older apps, the new touch button on the screen is a huge annoyance especially since i've used my phones this way since my first S1. Regardless this is how i want it and so do many other people.
Currently this is only for a rooted phone
I have figured out how to remap the left soft key from the App Switcher/Multi window over to the old style menu key. Instructions for that can be found here
But now i don't have any way of switching to my currently open apps, after remapping the left key, the longpress now takes you to search. and long pressing on the home button also takes you to another variation of the search (both i dont use nor want). I want to be able to remap my left softkey on longpress to open up currently open apps (APP_SWITCH) and it would be nice if long pressing on Home could open the Task Manager as it did on my S3.
As far as i can tell editing of the longpress function is done via a Policy edit. Read about that HERE
Keep in mind that post is from 2014 so i have no idea if the internal code is still being handled the same way, i couldn't even find that file on my S6, but i did find a file called SEPOLICY in my root folder using ROOT EXPLORER. Do any of you know more about this and how I can go about changing this? im sure its a code level adjustment. Thanks
Long-press home button can be controlled without root easily.
Check out this app:
https://play.google.com/store/apps/details?id=com.spada.nowgesturetweaksfree
I use the long-press home to get to my last used app.
I wonder if I can remap my buttons to launch any other apps.. Will have to tinker around a bit.
Ewww.
@rbiter said:
Ewww.
Click to expand...
Click to collapse
if you have nothing useful to bring to this discussion then please get out
j1635 said:
if you have nothing useful to bring to this discussion then please get out
Click to expand...
Click to collapse
very useful. menu for navigation is long long outdate. software nave or 3 dots is the customary way to go. adding a secondary menu button is redudant and unnecessary. my little ewww comment brought a lot to the table. you tryingt to call me out on it is less useful.
@rbiter said:
very useful. menu for navigation is long long outdate. software nave or 3 dots is the customary way to go. adding a secondary menu button is redudant and unnecessary. my little ewww comment brought a lot to the table. you tryingt to call me out on it is less useful.
Click to expand...
Click to collapse
lol f off
If you guys use Dropbox, how do you get to the menu with SORT, etc.. without a menu key. This is making me crazy. I'm using nova launcher and there is no floating menu key. ????
The problem is if not every developer uses it, it's inconsistent.
It often helps if the options etc. In apps are on the top, so you don't have to fidget with your phone to reach the top or use two hands.
The menu button on every app is positioned somewhere else, so I find the op wanting it justified.
All in one gestures let's you remap every key, for some odd reason on my s4 I can remap the menu key, but on the S6 for some odd reason the option of the menu key has vanished in the same app:what:
Sent from my SM-G925F using XDA Free mobile app
Hi pal. Hope it helps. Make 254 button remap, then install nova launcher, in tab gestures select long press menu and then recent app. Profit! Now once tapped you have menu button, long pressed - recent apps.
So, i made it, i use it. It works.
j1635 said:
So ive been search around for a while now on how to fix this. And to anyone that chimes in and says why do you need the menu button obviously you don't use older apps, the new touch button on the screen is a huge annoyance especially since i've used my phones this way since my first S1. Regardless this is how i want it and so do many other people.
Currently this is only for a rooted phone
I have figured out how to remap the left soft key from the App Switcher/Multi window over to the old style menu key. Instructions for that can be found here
But now i don't have any way of switching to my currently open apps, after remapping the left key, the longpress now takes you to search. and long pressing on the home button also takes you to another variation of the search (both i dont use nor want). I want to be able to remap my left softkey on longpress to open up currently open apps (APP_SWITCH) and it would be nice if long pressing on Home could open the Task Manager as it did on my S3.
As far as i can tell editing of the longpress function is done via a Policy edit. Read about that HERE
Keep in mind that post is from 2014 so i have no idea if the internal code is still being handled the same way, i couldn't even find that file on my S6, but i did find a file called SEPOLICY in my root folder using ROOT EXPLORER. Do any of you know more about this and how I can go about changing this? im sure its a code level adjustment. Thanks
Click to expand...
Click to collapse
but if i want to change the long press from split screen to menu? how do i find that? will it work the same?
Delphinus3 said:
but if i want to change the long press from split screen to menu? how do i find that? will it work the same?
Click to expand...
Click to collapse
look at my Rom.. it needs changes in framework to get that working..and it is working
Alex-V said:
look at my Rom.. it needs changes in framework to get that working..and it is working
Click to expand...
Click to collapse
i saw your page.. there are 2 roms i seem to like, yours and EMPORIA but idk who is best. lol i haven't even bought the phone yet but yea the menu button will be missed for me. what i want in a rom? if its based on stock i like it as close to stock as possible (no bloatware), call recording, if there's an option for increasing camera performance thats awesome, better battery life than stock original. that's it basically. and if i only want to root, how can i change menu longpress? i hered theres like a toolbox root app for galaxy devices...
Delphinus3 said:
i saw your page.. there are 2 roms i seem to like, yours and EMPORIA but idk who is best. lol i haven't even bought the phone yet but yea the menu button will be missed for me. what i want in a rom? if its based on stock i like it as close to stock as possible (no bloatware), call recording, if there's an option for increasing camera performance thats awesome, better battery life than stock original. that's it basically. and if i only want to root, how can i change menu longpress? i hered theres like a toolbox root app for galaxy devices...
Click to expand...
Click to collapse
it's only my personal rom..means it's not made for making any profit or let's say thousands of users..
i think you must try it yourself for one or two days and compare..my is very clean

Categories

Resources