Backkey behavior (minimize,close) - HD2 Android Themes and Apps

hi, i have had an app where you can set different hardkey behaviors, like minimize current app by long press and close by short press.
searching for that the whole day..
does anybody know what i mean?

fabee said:
hi, i have had an app where you can set different hardkey behaviors, like minimize current app by long press and close by short press.
searching for that the whole day..
does anybody know what i mean?
Click to expand...
Click to collapse
If you have android 2.2 or greater it's a bad idea to kill apps/services, very bad. Android has improved resource management starting with 2.1 or 2.2, you don't need to worry about it.
I suggest you let android do it's thing when you press back button.

windroidHD said:
If you have android 2.2 or greater it's a bad idea to kill apps/services, very bad. Android has improved resource management starting with 2.1 or 2.2, you don't need to worry about it.
I suggest you let android do it's thing when you press back button.
Click to expand...
Click to collapse
Wow, where did he mention kill?
Sent from my HTC HD2 using XDA Premium App

Related

How to switch between task?

As above, is it possible to do that in HTC Dream? Mine is rooted and flashed to 4.2.3.
What I mean is that, when I am using this application (ABC), then I want to open another application (XYZ). After using XYZ, can I swtich to ABC with the state still being there? Meaning it will not open like a new application, but go directly to the screen that I was previously at?
Hold the home button to see running tasks.. then pick one.
bryant_16 said:
As above, is it possible to do that in HTC Dream? Mine is rooted and flashed to 4.2.3.
What I mean is that, when I am using this application (ABC), then I want to open another application (XYZ). After using XYZ, can I swtich to ABC with the state still being there? Meaning it will not open like a new application, but go directly to the screen that I was previously at?
Click to expand...
Click to collapse
it will only go back if the phone has enough ram to keep it stored, else android will kill the process
goldenarmZ, if i'm not wrong when holding down the 'Home' button, is actually opening up recent opened applications.
B-man007, means there is no way to switch around tasks?
bryant_16 said:
goldenarmZ, if i'm not wrong when holding down the 'Home' button, is actually opening up recent opened applications.
Click to expand...
Click to collapse
If they're still in memory, it will switch back to the same instance you were using, if not it'll launch a new one.
How to make one application stay in memory?
Advanced Task Manager can stop processes from getting killed.. It's in the market.
Yeah, I have that application too but how you make it not being killed?
Is there a faster way? Holding home just seems like it takes forever.
tdusen said:
Is there a faster way? Holding home just seems like it takes forever.
Click to expand...
Click to collapse
holding home takes literally 2 seconds for your apps to pop up. that doesn't seem like forever to me, lol
tazz9690 said:
holding home takes literally 2 seconds for your apps to pop up. that doesn't seem like forever to me, lol
Click to expand...
Click to collapse
exactly its faster than alt-tab

Task Switcher on Camera

