[REQ] Camera hardware wake button - Nexus One Android Development

This is a request for any button (trackball would be ideal) to wake the phone, AND launch the camera application. Lets assume it will sleep again after x amount of time, just like normal.
Maybe this could be in cyanogenmod settings ?
Maybe this could be a combination, say TRACKBALLTRACKBALLTRACKBALL or something ?
thank you

ohgood said:
This is a request for any button (trackball would be ideal) to wake the phone, AND launch the camera application. Lets assume it will sleep again after x amount of time, just like normal.
Maybe this could be in cyanogenmod settings ?
Maybe this could be a combination, say TRACKBALLTRACKBALLTRACKBALL or something ?
thank you
Click to expand...
Click to collapse
I think it will be just as easy as
1. Trackball wake
2. Trackball unlock
3. Press camera shortcut
Just make sure the camera is on the home screen...

Just get Widget Locker. Trackball Wake > Camera.

overground said:
Just get Widget Locker. Trackball Wake > Camera.
Click to expand...
Click to collapse
i'm going to try this now. thanks to both of you. also, would it be possible to keep the phone 'locked' while doing this, so you could have a child/friend use it as a camera, but not have the phone and other applications accesible without entering the unlock pin/pattern ?
thanks again !

Like it! I would love this:
Short press - unlock or screen on
Keep pressed - unlock directly into camera
Sent from my Nexus One using XDA App

Related

Does anyone else want a lockscreen for their Archos?

Hey all. I always wondered why Archos didn't make a lockscreen (like most android phones have). I always liked to have some widgets and info on my old iPhone lockscreen so I could see basic info without having to unlock the device.
Has anyone come across a way to add a lockscreen to Gen8 devices? An option to turn on/off the lockscreen would be a nice addition by Archos.
I had used this basic method to lock my screen.
Settings --> Location & security --> Change screen lock
You can use Pattern or PIN to unlock screen.
If you need Slide to unlock, you can search "Unlock Screen" for apps in market.
jakkrith's method is great. or you could purchase widget locker from the Market:
https://market.android.com/details?id=com.teslacoilsw.widgetlocker
chemical1der said:
jakkrith's method is great. or you could purchase widget locker from the Market:
https://market.android.com/details?id=com.teslacoilsw.widgetlocker
Click to expand...
Click to collapse
Force Closes on A70S.
I think what Techngro means is a lockscreen which also shows some useful information like calendar, todo list, etc..without a need to unlock it.
Sent from my A70S using Tapatalk
I installed widgetlocker, but I got a problem now.
When I try to put out my screen (by pressing the power button)
The screen will turn black, as it has to, but then the slide bar will return.
I have to push the power button again to let the screen stay black.
Is there a setting I set wrong? Or is there a way to let the screen turn black and stay out at once? (until I push a button ofc)
Zinloos1 said:
I installed widgetlocker, but I got a problem now.
When I try to put out my screen (by pressing the power button)
The screen will turn black, as it has to, but then the slide bar will return.
I have to push the power button again to let the screen stay black.
Is there a setting I set wrong? Or is there a way to let the screen turn black and stay out at once? (until I push a button ofc)
Click to expand...
Click to collapse
Some folks have reported sleep issues with widget locker. you should check out the thread on XDA for possible solutions. i believe there is setting in WL to prevent it from coming back on:
http://forum.xda-developers.com/showthread.php?t=732986
I looked there, but couldn't really find it in the 680 comments.
Used the search function, but I don't think I use the right words..
Can you tell me where to look, or what words to look for?
bthoven said:
I think what Techngro means is a lockscreen which also shows some useful information like calendar, todo list, etc..without a need to unlock it.
Sent from my A70S using Tapatalk
Click to expand...
Click to collapse
Yes, that is what I was thinking about. I'll take a look at widget locker though.

Tap to unlock in galaxy s2

