Question is, can someone modify the apk as below???
http://www.androidpolice.com/2013/0...-enable-voice-prompt-in-search-results-video/
Turns out, there's a secret flag within Search that lets you use the hotword, set by default to 'Google,' anywhere in search results instead of just the home Activity. By default, Search will let you say "Google" to activate voice input only in the main Search screen, after which you'd have to tap the Back button in order to use it again. It's nice, but it's not very fluid, as you have to keep touching your device.
The secret flag enables it in search results, so you can perform search after search after search without ever touching your phone or tablet.
As for the technical details, the flag is located in res/values/bools and is called hotword_from_results. To activate it, one would flip it from false to true, like so:
<bool name="hotword_from_results">true</bool>
Sent from my Nexus 4 using xda app-developers app
Related
Either by ROM, App, or Rooting/Otherwise, is there a way to make the lock button have multiple functions on my Galaxy Nexus?
My goal is to be able to use Voice Actions from a locked phone (like in the car, for example).
I noticed some posts on editing hardware buttons, but that was neither for the Galaxy Nexus nor for a lock button.
Ideally, 2 quick clicks would pull up Voice Actions from a locked phone.
I guess if I could permanently have Voice Actions in the notifications section, I could drag down from a locked phone and accomplish the same thing. I use slide to unlock, so dragging down on notifications bar is still available.
Any suggestions? I have not rooted yet but would do so just for this functionality (I'm now a corporate tool so I try to hack as little as possible these days)...
I am really interested in getting this functionality, so please excuse my bump.
Here are the two solutions (possibly) I've found.
1. Bar Control would allow this functionality if we could choose the Voice Actions App.
2. Widget Locker (though I've seen review of it not working well on Galaxy Nex, any opinions there). Also, still need an actual app to choose.
Again, I'm reaching out to Android users to see if they've found any way of using the lock button to achieve this functionality, but I'd take anything right about now.
Voice Actions Automate Startup like Siri
Okay, apparently I will be using this thread to document how I get this working.
Looks like Tasker will be my best bet.
1. I need to figure out how to call up the true Voice Actions prompt (Voice input is provided via Tasker, but it's not doing what we need it to).
2. I need to come up with some valid gesture to summon this feature (Like a Shake = Unlock and then summons Voice Actions)
I will post results. Please, if anyone knows exactly how to get Voice Actions to open in ICS using Tasker, you'd be a godsend at this point. This is VERY important functionality, especially for users that are not to be using their phone and driving these days...
This is (a quick and dirty) way to get Voice Search (Voice Actions) from Lock Screen on the Galaxy Nexus.
I purchased WidgetLocker from Market. I then added the Google Search Widget to my lockscreen.
In the future, I'd like to see Tasker have access to the lock button - that way I could Long Press the Lock button (or double press, whatever) and have access to Voice Search.
If you want different Voice Search functionality, such as widgets, or using Bar Control to add it permanently to the notifications area, you'll need to have Root Access to your phone.
Use Root Explorer to go to /system/app/VoiceSearch.apk
Rename to VoiceSearch.apk.backup
Go to Market and Download Google's Voice Search
Add Shortcuts, icons to your homescreen, whatever you want to do
Rename VoiceSearch.apk.backup back to VoiceSearch.apk
Reboot
This is the only way I've found to get VoiceSearch as an app choice again in menus like Tasker's, WidgetLocker, BarControl, etc. For some reason, it's no longer accessible by default in ICS.
This is by far not the cheapest or most integrated way of getting things done, but for $3.00 it was worth it for me.
Hope this helps all the GN owners out there
Integrating Tasker into this
Once WidgetLocker was purchased, I am able to use WidgetLocker to Unlock my phone through Tasker.
Used the above mentioned way of getting VoiceSearch available as an app via Tasker.
Used WidgetLocker's plugin for Tasker to unlock my phone when I shake it along with starting up Voice Search.
So now, in my car, I just one click my GN Lock button to wake phone, shake, speak...that's as good as it's gonna get for awhile.
Hope this helps
Simple solution - Eva for Android
I've had the trial version of EVA for a month. When it expires, I'm purchasing the full version. This is hands down the most advanced and exciting app for Android since Tasker. It is for Voice Control what Tasker was/is for utility control.
You can set Eva to continue running when your phone is locked and use a voice command to "wake her up" and give a command. Also even if my phone is locked, if I get a text message Eva will let me know I have an incoming message and ask me if I want to hear it (all while the screen is still off and phone still locked). If I reply yes, Eva will read the message to me, then ask if I want to reply. If I say no, that's the end and my screen is still off, phone still locked. If I say yes, Eva will unlock my phone automatically and open up the Eva app to take my dictation for the reply.
All of the above is based on my settings, but Eva can be programmed to handle incoming text several different ways. Eva really is the "tasker" of voice commands. I'd highly recommend at least checking out the free trial for a month. Like Tasker, there is a learning curve. Took me about the full month to learn all the command words, but once you do, it's amazing.
Also to make it even better, the developer does have tasker integration on his to do list. It may take a while, but if it can be integrated with tasker, then you could trigger any task you have created in tasker by voice which would be super sweet!
Anyway, check it out - hopefully it'll allow you to do everything you want.
anthdroid, thank you so much for sharing. i'm lucky to have found this thread. your workaround let me get my voice search action back. cheers!
hollywoodfrodo, thanks for the info on Eva. that sounds promising for sure! i just "discovered" tasker recently so i'm loving that. can't wait till my tec tiles come in!
I swear at one point I was able to look at a list of recent searches I in Google maps but for the life of me I can't find it. All I can find is location history and when I pull it up it brings up a permission screen to enable it and it doesn't sound like the list of recent searches I want.
Sent from my SGH-I777 using XDA
doesn't the recent search list show up when you go in to do a new search?
Where? Can you direct me from if I'm just starting the app where I'd find this list? When I pull up a search for directions from my current location there is nothing underneath the two entry fields and when I select one the keyboard pops up. When I begin to type something it brings up suggestions but this is by no means a list of recent searches and it isn't even sorted by what's searched most.
Sent from my SGH-I777 using XDA
For me, when I open the app, then click in the search bar so I can type something in, the previously searched items appear in a list below the search bar.
@OP,
What version of GMaps are you running?
Mine is 6.8.0 and soon as I open the app, tap on the very first tab in the lower left bar, to bring up Search, it lists at least my last 3 searches.
Hi people,
I have a very specific need for a very simple app:
It should be one button only on one screen, and one textfield only on another screen.
The function of the button is to send a predefined(coded into app) SMS to the number you input in the other screen(this number should autosave).
In other words -
Screen 1: 1 big button, "ACTIVATE" (when clicked, sends SMS "activate" to number)
Screen 2: Settings screen, one box only, for putting in destination number and saving it.
I have above average general computer-knowledge and understanding, but no experience whatsoever with app-development.
Can I learn to, and write this app simply myself, say in a day or two max? Or should I just pay someone that knows what they're doing because it would take me too long to learn?
I suggest that you go on your own. It is not difficult to code such an app and learning some code isn't bad at all. You can do it in one day if you're determined enough. Good luck!
If you don't want to learn to code then there is always my app SMS Bot Widget:
https://play.google.com/store/apps/details?id=net.ubikapps.smswidget
It is a home screen widget only so you can't send a message from an app, only a home screen widget.
footboydog said:
If you don't want to learn to code then there is always my app SMS Bot Widget:
https://play.google.com/store/apps/details?id=net.ubikapps.smswidget
It is a home screen widget only so you can't send a message from an app, only a home screen widget.
Click to expand...
Click to collapse
Your Widget seems to be 99% what I need..! Would it be easy for me to modify your code, to change the text and options on the settingscreen, and make the Widget just a standard picture?
Also, could I cancel the confirmation part, just have the text sent in background instead of the confirm-to-send?
Edit: What I really need is a cross between your widget and this app in its simplest form:
https://play.google.com/store/apps/...ult#?t=W251bGwsMSwyLDEsIm51LmZkcC5TbXNfUkMiXQ..
Questions should be asked in Q&A forums, not Development forums.
Thread moved.
OK, so I started trying out myself, using MIT AppInventor. I've gotten pretty far, all I'm missing is for the app to store what's put in the "PhoneNumber"-textbox. How do i make the app save the number for later, also when app is restarted?
Last thing, when I use a picture for button, how do i get it to be "shaded" when pressed? you know, so you know when your pressing it.
What am I missing to get these features?
View attachment 1249018
OK, so I've found the TinyDB, and put in the "store value" block, however I don't know where to put the "retrieve value" to get it to retrieve as soon as app is opened.. any help?
toth42 said:
Your Widget seems to be 99% what I need..! Would it be easy for me to modify your code, to change the text and options on the settingscreen, and make the Widget just a standard picture?
Also, could I cancel the confirmation part, just have the text sent in background instead of the confirm-to-send?
Edit: What I really need is a cross between your widget and this app in its simplest form:
https://play.google.com/store/apps/...ult#?t=W251bGwsMSwyLDEsIm51LmZkcC5TbXNfUkMiXQ..
Click to expand...
Click to collapse
My app isn't open source yet but I might put it on github or something in the future.
By default, the Q has no launcher, and instead uses 'broker' as the default launcher, which has no interface, only loads up the visualizer. You cannot change this with a home switcher or any other app capable of changing the launcher. I haven't been able to find how exactly the Q is doing this, but I did find a workaround.
This assumes you are already rooted, you have a controller connected via OTG cable and have Nova launcher installed. This will work with other launchers but you will have to write your own app to launch something else.
For me, the solution consists of:
- Connect a controller of your choosing (logitech K400), and install Nova launcher
- Identify the Scan Code of the button you would like to use as a 'Home' key (KeyTool.apk attached to help find it easily if not a standard home button)
- Remap the 'CALL' action to the button you want to use. (I chose CALL since is of no use to the Q.)
- Install a small app to intercept the 'CALL' intent and fire up your launcher
1) To connect a controller, you will need a OTG cable. I wont go into this since others have already covered this in detail. Here's a good example: http://davidnhutch.com/sandbox/blog/connect-a-mouse-and-keyboard-via-usb/
2) If your controller already has a home button, and it is already kicking you to the visualizer, the scan code you're looking to intercept is probably 172. If not, you can install KeyTest.apk (attached credits solarbanjo at mobileread.com forums) on the Q and it will tell you the scancode when you press each button.
3) Now, you need to edit the Q's keylayout file (found in /system/usr/keylayout/Generic.kl) and point that key declaration to 'CALL' instead of 'HOME'. Find the number that cooresponds to your scan code, and change the action to CALL.
BTW There are probably multiple key layout files in this folder. I've attached my Generic.kl for reference, but if you're not using the same keyboard this might not be useful. Compare to yours and change accordingly.
Note: If you edit Generic.kl it will change the default action for any new device that is connected. The *proper* way to do this is to create a device specific key layout, but I didn't bother because I'm lazy.
You can find more detail about this part here: http://chris.boyle.name/2010/08/android-keymaps and here: http://www.mobileread.com/forums/showthread.php?t=159538
4) Install HijackDialer.apk (attached). This app is simple, all it does is received the dial intent and launches Nova. No need to run as service since its the only app registered to the dialer intent. Ideally, this would allow you to choose your launcher but this works for now.
I also mapped My F1 - F11 Keys to other actions like BACK, FORWARD, POWER etc. Now my keyboard can control the Q completely and I can get to my launcher without having to send adb commands. All I'm missing now is a 'close' button to kill locked up apps that don't behave on the Q.
I'm sure I may have glossed over some details but hope this helps someone.
Great work. I'll try this out this week.
Sent from my Nexus 7
I know this was posted some time ago but everytime I tried to change the Value an press sabe it say error can save. same thing happen trying to put the tablet xml also trying to change the dpi value is there something I have to do to edit system stuff
Forget it found my mistake need to be root to edit files just download Rom toolbox
I'm running the "google experience" Google Play Edition ROM (thanks dubbsy!), and I need to turn off the "S View" functionality on the S4. That would be the bit of code that puts the phone into a special sleep mode when you have one of the cases with a cutout window in the front (Like so.) I have a third-party folio case with a magnetic catch, and whenever I fold the cover all the way back, the catch triggers whatever sensor tells the phone that it's using an S View case, and puts the bloody thing to sleep. I need to turn this off if I'm going to keep using the case, but the only advice I can find on Google says to change a setting under My Device->Lock Screen - which doesn't exist in vanilla Android. Is there a hack or app that will do the same thing?
You should be able to use sqlite or another db editor to edit that line to off.
I forget exactly where I saw it. Pennant in one of these: Framework-res, systemui, settings, settings storage
sent from my GE gs4
I know where to find settings (the flag isn't there, sadly), but not the other three - and Googling them doesn't bring up any reference to a particular file path. Sorry, I'm very green on database editing.
I'll look again tonight where it's at.:good:
Any luck?
Yeah, but it's not end user changeable. I thought it was in the database files but it's in the bools
sent from my GE gs4
Ah well, good to know. Guess I'll get a new case then. Thanks!