I got the built-in Android App Switcher working.... use the camera button.
You need the new kernel/NBH below -- this is based on dzo's 4/8 kernel
Camera button.
< 0.5 second press = BACK
0.5 - ~1.5 second press = HOME
> 1.5 second press = APP SWITCHER (pops up after you hold it long enough)
For home, you just have to do a leap-of-faith. If you hold it too short, you'll go back. If you hold it too long, the app switcher will come up. I reduced the time you need to hold it to 0.5 seconds. It was 1 second before.
Useful tip: You can use the App Switcher on the home screen.
Please don't ask to change the task switcher button! The task switcher is mapped to the HOME button by Android itself. I only fixed the kernel to enable Android to recognize the button push properly. To actually move the task switcher to a different button, you need to rebuild Android.
What I mean: http://developer.android.com/images/system-architecture.jpg
I fixed the red part. The stuff that allows you to change the App Switcher button is in the blue part (Application Framework).
Myn's build (should work on any build):
NBH files (both donut and eclair):
http://dl.dropbox.com/u/58383/android/ROMUpdateUtility.7z
Need 7zip to extract (makes file size smaller).
jnadke said:
I got the built-in Android App Switcher working.... use the camera button.
You need the new kernel below -- this is based on dzo's 4/8 kernel
Camera button.
< 0.5 second press = BACK
0.5 - ~1.5 second press = HOME
> 1.5 second press = APP SWITCHER (pops up after you hold it long enough)
For home, you just have to do a leap-of-faith. If you hold it too short, you'll go back. If you hold it too long, the app switcher will come up. I reduced the time you need to hold it to 0.5 seconds.
Myn's build (should work on any build):
NBH files (both donut and eclair):
http://dl.dropbox.com/u/58383/android/ROMUpdateUtility.7z
Need 7zip to extract (makes file size smaller).
Click to expand...
Click to collapse
very nice man. People have been wanting this to work for a long long time. We all appreciate it
Anyone know if this works on cupcake? I'm using vilord's tattoo build.
kiwilime said:
Anyone know if this works on cupcake? I'm using vilord's tattoo build.
Click to expand...
Click to collapse
If you're using NoMoRootfs (i.e. androidinstall.tar) then you can use this kernel.
I thought Cupcake has an App Switcher. Not totally sure.
incubus26jc said:
very nice man. People have been wanting this to work for a long long time. We all appreciate it
Click to expand...
Click to collapse
Np. Took me less than 10 minutes to fix it, and a lot longer to get the NBH build environment up (didn't realize tinboot had a norootfs branch......).
oh man this is nice!
thanks alot!!
Flashing now... Seems to work great... Doesn't allow you to switch to old apps... which I'm sure is stock functionality... for example, I have JuiceDefender launcher on startup and I couldn't access it via the task switcher, I had to go into OSMonitor, click on it, then switch to it that way...
fldash said:
Flashing now... Seems to work great... Doesn't allow you to switch to old apps... which I'm sure is stock functionality... for example, I have JuiceDefender launcher on startup and I couldn't access it via the task switcher, I had to go into OSMonitor, click on it, then switch to it that way...
Click to expand...
Click to collapse
It will only let you switch between the last 6 applications you used. It won't show them until you use them (which is why I had 2).
jnadke said:
Np. Took me less than 10 minutes to fix it, and a lot longer to get the NBH build environment up (didn't realize tinboot had a norootfs branch......).
Click to expand...
Click to collapse
Lol, yeah - that caught me too when I was messing around with nbhs a while back. Thanks for making the changes. This is a welcome (re)addition.
If i do a backup from the bootscreen options list, then reflash with this version, Can I to a restore so that I do not have to totally start from scratch?
Gersonian said:
If i do a backup from the bootscreen options list, then reflash with this version, Can I to a restore so that I do not have to totally start from scratch?
Click to expand...
Click to collapse
just flash nbh files whenever
they dont affect your data
inertone said:
just flash nbh files whenever
they dont affect your data
Click to expand...
Click to collapse
Never mind... figured it out. A little searching never hurts.
This is freakin sweet. Thanks, for making this happen!
Edit: Nevermind, apparently it just needed a reboot. Working fine now.
Although, something was preventing it from sleeping. I don't know what. I knew it wasn't sleeping because even after 30 seconds, any button would wake it up (and Spare Parts reported the last time since it slept was 8 hours).
Original:
Apparently the kernel I built isn't sleeping properly.
I don't know why, feel free to go back to dzo's older 4/8 build.
I commited the changes I made. Dzo can recompile when he gets back and see if the sleeping problem is resolved.
My battery ran down to 33% in 8 hours. Not sleeping at all.
This is just opening up the recent apps screen, isn't there an actual task switcher?
mrono said:
This is just opening up the recent apps screen, isn't there an actual task switcher?
Click to expand...
Click to collapse
It's the Recent Applications screen, but it actually does switch tasks. The other applications open up in the state you left them (unless they were garbage collected).
Also, for example, if you have Messaging and Opera open, then task switch from Opera to Messaging, when you use the back key it will back to Opera rather than the home screen.
works well. Testing right now
I have not had any sleeing issues. Working great.
works great for me too. love it. phone sleeps fine (orange slow LED, any button does not wake). thx jnadke
tatnai said:
works great for me too. love it. phone sleeps fine (orange slow LED, any button does not wake). thx jnadke
Click to expand...
Click to collapse
yeah man thanks again!
this was greatly needed!
plus i got used to the timing of the button
i count in my head..."1 mississippi...home!" lol

[Q] Phone Taking Screenshots On It's Own!!

I have a strange issue with my Samsung Galaxy S. While fiddling around with the phone, browsing or just listening to music, I sometimes hit an unknown key combination and the phone magically takes screenshot of the present screen and saves it inside a folder "Screen Captures" inside the gallery. Now, no screen capture programs are currently running so how does this happen?
I have the program ShootMe installed which needs root access to take screenshots. And I'm perfectly sure I quit it everytime I start it. Plus, I have no idea what key combination invokes the hidden screen-shot procedure.
I had a look at the processes running in the background and found this system process running:
com.sec.android.app.screencapture
What is this process? To my understanding, I think this is the only thing responsible for taking those myserious automatic screenshots. But why is it running? Is it ShootMe app? (I'm sure I have quit that app). Or what is it? Some malicious app or what?
Menu + Return does a screenshot. It is standard function for SGS since Froyo.
This belongs in Q&A, not here.
dbchoong said:
Menu + Return does a screenshot. It is standard function for SGS since Froyo.
Click to expand...
Click to collapse
Oh! Never knew that. Thanks!
dbchoong said:
This belongs in Q&A, not here.
Click to expand...
Click to collapse
Sorry about that.

Tips for coping with an un-rooted device

There are a lot of threads here and in the VZW forum about how terrible this device is, etc, without root. I'm a former flash-a-holic and my last several devices have all been Samsung on stock, albeit rooted, firmware. those of us preferring touchwiz have our reasons, and those who prefer aosp have theirs, but this isn't a "why we can't have aosp" thread, this is about making lemonade with what we have.
so, my reasons for wanting root, and how I worked around them:
1. ad blocking. I LOVE adaway, its seriously the first app I'd install on a new device after rooting. without root, give adblock plus a try. you can turn off the status bar notifications in the app and by ticking the box in the app manager.
its simple enough to disable apps on WiFi, just input the proxy host name and port and you're done. I hadn't ever found a clear and concise instruction on how to do this with mobile data, so here it is- create a NEW APN and copy all of the info from the stock APN, and add the proxy host name and port. done, you now have ad blocking on WiFi and mobile data, without root, and without persistent notifications.
2. de-bloating. first, the s5 has less bloat than the s3 or s4, but its still there. it is INCREADIBLY easy to disable or uninstall on this device. go to the app drawer and press the settings icon (or long press the app switcher button) and select uninstall/disable apps. if its ATT or Samsung, and you don't want it, odds are you can either uninstall or disable it. just make sure that in Samsung Apps you disable automatic updates over WiFi. you can also hide them.
myth busting time: IF you were rooted, and IF you manually removed bloat apps, you do NOT gain ANY additional usable space in device storage.
3. tether bypass. there are multiple threads here on how to do this. I have a 10gb plan so its a non issue here.
4. Writing to extSDcard. most built in apps like the browser, email, and camera will save to the ext SD card. so will my files, which is actually a LOT better than on the s3 or s4.
5. removing bloat bookmarks from the stock browser. I prefer the stock browser over chrome, call me crazy. I also don't like the 4 pre-loaded bookmarks being in my list. I saw a tip here to just create a folder called My Bookmarks or whatever you like and put your bookmarks there. the bloat is still there but its not staring you in the face.
so what else have you guys been doing to get functionality that was easy and convenient with root, but still attainable without?
Russ77 said:
so what else have you guys been doing to get functionality that was easy and convenient with root, but still attainable without?
Click to expand...
Click to collapse
Speed- I find that a lot of people nag about speed, my phone is fluid in all ways. Three factors play into this, using the TW launcher, animation speed, one last tricky one-- S-Voice has a delay on the home button waiting for the possible hook in for user prompting it. My standpoint is you can get from a TW rom the kind of speed or more that you can with a rom somebody else pre-tweaked for you.
Remedies below.
1. Get Nova Launcher (you can look into others if you like, if you want an experienced users perspective on speed, use Nova it flies)
2. Enable Developer Options(click About Device, click build number until it says Dev mode is enabled), Turn OFF animations for Transition window animation scale, transition animation scale and animator duration scale.
3. Open up S Voice (through the double-tap shortcut or in the app drawer). Tap the menu button in the top right corner (three dots) and find the "Open via home key" option under "Wake-up." Disable for slightly faster home button response.
Some people may find this abrupt transition between applications off putting at first but once you give it an hour the phone is flying so fast I could never go back. Enjoy!
As mentioned above:
Nova Launcher
Transitions at .5 or OFF
De-bloating (see this thread)
And - tasker, tasker, tasker!
My tip.. simple but I'm a customize nerd.
iFont available for free from the Play store allows you to add hundreds of fonts to your phone right from the app, and is compatible with the font selection from settings - display.You can also load fonts from the internet or your computer and use that as your default font.
The one lag, I still can't stand... despite all the animations being off is the lag between camera and gallery... like I take a photo, click the little image to view it and it sits there for at least 15 seconds before the gallery opens up. Anyone else have this issue?? I'm so used to CM based roms and still try to swipe to view the gallery LOL
rachelm920 said:
My tip.. simple but I'm a customize nerd.
The one lag, I still can't stand... despite all the animations being off is the lag between camera and gallery... like I take a photo, click the little image to view it and it sits there for at least 15 seconds before the gallery opens up. Anyone else have this issue?? I'm so used to CM based roms and still try to swipe to view the gallery LOL
Click to expand...
Click to collapse
Sent from my SAMSUNG-SM-G900A using XDA Free mobile app
This could be due to your SD card. If you are saving pics to external SD and your card is a lower class it will read and write data in a longer time frame. If you are using internal memory and not the SD card slot then I'm not sure. Backup everything and try a factory reset. I personally don't have an SD card, I don't see the need without root. Also it takes about 3 seconds for me to do what takes you 15. That's why I think an SD might be the Culprit here
There is 1 thing you can not do without root that is needed for me. I own a Pioneer Appradio and use ARUnchained which requires root. If you don't know what it is then look it up. It basically mirrors your phone and lets you use touch on Pioneers Appradio. I used this with my GS3 and if I would have known we wouldn't have root after this long I would have kept it and not bought the GS5. There is no getting around root for this. Pioneer's stock app has restrictions and doesn't let you mirror everything where as ARUnchained solves this problem.
I would like to find a way to save stuff from Dropbox to the external memory.
Sent from my GS5
natefish said:
I would like to find a way to save stuff from Dropbox to the external memory. Sent from my GS5
Click to expand...
Click to collapse
Here is all you need.https://play.google.com/store/apps/details?id=com.ttxapps.dropsync
I use the Pro, worth every penny.
abovenbeyond said:
Here is all you need. I use the Pro, worth every penny.
Click to expand...
Click to collapse
Thanks, but was there supposed to be a link?
Sent from my GS5
natefish said:
Thanks, but was there supposed to be a link?
Sent from my GS5
Click to expand...
Click to collapse
Fixed
Russ77 said:
add the proxy host name and port.
Click to expand...
Click to collapse
Bit of a newb here.. but what exactly do I put in these spots? Tried this and kept saying no internet and switching back over. Any help would be appreciated.
Sent from my SAMSUNG-SM-G900A using Tapatalk
fsupartyboy850 said:
Bit of a newb here.. but what exactly do I put in these spots? Tried this and kept saying no internet and switching back over. Any help would be appreciated.
Sent from my SAMSUNG-SM-G900A using Tapatalk
Click to expand...
Click to collapse
proxy host is "localhost" without quotes....and proxy port is 2020....that should do it :good:
Anyone got a working "volume rocker skip"? I've seen the double press ones that work as a service..seems wonky.
--
Stephen
abovenbeyond said:
Here is all you need.https://play.google.com/store/apps/details?id=com.ttxapps.dropsync
I use the Pro, worth every penny.
Click to expand...
Click to collapse
Thanks for the tip - I was using "Sweet Home!" app to sync my camera photos with my laptop but after multiple years without issue, all of the sudden I'm getting an invalid syntax error. Tried getting help from the developers but got no response. Dropbox it is!
fsupartyboy850 said:
Bit of a newb here.. but what exactly do I put in these spots? Tried this and kept saying no internet and switching back over. Any help would be appreciated.
Sent from my SAMSUNG-SM-G900A using Tapatalk
Click to expand...
Click to collapse
RoguePC said:
proxy host is "localhost" without quotes....and proxy port is 2020....that should do it :good:
Click to expand...
Click to collapse
RoguePC's got it covered.
my only real gripe with adblock + is it only blocks internet traffic, not in-app ads. still better than nothing though.
Anyone know how to remap buttons ? I highly doubt there is a way without root but not having a menu button is killing me
Add45 said:
Anyone know how to remap buttons ? I highly doubt there is a way without root but not having a menu button is killing me
Click to expand...
Click to collapse
The menu button function is still there ... just long-press the recent apps button. If you've got a specific app that doesn't display the 3-dots menu somewhere on the screen, you might want to reach out to the developer. That's part of modern Android UX standards. I recently reached out to Untappd and they updated their app to include it pretty quickly.
Wallcrawler77 said:
The menu button function is still there ... just long-press the recent apps button. If you've got a specific app that doesn't display the 3-dots menu somewhere on the screen, you might want to reach out to the developer. That's part of modern Android UX standards. I recently reached out to Untappd and they updated their app to include it pretty quickly.
Click to expand...
Click to collapse
Thanks, but what I meant is that I do not like having to hold down the button to pull up tthe menu. I much rather prefer having the recent apps by holding down home.
Sent from my SAMSUNG-SM-G900A using Tapatalk
Add45 said:
Thanks, but what I meant is that I do not like having to hold down the button to pull up tthe menu. I much rather prefer having the recent apps by holding down home.
Click to expand...
Click to collapse
Ah, gotcha. Unfortunately, short of root reassigning buttons, I don't think that's a desire that will see much traction in the future now that the UX standards require on-screen menus and more devices are coming out without any soft buttons at all. When you get down to it though, you're either tapping the bottom-left of your device or you're tapping the three dots on the screen.
Awesome app called quick click,let's you map your volume buttons for flashlight and a lot of others actions,just throwing it out there missed using xposed,mods with that.
SENT FROM DJMOUSE'S SM-G900A

[APK][LG-D415] LG-D415 QuickButton Editor

This little utility application is designed for assigning a custom action to the QuickButton on the LG Optimus L90 LG-D415. This application is only for LG-D415 devices.
After flashing a custom ROM we basically have a useless button on our device. In my CM11 ROM, selfless plug LOL, I assign a WAKE action to the QuickButton which, when pressed, will wake the device. So the button's not completely worthless. This application was obviously written for LG-D415 users running custom ROMs but it may, as in maybe, work on stock as well.
Anyway in response to a thread that was created recently and also after having thought about it previously, I decided to write this app.
The application is not signed and does NOT have any kind of advertisements. The only requirement is ROOT privileges as it must write to a system file. You will be prompted for root confirmation when the app is launched for the first time, this also depending on how your superuser is set up.
This application modifies, actually replaces, /system/usr/keylayout/gpio-keys.kl. The application will back up your original gpio-keys.kl only the first time you Apply a custom action. That way you still have your original file in case of error. The back up is saved in the same folder as "gpio-keys.kl.bk".
Have fun!!!
I used it. It works. The button now bring up my camera. D415
shinobisoft said:
This little utility application is designed for assigning a custom action to the QuickButton on the LG Optimus L90 LG-D415. This application is only for LG-D415 devices.
After flashing a custom ROM we basically have a useless button on our device. In my CM11 ROM, selfless plug LOL, I assign a WAKE action to the QuickButton which, when pressed, will wake the device. So the button's not completely worthless. This application was obviously written for LG-D415 users running custom ROMs but it may, as in maybe, work on stock as well.
Anyway in response to a thread that was created recently and also after having thought about it previously, I decided to write this app.
The application is not signed and does NOT have any kind of advertisements. The only requirement is ROOT privileges as it must write to a system file. You will be prompted for root confirmation when the app is launched for the first time, this also depending on how your superuser is set up.
This application modifies, actually replaces, /system/usr/keylayout/gpio-keys.kl. The application will back up your original gpio-keys.kl only the first time you Apply a custom action. That way you still have your original file in case of error. The back up is saved in the same folder as "gpio-keys.kl.bk".
Have fun!!!
Click to expand...
Click to collapse
Is it possible to change it to a custom app?
blondgod said:
Is it possible to change it to a custom app?
Click to expand...
Click to collapse
No, I dont think so, mainly because I'm having to use key ids that are pre-defined. I will dig in to it a little deeper tho.
Sent from my LG-D415 using Tapatalk
After some more digging I've determined that there is no way to define a custom application to be called by the QuickButton. At the moment, the only way I can think of to possibly do this is to have a background service running to "listen" for the QuickButton presses and then launch the appropriate activity.
In reality, at the moment in any case, all this app does it trick the system in to believing that the QuickButton is actually the button whose action we assign to it belongs to.
I also found two more actions I missed, "Search" && "Bookmark". Haven't tested "Bookmark" yet so I'm not sure what app it opens. LOL. Will know shortly tho
I've also considered adding "Home" and "Menu" to the list as well. Thoughts?
I like the ideas, I just really liked to set the button to open up my messages.
I really like the app though. Plain and simple.
Sent from my LG-D415 using Tapatalk
blondgod said:
I like the ideas, I just really liked to set the button to open up my messages.
I really like the app though. Plain and simple.
Sent from my LG-D415 using Tapatalk
Click to expand...
Click to collapse
If I find a way, I'll let you know
As for the "Search" and "Bookmark" I mentioned earlier, ehhh, no go. They don't do anything.
OP updated with new version - 0.1.1
[ CHANGES ]
- Removed redundant code
- Significant improvement in speed for writing changes to gpio-keys.kl.
- Application is now setting permissions, ( 0644 ), for gpio-keys.kl as well.
shinobisoft said:
After some more digging I've determined that there is no way to define a custom application to be called by the QuickButton. At the moment, the only way I can think of to possibly do this is to have a background service running to "listen" for the QuickButton presses and then launch the appropriate activity.
In reality, at the moment in any case, all this app does it trick the system in to believing that the QuickButton is actually the button whose action we assign to it belongs to.
I also found two more actions I missed, "Search" && "Bookmark". Haven't tested "Bookmark" yet so I'm not sure what app it opens. LOL. Will know shortly tho
I've also considered adding "Home" and "Menu" to the list as well. Thoughts?
Click to expand...
Click to collapse
So i can choose any app on my stock rom
xantanion said:
So i can choose any app on my stock rom
Click to expand...
Click to collapse
Running stock, there is really no need for my application. As much as I hate to admit it, LOL. At this point in time, no, the only choices are they default apps I have already listed in the application.
I believe in order to implement the ability to launch ANY activity ( APP ), I will need to create a background service to listen for QuickButton presses and then act accordingly. This is still theoretical, but from my programming experience, seems to be the only answer. Granted, I'm a Windows programmer, so there may be something I'm missing or overlooking too. LOL.
Oops... Sorry folks, I made a boo boo with my last uploaded version. There was still an entry for "Bookmark" in the radio button choices. "Bookmark" doesn't do anything. LOL.
New version added to the OP
I may have found a way to allow the QuickButton to open "ANY" application. I'm in the middle, well almost finished, of another project. Once I get a chance, I'll experiment with my latest findings and will let everyone know
Will this work on Lollipop? I'm assuming so but just wanted to make sure before I Install it. If it does, that would be awesome because this useless button is bothering me haha. Either way, great work man.
Suicide_Machine said:
Will this work on Lollipop? I'm assuming so but just wanted to make sure before I Install it. If it does, that would be awesome because this useless button is bothering me haha. Either way, great work man.
Click to expand...
Click to collapse
Sorry, afraid not. Key layouts change in 5.0 and I haven't had time to update the app.
How about making it a screenshot button as well?
LupusGallus said:
How about making it a screenshot button as well?
Click to expand...
Click to collapse
No promises, but I'll see what I can do.

Categories

Resources