hi all, as the title tells is there a way to make it possible? a single tap, double tap or as per user choice, or touching specific area in the display to wake the screen.
the display does wakes from sleep mode when receiving mail,calls extra without touching the keys, so can the same mechanism be achieved to unlock the screen?
bala_gamer said:
hi all, as the title tells is there a way to make it possible? a single tap, double tap or as per user choice, or touching specific area in the display to wake the screen.
the display does wakes from sleep mode when receiving mail,calls extra without touching the keys, so can the same mechanism be achieved to unlock the screen?
Click to expand...
Click to collapse
as like as nokia done in symbian i think....
this is a feature that was on the iphone 4. i had it when i had that phone jailbroken. nice little feature it was. think it is possible just need a coder to make it happen. why not make a suggestion to jkay
Suarez7 said:
this is a feature that was on the iphone 4. i had it when i had that phone jailbroken. nice little feature it was. think it is possible just need a coder to make it happen. why not make a suggestion to jkay
Click to expand...
Click to collapse
i think it should be reported to some dev who develops lock screen app or modify aosp screens, anyway lets pm jkay and see what he suggests
any other idea guys?
bala_gamer said:
any other idea guys?
Click to expand...
Click to collapse
This thread may be a good start. It's an app that lets you re-map the double tap to launch a certain apk. If you somehow change that to the unlock command or create a very basic app that unlocks once open then it should work.
Hollow.Droid said:
This thread may be a good start. It's an app that lets you re-map the double tap to launch a certain apk. If you somehow change that to the unlock command or create a very basic app that unlocks once open then it should work.
Click to expand...
Click to collapse
i think we have to remap the wake event sent by home button or power button to the display unit, lets ask the app dev in your link and see if we can get something fruitful
according to me its a wierd feature..that requires tap to unlock......
always sliding is better nd stylish to use...........
tapping to unlock is a ****ty idea that all nokia symbian based phones exists......
so devs doesnt focussed on this .........
try widget locker or go locker, it provides as many as better nd good screenlocks than u said to make implement by devs.......
gnan10 said:
according to me its a wierd feature..that requires tap to unlock......
always sliding is better nd stylish to use...........
tapping to unlock is a ****ty idea that all nokia symbian based phones exists......
so devs doesnt focussed on this .........
try widget locker or go locker, it provides as many as better nd good screenlocks than u said to make implement by devs.......
Click to expand...
Click to collapse
Put it this way, how about waking the phone from sleep mode using tap instead of pressing power key or home key. Won't that be useful ?
Sent from my GT-I9100 using xda premium
bala_gamer said:
Put it this way, how about waking the phone from sleep mode using tap instead of pressing power key or home key. Won't that be useful ?
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
I think if that's the case (waking the phone by just tapping and not through the power button) buddy then the phone should be awake to recognize the tap causing battery drain and prevents the phone from going to deep sleep. On the other hand unlocking the phone by double tap might just be a good idea
Sent from my GT-I9100 using xda premium
I wonder what happened about this? Would really be useful, no progress eh?
Does anyone know if a rom which has options "tap to wake" or "tap to unlock" as in G2 ?
You need modifications in kernel in order to do this, and I doubt it would be battery efficient enough to make it work on this phone.
nerotNS said:
You need modifications in kernel in order to do this, and I doubt it would be battery efficient enough to make it work on this phone.
Click to expand...
Click to collapse
yes you are right.Some1 need to impliment on s2's kernel to make it work/

Best Apps and Games for Quattro: Reviews & Shares

