I want to start google voice recognition if I press a hardware button when the phone is connected to bluetooth and the phone is in my pocket. The button on my car directly calls the contact and I don't want that. I wanted it to start google voice recognition which then listens from the car bluetooth mic, but I couldn't find a way to change this default behaviour of the bluetooth key.
Anyway, then I tried to start google voice recognition after pressing the power button of the phone and after the display is on with tasker, but it also doesn't work if I don't completely pass the lock screen even if the device is unlocked (lock is disabled because of secure bluetooth connection). I tried everything I found including disabling the keyguard, different google now intents but I couldn't find any solution. Ok Google command works even if the screen is off, but I couldn't find a way to start the voice recognition manually even when the display is on and not locked (but on lock screen). How can I do that from the lock screen with the device unlocked, or if I can't, how can I pass the lock screen and go to the home screen? By unlocked I mean that the phone does not require any password/pin to unlock it, just sliding on the lock screen is enough.
So, no way to start google now voice recognition when on the lock screen?
You have acces to root ?
Lasacv said:
You have acces to root ?
Click to expand...
Click to collapse
Yes.
Related
I have been using Google Navigation, which is a great app but which is a huge battery hog - particularly with the screen on.
(Lets assume for the moment I dont have a car charger available)
I understand that Google Nav can be used with the screen off, and the voice commands will still work. This helps significantly with the battery life.
At certain points I would like to actually see the map/screen, but in between can leave the screen off and follow voice commands.
Here is my question - currently if I turn off my screen by pressing the side power button, it should keep navigation voice directions active with the screen off (I think...correct?).
But when I press this button to turn it back on, it goes to my lock screen (in my case I use WidgetLocker). From there I would need to manually navigate back to the Navigator App. While driving, going through this series of steps is not ideal.
How can I set things up so that the screen times out or I switch it off with the power button, but that when re-activated it goes straight to the Navigation app screen with no needed intermediate steps?
I am on stock setup - not rooted.
Thanks.
lirong said:
I have been using Google Navigation, which is a great app but which is a huge battery hog - particularly with the screen on.
(Lets assume for the moment I dont have a car charger available)
I understand that Google Nav can be used with the screen off, and the voice commands will still work. This helps significantly with the battery life.
At certain points I would like to actually see the map/screen, but in between can leave the screen off and follow voice commands.
Here is my question - currently if I turn off my screen by pressing the side power button, it should keep navigation voice directions active with the screen off (I think...correct?).
But when I press this button to turn it back on, it goes to my lock screen (in my case I use WidgetLocker). From there I would need to manually navigate back to the Navigator App. While driving, going through this series of steps is not ideal.
How can I set things up so that the screen times out or I switch it off with the power button, but that when re-activated it goes straight to the Navigation app screen with no needed intermediate steps?
I am on stock setup - not rooted.
Thanks.
Click to expand...
Click to collapse
Try disabling Widget locker before entering navigation. See if you get the same results with the stock lock screen.
Sent from my SAMSUNG-SGH-I727 using xda premium
lirong said:
Here is my question - currently if I turn off my screen by pressing the side power button, it should keep navigation voice directions active with the screen off (I think...correct?).
But when I press this button to turn it back on, it goes to my lock screen (in my case I use WidgetLocker). From there I would need to manually navigate back to the Navigator App.
Click to expand...
Click to collapse
I use WidgetLocker.
If I turn the screen off using the power button, I still get voice commands.
If I turn the screen on, I get WidgetLocker and unlock it with the simple swipe, then I'm back at the GPS screen as if I'd never left it.
Hmmm that doesnt work for me. Could be because my WidgetLocker screen is covered with email, calendar, etc. So anywhere I try to swipe ends up taking me directly an app or an email, rather than just swiping off the screen...
Is there no way to set up so that for a particular app, lock screen / widget locker just dont activate so the phone goes from standby straight into the app?
CZ Eddie said:
I use WidgetLocker.
If I turn the screen off using the power button, I still get voice commands.
If I turn the screen on, I get WidgetLocker and unlock it with the simple swipe, then I'm back at the GPS screen as if I'd never left it.
Click to expand...
Click to collapse
You can configure widgetlocker to prevent clicks on those apps you have on the lockscreen
Sent from my SAMSUNG-SGH-I727 using xda premium
CZ Eddie said:
You can configure widgetlocker to prevent clicks on those apps you have on the lockscreen
Sent from my SAMSUNG-SGH-I727 using xda premium
Click to expand...
Click to collapse
Thanks.
But most of the time I want that click through capability. I dont think I would want it to be off. I was just pointing out that this is the reason a simple swipe from that screen isnt feasible for me in getting straight back to Navigation...
Google Nav will overlay the built-in lock screen, but Widget Locker will show up. If you have a bunch of widgets that allow interaction you can try turning on the back button unlock in settings:
Settings->Buttons & Inputs->Back Button Unlock
You can then set the unlock delay to suit. That way you can unlock while in Nav without using the sliders.
This suggestion worked. Thanks very much for your help.
Thinking about it I guess if I had the space I could also add the Nav icon to WidgetLocker and get to it that way directly as well.
Appreciate everyone's input.
marvin02 said:
Google Nav will overlay the built-in lock screen, but Widget Locker will show up. If you have a bunch of widgets that allow interaction you can try turning on the back button unlock in settings:
Settings->Buttons & Inputs->Back Button Unlock
You can then set the unlock delay to suit. That way you can unlock while in Nav without using the sliders.
Click to expand...
Click to collapse
HANDS FREE NOW
Hands Free Now is an attempt to fix the bug in Google Now that Google itself never fixed.
As most of you know, as of Android 4.1+, our headsets are configured to work as follows:
1. Single press for play/pause
2. Double press for next
3. Long press for Google Now
However, the long press option does not work when the screen is off. It works only when screen is on. This is a bizarre lack of feature because if the screen is on and unlocked, you might as well click the mic on the desktop widget to launch Google Now. Why would you need the long press option anyway?!
Several attempts were made by many people to bring Googler's attention to this lack of feature, but all of em were conveniently turned down.
So I guess it's up to us to fix it.
I have started making this app but being the newbie that I am, I'm not sure if I can finish it alone. That's why I request you guys to help me out with this.
Uploaded below is the first apk
Concept in brief:
1. Launch Audio service that intercepts media KeyEvents
2. Once KeyEvents are triggered, create an empty StandOut window that blocks the entire display.
3. Wake up device, disable keyguard and launch Google Now
4. Release wakelock immediately. and reenable keyguard
5. Kill process in 10 seconds
Steps to use:
1. Install app
2. Open app from launcher once. You can go back to Home after this if you want
3. Lock screen.
4. Jack in the head set and triple press the button.
5. Device should unlock itself and in some time will launch Google Now
6. Fire your voice command and wait for response.
7. In 10 seconds, the screen will lock again.
8. For these 10 seconds, your phone will not respond to touches (this is intentional and by design, because you would not want your phone to "pocket dial" while travelling)
Release Notes:
1. App is currently incompatible with music players
2. Battery effectiveness is unknown; you might have to uninstall it once you have tested it
If you can help, the source code can be found on GitHub.
Installed app, but it wont launch after 3 presses of the button, I get a double beep sound when doing so.
I can help out with testing if you want but as far as coding goes im not very useful xD
Bluetooth too?
Will it work with Bluetooth headsets as well or only wired ones?
THANK YOU!
I registered just to say thank you, your little app allowed me to have the kind of music control I alway longed for since i passed from iPhone to Nexus 5. I'm truly grateful.:good:
I had the problem when the screen was off. After when I long press the little button on my headset. Then comes a black screen with a message: please wait (initializing) but nothing does.
But this app solve my problem!
Now I can use Google Now over my Headset.
Thank you very much! ?
Seems an old thread, but nevertheless: Thank you! Finally it works!
I'm just curious if it would be possible to change add long-press functionality. The app AutoVoice is capable of receiving a long press (also with locked screen). But it doesn't help because it relies on the not working Google Search.
Possible idea: your App could register as a service capable of receiving the VOICE_SEARCH_HANDS_FREE intent, it could receive the long press and start its procedure. It won't work immediately because Android will display the "Choose default app" prompt, that obviously doesn't work when the screen is locked/off. In order to choose the default app one has to wake the screen and manually override the keyguard/lock (for example via Secure Settings Plugin and Tasker). The override is somewhat buggy, and even though the screen is on, the phone still 'thinks' it's locked. Now: long-press to receive the command for long-press while locked, see menu and select default app. ..Hope my explanation isn't too bad.
I'm investigation another workaround to get it working with music player.
Best regards, Grtschnk
I am required to use a PIN lock due to our Exchange settings. I've been getting around that using Enhanced Email to bypass the PIN lock requirement. I prefer to use the stock client.
Can I get Voice Commands to still work without having to open and unlock the phone. With Siri, even with the phone locked, I can simply long press the home button, Siri will respond and I can tell it to "Call John" and it will make the call, without the phone being unlocked. This is incredibly useful while driving.
With the Nexus, it seems I would need to click on the "on" button on the right, unlock the phone by entering a PIN and then tell it to "Call John". Which is a three step process requiring me to look at the phone to enter the PIN.
Am I wrong about that?
If I'm not wrong, Google really needs to find a better balance between lock screen security and performing tasks and seeing notifications.
So I bought a few cheap nfc tags from China and used one for the Smart Unlock. Since mxp doesn't have fingerprint sensor, I guess having a Skip alike thing would be the next best thing. Very easy to setup, just go to Security menu, Smart Unlock (you must have pin or pattern lock), add Trusted Devices, pick NFC then put the tag behind the phone. Give it a name and thats it. The only hassle with this unlocking method is you have to wake up the phone then only it will read the tag. Skip has a magnet built in that wakes up the phone automatically. Oh and another not so good thing is you have to lock the phone using the power button in order for the unlock to work. Whenever I lock using Nova's Screen Lock or Greenify's Hibernate and Lock, it just didn't work.
Update on diy skip. Now I no longer needs to press the power button to lock/unlock the phone. With root access, use Tasker and Secure Settings plugin to emulate power button press when display is off (run command - input keyevent 26). Then use Nova launcher's screen lock shortcut gesture (double tap, swipe up/down etc) to complete the process. I have a small magnet taped to the nfc tag, so when I slowly swipe from the side, the magnet wakes up the screen and then nfc takes over to unlock.
pijes said:
Skip has a magnet built in that wakes up the phone automatically.
Click to expand...
Click to collapse
Hi Pijes, I didn't understand what do you mean by Skip or magnet. Could you explain? Thanks!
You broght it from taobao?
quera said:
Hi Pijes, I didn't understand what do you mean by Skip or magnet. Could you explain? Thanks!
Click to expand...
Click to collapse
Motorola has a product called Skip which utilize the NFC chip to bypass the lockscreen. If you have been using some Moto phones, you should know that most of them has a magnetic sensor that is used for the docking (older Moto phones have dock accessories). The dock has a tiny magnet that when the phone detects it, it automatically turns the phone into a desk clock or navigation mode when attached to a car dock if I'm not mistaken. It seems that Moto maintains this sensor in newer phones, it is located at the back and in MXP case, somewhere in the center. If you have Skip, you attach it to your belt so when you pull the phone out from your pocket, all you need is a swipe on Skip and the phone is unlocked. I believe what happens is the phone detects the magnet, wakes up the phone (still locked) and then it detects the NFC tag inside Skip to unlock.
So I bought some NFC tags, got small magnet from my busted laptop hard disk, taped them together and attach it to my belt. If you don't have the magnet it is still possible to tap on the NFC tag to unlock but you have to enable Moto Display. When you pull your phone out, you'll see the clock, swipe down to get to the lockscreen (pin/pattern/password lock) and then tap on the tag to unlock.
eliccs said:
You broght it from taobao?
Click to expand...
Click to collapse
Not directly from TaoBao but surely from China
Anyone else with experiences ? I was able to register the nfc tag but unlocking on the pattern lock screen didnt work. There was a sound when putting the nfc tag behind the device (so i guess somehow the nfc reader worked) but the unlock failed.
Maybe its only working if i have some special services switched on?
aVe2000 said:
Anyone else with experiences ? I was able to register the nfc tag but unlocking on the pattern lock screen didnt work. There was a sound when putting the nfc tag behind the device (so i guess somehow the nfc reader worked) but the unlock failed.
Maybe its only working if i have some special services switched on?
Click to expand...
Click to collapse
How did you lock the phone? By pressing the power button or a shortcut app?
pijes said:
How did you lock the phone? By pressing the power button or a shortcut app?
Click to expand...
Click to collapse
Usually the power button. Sometimes maybe because of the auto lock after some seconds (i set it to 30). I am not sure what you mean with shortcut app.
aVe2000 said:
Usually the power button. Sometimes maybe because of the auto lock after some seconds (i set it to 30). I am not sure what you mean with shortcut app.
Click to expand...
Click to collapse
Our phone has a default app that detects the nfc chip, it's called Tags. I believe this app made the sound, if you're at the home screen (unlocked) and place the tag at the back of the phone you'll hear a sound and a popup message asking what to do even if you already registered the tag for smart unlock. I disabled this app to get rid of the sound and notification.
What I mean with the shortcut app is something like double tap to sleep or lock the phone. Greenify and Nova launcher app also has a shortcut to lock the screen. If you use this method to lock the phone, smart unlock won't work.
pijes said:
Our phone has a default app that detects the nfc chip, it's called Tags. I believe this app made the sound, if you're at the home screen (unlocked) and place the tag at the back of the phone you'll hear a sound and a popup message asking what to do even if you already registered the tag for smart unlock. I disabled this app to get rid of the sound and notification.
What I mean with the shortcut app is something like double tap to sleep or lock the phone. Greenify and Nova launcher app also has a shortcut to lock the screen. If you use this method to lock the phone, smart unlock won't work.
Click to expand...
Click to collapse
if my phone detects a nearby nfc, even if it is registered with smart lock, there is a black screen only saying:
new tag detected
empty tag
(or similiar, i have a german version). There is no menu, no arrows nothing. Only those two text fields. I cannot find an app called Tags (via autostarts tool or settings|apps list).
aVe2000 said:
if my phone detects a nearby nfc, even if it is registered with smart lock, there is a black screen only saying:
new tag detected
empty tag
(or similiar, i have a german version). There is no menu, no arrows nothing. Only those two text fields. I cannot find an app called Tags (via autostarts tool or settings|apps list).
Click to expand...
Click to collapse
In settings-Apps screen, press the 3 dot menu and choose show system
Can someone enlighten me why this is useful? I mean, if you have Tasker and root you can use Secure Settings to unlock by WLAN or location (in LP that is), and if you are going to literally stick the key on the back of the device, why even set a lock at all? I would understand if the tag was in your wallet or your jacket or on your desk, but literally on the device?
Who said about sticking the key on the back of the device?
Oh, the magnet is just to wake up the screen. I must have read over that too quickly.
I want to apologize. I was wrong about not working my nfc tags. I simply missed that pretty little detail: nearing the nfc tag while in lock screen. I always tried to unlock while beeing in the screen before the unlock screen.
So, everything is fine now. I am using a stylish nfc ring beeing very happy with it.
Update, 2.2.2016: No, not everything is fine. I came across a bug or intended feature. The lock functionality is disabled after some time not using the phone, according to this:
this is a lollipop behavior.
According to this, nephiel made a workaround for at least MM.
Here is the bug report for this issue.
Does anyone else use the nfc ring or another nfc tag for unlocking?
Regards.
I am wondering if there is a simple way to wake a phone's screen from the watch, similar to selecting "Edit on phone" when selecting a new watchface?
I finally have a working VNC viewer on my watch, but none of the commands will wake the phone's screen, even if the phone is already unlocked. I can wake the phone with a BT keyboard just by pressing the space bar, or some other keys, but it doesn't seem to work from the watches keyboard. From my understanding, a tasker might do the trick, but am wondering what your thoughts are? Thanks!
Ah, never mind. It was an issue with the VNC server on my phone. After updating the app, the screen wakes upon connecting.
FYI: If anyone wants another method of waking their phone from their watch, a remote input app such as WearMouse works.