Guys I think we all should help each other by sharing the best apps and games you've been using yourself and believe that will help other Quattro owner to enjoy the device to the fullest. Please do share them along with the benefits/fun you got using it.
Let me start a few from my end.
1. Smart Screen ON: This app has helped me alot to turn the backlight on without pressing the home button making it safer from early wear and tear. This is surely help you guys as well. :good:
2. Air-Call Accept: It a great app with very limited features, Turn it on. And when there a is a call swipe your hand over the phone or accept or reject the call or you may straight away put the phone close to your ears to answer the phone. (The best thing of it I like). Try it and you'll love it. :victory:
3. Lux Lite - Auto Brightness App: Again one of my favourite apps. You can select camera as an sensor for detecting light and it will auto adjust the screen brightness. Love the way it works. Read complete HOW TO use the app and you'll understand it more.
4. Photo Editor by Aviary: Quick and precise phone editor I've ever used. I use many others too but believe me this is real quick for our phone and have many options to use for editing photos. You can also add memes to the images .Try it.
5. Clean Master (Cleaner) - FREE: Again this is a great app that helps you maintain your phone better and make you stop complaining about its speed and lags and all. It is necessary to clean up the unnecessary cache files to make the phone work smoother. This app serves the purpose. :highfive:
Now, You cannot miss an app that everyone wants it first when they buy a phone. (Best Battery Saver)
According to me that app is Du Battery Saver free.
6. DU Battery Saver & Widgets: Haven't tried many other battery saver apps, but I will share the one that I'm very comfortable with and hope when you use, you'll be at ease too. This app does the work that is expected from it. The various Modes help alot in setting up the battery accordingly. There is not regret in using it since I bought my phone in early May 2013 just few days after its launch.
I hope these apps will help you maintain your phone better. Some of you might already be using it, if yes, please don't think the post is boring. I've tried to help the others who don't know about these apps.:good:
Thanks and Cheers to all happy and to be happy owners of this phone (Galaxy Grand Quattro).
Use the Swipe Home Button App- with that you can customise the swipe to make it work like the home button, as a result you do not have to long press the Home button to view running apps...hence this app takes a lot of load off the physical home button
Nice app ! ! !
Snehashish30 said:
Use the Swipe Home Button App- with that you can customise the swipe to make it work like the home button, as a result you do not have to long press the Home button to view running apps...hence this app takes a lot of load off the physical home button
Click to expand...
Click to collapse
Thanks.
A Very decent app it is for all of us. :good:
I'm already using the gesture controls of Nova Prime Launcher and this started conflicting a bit with previous gesture controls.
But this is really a great app with multiple gestures performing various frequently using tasks. Keep it up. :victory:
Snehashish30 said:
Use the Swipe Home Button App- with that you can customise the swipe to make it work like the home button, as a result you do not have to long press the Home button to view running apps...hence this app takes a lot of load off the physical home button
Click to expand...
Click to collapse
why dont u try the same by using gravity box then using any app..,also gravity box has many tweaking as i moded the long press of the menu button to load previous app which gives some fun of multi window also the long press of the back button has the same function as that of long press of the home button.....
I'm using Lux and it works very well using front camera! Most auto-brightness apps don't have this feature (they require light sensor instead). But I didn't get how SMART SCREEN ON works...
Steps to make Smart screen on work.
pedromsouza said:
I'm using Lux and it works very well using front camera! Most auto-brightness apps don't have this feature (they require light sensor instead). But I didn't get how SMART SCREEN ON works...
Click to expand...
Click to collapse
How to:
Sorry not able to upload images. I forgot usb cable somewhere.... :silly:
Step 1. Install and tap on the icon and click on BASIC. Tick Enable Smart Screen ON (SSON), Start on boot and Hide icon (if you want).
Step 2. Tap on wave hand mode. Tap set automatic value, now wave your hand over the device the way you want the lights to go ON. Means wave hand once and tap I like these values, if you want the lights to turn on in single wave. Or wave twice and select I like these Values
And ofcourse turn that feature ON.
Step 3. Only if you need. Tap and swipe On. This does the same thing as a hand wave does, but instead of hand wave you tap once on the sensor or swipe your finger across it.
Step 4. Now tap Save and restart app. And you are ready to go. :fingers-crossed:
When done. Screen off your phone and wave hand over the phone. And the backlight will turn on, so that you can atleast see the any notifications you received.
Note: SSON sometimes don't work because it supports devices without screen lock better than devices with screen lock turned ON. This is very rare when it doesn't work. Maybe once in every 15 or 20 times. Pretty decent, Isn't it?
Cheers :good:
Wow! It's so cool! Thanks for tutorial! Works perfectly.
Hi i want to share what apps i use in my GT-I8552. ill be very brief and simple.
1. Tasker - i use this app for:
~Automatically changing my wallpaper. (i have a parameter to save battery).
~Sound and light profile. (i use this to change modes, Day/Night mode).
~Removing my PIN LOCK when i am home.
~Automatically put my phone in Power Saving Mode
~Automatically Turn On my GPS for Specific Apps
~Automatically Turn Off my GPS/WIFI/Bluetooth after sometime of inactivity (or even i turn it on, it will check if i am using this functions or not)
~Automatically Turn On Screen Rotate for specific apps (buggy or i just dont really like my screen to rotate).
Note: i used an extension for some settings the app named -Secure Setting-
2. Foldersync - i love this app even though it can be used with tasker but the app alone is awesome! i use this to sync my music/pictures/video to different cloud storage. but in music i use 2way function because i am downloading music in my pc and i just want my phone to sync wirelessly.
3. Camera Zoom FX <- Awesome for taking pictures (if you can suggest better app why not? )
4. Adaway
5. Titanium Backup
Thanks will be appreciated ! ! !
pedromsouza said:
Wow! It's so cool! Thanks for tutorial! Works perfectly.
Click to expand...
Click to collapse
Thanks would be most appreciated if it helped. :victory: :highfive:
Go through my next post for games. :good:

Quick tip for rom users

If you cant stand that knock off is gone on your custom rom that you have happily flashed on your g2... ive noticed alot of people asking so here is a few solutions if you already dont have one! Got a better way? Suggest it! Will edit if necessary.
1. If you dont use google now from your home button swiping up... download the app in the link below!
{FOR CYANOGENMOD USERS} Your rom already comes with a toggle for this... accessible from SETTINGS>>INTERFACE>>QUICK LAUNCH SHORTCUTS... obviously slide up and set it as "Screen off" towards the bottom of the list.
-------------------------------------------------------------------------------------------------------------------------------
>> https://play.google.com/store/apps/details?id=com.katecca.screenofflock&hl=en <<
-------------------------------------------------------------------------------------------------------------------------------
Once you have that downloaded you can now swipe up like you would normally access google now... it will now give you the option to set a default for the screen off application, do it and now you can swipe up from anywhere on your device (Even the lockscreen) to turn off your screen without having to touch the buttons on the back! (Now i noticed when i was running an AOKP rom this didnt work every time as due to the fact every time it would shut off it would turn right back on... if thats the case for you try out option 2!
2. [YOU WILL NEED THE SAME APPLICATION AS IN OPTION 1] This is a simple bit, but your rom might not have this capability... if you go to your navbar settings you should be able to enable long press actions for buttons... select any button you'd like and set the long press for the application you have downloaded!
3. [YOU WILL NEED THE SAME APPLICATION AS IN OPTION 1] And lastly your third option... this should be if neither option 1 nor 2 work for your custom rom which they should... This one however is not easily accesible from any screen on your device only your home screen... first things first download that application above, now you download a launcher such as Apex launcher which i would reccomend because it allows this without paying for the full version and i tend to like apex alot better, from there go straight into your apex settings and go to behaviour... check out those gestures and set that application as your gesture! Nova launcher's is pretty self explanitory if you have prime. after that your good to go! Easy accesable screen off techniques you cant live without on the g2, hope this helps some of you!
I have another idea. Use GMD gesture control and use the edge of your screen to turn off the phone, or even double tap the nav bar (the app is ridiculously useful)
Sent from my LG-D802 using xda app-developers app
Another option for CM Roms is to use the app below which gives you the option to Knock Off from anywhere on the entire home screen when using Apex or Nova and then have a double tap set or any other gesture you like up to execute this app.
https://play.google.com/store/apps/details?id=com.cillinsoft.scrnoff
thanks alot. due to that reason so many people dont want to jump custom rom as like me
GMD Gesture Control - > define 3 finger swipe down gesture anywhere to turn screen off. There you go, most comfortable solution.
assa51 said:
thanks alot. due to that reason so many people dont want to jump custom rom as like me
Click to expand...
Click to collapse
This is why i felt the need to post this haha... its saddening to me that people wont switch to the joy of roms because of something that an be easily fixed xD Roms are great
hasenbein1966 said:
GMD Gesture Control - > define 3 finger swipe down gesture anywhere to turn screen off. There you go, most comfortable solution.
Click to expand...
Click to collapse
Permission to add this?
My main reason for loving Knockon (and not jumping to any rom) is the wake up feature though. This is the first time that I have an android device where I don't rape the power button just to look at how pretty my lockscreen or launcher is.
salisbury_steak said:
My main reason for loving Knockon (and not jumping to any rom) is the wake up feature though. This is the first time that I have an android device where I don't rape the power button just to look at how pretty my lockscreen or launcher is.
Click to expand...
Click to collapse
you know knockon stays when flashing any rom correct? this is why im only giving solutions to knock off
Cyko.Tech67 said:
you know knockon stays when flashing any rom correct? this is why im only giving solutions to knock off
Click to expand...
Click to collapse
I did not know that. I thought it wasn't there and people just weren't mentioning it. lol. Thanks for the correction!
salisbury_steak said:
I did not know that. I thought it wasn't there and people just weren't mentioning it. lol. Thanks for the correction!
Click to expand...
Click to collapse
no problem! hope this opens up a chance at you flashing roms in the future!
Cyko.Tech67 said:
Permission to add this?
Click to expand...
Click to collapse
Of course!

[MOD][Xposed][4.0.3+] SwipeUpToSleep

Background
I am using HTC-E8. The power button is on the top of device which is difficult to turn screen off by using its power button. So I write this mod to let me turn of screen by just swipe up from home button
Function
This mod allow you swipe up from home button to turn off your screen.
Since swipe up from home button normally will trigger Google Now. This mod default will disable this gesture for trigger Google Now. However, you can have an option to enable Google Now by long press the home button.
Notes:
1. You must reboot your device to make your preference take effect.
2. I only test it on my HTC-E8 device with HTC Sense 6.0
Changes History:
2015-04-27 v0.83
1. Fix package name issues while download from Xposed repository
2. Add a function to completely disable "Google Now"
3. Add function on turning the threshold for triggering "Google Now"
Contributors
looklookson
Xposed Package Name: looklookson.swipeuptosleep
Great work!!
Will test this module for sure~
If Dev can consider on including this swipe up gesture to run other actions or shortcuts will be even more fantastic!
Thanks for the great module!
It works but the threshold is too short, very easy to accidentally tutn off screen. Therrs no swiping up animation like woth google now but i just press on the home button a little longer than usual then the screen turns off. Please implement the now-like popup and ability to adjust threshold
"Package name is incorrect" on Xposed repository (aka can't download from xposed app)
I would also like to see the ability to change the threshold before screen turns off, and adding some kind of visual, whether it's Google's own one or a custom one, would be nice.
For me it works by swiping up on the home, menu, app drawer and back buttons on my LG G3. I like it that way since it's easier to toggle the screen off.
Nice module I believe the same thing can be achieved with greenify which lets you default "hibernate and lock" to the swipe up shortcut. You don't need xposed for that.
Diaphragma said:
Nice module I believe the same thing can be achieved with greenify which lets you default "hibernate and lock" to the swipe up shortcut. You don't need xposed for that.
Click to expand...
Click to collapse
Well I dislike that greenify always locks the phone and I only want my screen turned off. With greenify it always prompts me to enter my unlock pattern and ignores Googles smart lock and for this is an annoyance.
But with this module it works like a charm.
the_Calen said:
Well I dislike that greenify always locks the phone and I only want my screen turned off. With greenify it always prompts me to enter my unlock pattern and ignores Googles smart lock and for this is an annoyance.
But with this module it works like a charm.
Click to expand...
Click to collapse
Alright I did not know greenify disables smart unlock.
It disables only Googles smart lock but not the app smart unlock ^^
Can this be done by swiping up the 'Recents' button instead of Home button?? *Idea!
the_Calen said:
It disables only Googles smart lock but not the app smart unlock ^^
Click to expand...
Click to collapse
Are you sure? Just tested it and smart lock does still work.
Great! It's always good to have more options.
htr5 said:
Are you sure? Just tested it and smart lock does still work.
Click to expand...
Click to collapse
Yes, at least on paranoid android rom, I have an unlock pattern and trusted faces enabled and it always asks for the pattern when I use the greenify hibernate and screen lock function
Holy. Xposed installer tells me that the package sign is not correct. You should check iy.
the_Calen said:
Yes, at least on paranoid android rom, I have an unlock pattern and trusted faces enabled and it always asks for the pattern when I use the greenify hibernate and screen lock function
Click to expand...
Click to collapse
Okay well, you can't really complain to the dev here if your using a custom ROM.
htr5 said:
Okay well, you can't really complain to the dev here if your using a custom ROM.
Click to expand...
Click to collapse
I don't complain about the module, which works perfectly, it was about greenify and it's similar function.
Is this possible using hardware navigation keys? I guess it's not, since it just replaces the Google now shortcut..
PixelPatrik said:
Is this possible using hardware navigation keys? I guess it's not, since it just replaces the Google now shortcut..
Click to expand...
Click to collapse
It does work in hardware navigation keys.
And your equipment
If you're trying this package post the type of device it worked on, OS, custom ROM etc... so others will know..
HELP OTHERS WHILE OTHERS HELP YOU
Good stuff! Although swipe [down] to sleep & swipe up to wake, just make more sense to me as swipe gestures.

Categories

Resources