Auto-speakerphone via proximity sensor - Samsung Galaxy Nexus

This was a favorite patched feature on webOS, how can I replicate it on my new Nexus? I tried an apk I found on Google Code but it didn't work.
I just want to pull the phone from my face and have the audio change to speaker phone.

thereddog said:
This was a favorite patched feature on webOS, how can I replicate it on my new Nexus? I tried an apk I found on Google Code but it didn't work.
I just want to pull the phone from my face and have the audio change to speaker phone.
Click to expand...
Click to collapse
OK, that's just cool!

thereddog said:
This was a favorite patched feature on webOS, how can I replicate it on my new Nexus? I tried an apk I found on Google Code but it didn't work.
I just want to pull the phone from my face and have the audio change to speaker phone.
Click to expand...
Click to collapse
Tasker might do that, not tested though.
Can someone with tasker test this?
Sent from my Galaxy Nexus using Tapatalk

Possible another way..?

Herman76 said:
Tasker might do that, not tested though.
Can someone with tasker test this?
Click to expand...
Click to collapse
Great idea! Just tested it and it works. Took a little to figure out how to do it with Tasker but it works.
I have attached the profiles I created for this to work.

pascanu said:
Great idea! Just tested it and it works. Took a little to figure out how to do it with Tasker but it works.
I have attached the profiles I created for this to work.
Click to expand...
Click to collapse
WOW!!! It works!!! I can't believe this is not a feature built in to android. It's so easy and intuitive!

pascanu said:
Great idea! Just tested it and it works. Took a little to figure out how to do it with Tasker but it works.
I have attached the profiles I created for this to work.
Click to expand...
Click to collapse
Cool, thanks. How quick does it work? Can you toggle speakerphone while on a call freely?

thereddog said:
Cool, thanks. How quick does it work? Can you toggle speakerphone while on a call freely?
Click to expand...
Click to collapse
Almost instantly.
Yes.

pascanu said:
Great idea! Just tested it and it works. Took a little to figure out how to do it with Tasker but it works.
I have attached the profiles I created for this to work.
Click to expand...
Click to collapse
kinda new to tasker but how do I import those settings into my profile?
Sent from my Galaxy Nexus using xda premium

pascanu said:
Great idea! Just tested it and it works. Took a little to figure out how to do it with Tasker but it works.
I have attached the profiles I created for this to work.
Click to expand...
Click to collapse
Where do you put the backup profile?

spovat said:
kinda new to tasker but how do I import those settings into my profile?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
First you have to unzip the zip file from pascanu
Connect your Nexus to your computer and transfer the files over.
I couldn't see the "Tasker" folder, I'm on a Mac, so I got around this by first copying the files over to a temp folder, then use Astro to move the files to the proper folder, which is Tasker>profiles
Open Tasker, press and hold the profile tab (where the words "profile" are) The option to import will appear.
Import all 4 profiles, and you're good to go.
The only issue I have with pascanu's profile is, the phone screen doesn't seem to shut off, so my cheeks might press something by accident...

thanks that worked but i just unzipped the file directly from root explorer. and yes, the only thing keeping this from being completely useful is the proximity censor not turning the screen off when held to your face
Sent from my Galaxy Nexus using xda premium

oilfighter said:
The only issue I have with pascanu's profile is, the phone screen doesn't seem to shut off, so my cheeks might press something by accident...
Click to expand...
Click to collapse
Can't a new task be added to turn off screen?

jhericurls said:
Can't a new task be added to turn off screen?
Click to expand...
Click to collapse
I figured out how to turn the display off
Click on "Speaker OFF" then click the box with the green arrow and "Speakerphone OFF", a window will pop up, click the +, then Display>System Lock
Problem is, if you try and add a "display on" to the "Speaker ON" portion, Tasker tells me the action is not available, which means you'd have to hit the power button and turn the display on before proximity sensor kicks in and turn on the speakerphone.
pascanu, perhaps you have a more elegant solution?

Guys.... super easy alternative. download the app upsounddown from market. Its free - and you can set it for auto speakerphone when the phone is turned upside down, flat, shaken, or proximity. Its awesome and I use it all the time with no issues - just make sure you turn "on" the app from within itself after you install (no need after a reboot)

matt897 said:
Guys.... super easy alternative. download the app upsounddown from market. Its free - and you can set it for auto speakerphone when the phone is turned upside down, flat, shaken, or proximity. Its awesome and I use it all the time with no issues - just make sure you turn "on" the app from within itself after you install (no need after a reboot)
Click to expand...
Click to collapse
The screen doesn't seem to turn off when it is on proximity mode. Perhaps this issue can only be resolved if it is baked into a rom.
Very cool app though

matt897 said:
Guys.... super easy alternative. download the app upsounddown from market. Its free - and you can set it for auto speakerphone when the phone is turned upside down, flat, shaken, or proximity. Its awesome and I use it all the time with no issues - just make sure you turn "on" the app from within itself after you install (no need after a reboot)
Click to expand...
Click to collapse
Nice find. Installed.
Sent from my Galaxy Nexus using Tapatalk

oilfighter said:
I figured out how to turn the display off
Click on "Speaker OFF" then click the box with the green arrow and "Speakerphone OFF", a window will pop up, click the +, then Display>System Lock
Problem is, if you try and add a "display on" to the "Speaker ON" portion, Tasker tells me the action is not available, which means you'd have to hit the power button and turn the display on before proximity sensor kicks in and turn on the speakerphone.
pascanu, perhaps you have a more elegant solution?
Click to expand...
Click to collapse
I just realized that the screen doesn't turn off (I was just playing with it).
I'm afraid there is no solution to this:
Proximity Sensor
Active when the proximity sensor of the device reports than an object is nearby.
After setting this state up, you should calibrate it by covering and then uncovering proximity sensor a couple of times.
Proximity isn't monitored while the display is off.
http://goo.gl/QbIwN
Click to expand...
Click to collapse
I tried using the keyguard action in Tasker but it only works the first time, so it's pretty much the same as display off (and as such the proximity sensor isn't monitored afterwards). I'll try looking into it a little longer maybe today.
I'm pretty sure that if Tasker can't do it neither can a standalone app.
It's not a real problem for me since I only want it to work when my phone is charging (in car, on the dashboard), so I added another condition (phone charging).

SOLVED !
Problem solved.
http://code.google.com/p/speakerproximity/downloads/list

pascanu said:
Problem solved.
http://code.google.com/p/speakerproximity/downloads/list
Click to expand...
Click to collapse
Your app works perfectly!

Related

[Q] Proximity Sensor settings

I'm running AOKP and every time I place my hand near the top of the phone the proximity sensor disables the screen. Is there a way I can change this so it only does this during calls? It's driving me nuts trying to get the notification shade to appear. Thanks
fbiryujin said:
I'm running AOKP and every time I place my hand near the top of the phone the proximity sensor disables the screen. Is there a way I can change this so it only does this during calls? It's driving me nuts trying to get the notification shade to appear. Thanks
Click to expand...
Click to collapse
That's not at all normal AOKP behavior. Do you perhaps have any apps installed that may be trying to control the proximity sensor?
codesplice said:
That's not at all normal AOKP behavior. Do you perhaps have any apps installed that may be trying to control the proximity sensor?
Click to expand...
Click to collapse
I'm not sure. The only root apps i have are Titanium Backup, ROM Manager, Call Recorder, and Cerberus
Edit: Derp, my brain just kicked in, I recently told call recorder to blank the screen when it is playing. Must be a bug since turning that off fixed it. Thanks for jarring my memory.
fbiryujin said:
I'm not sure. The only root apps i have are Titanium Backup, ROM Manager, Call Recorder, and Cerberus
Edit: Derp, my brain just kicked in, I recently told call recorder to blank the screen when it is playing. Must be a bug since turning that off fixed it. Thanks for jarring my memory.
Click to expand...
Click to collapse
No problem; glad it was an easy fix!
codesplice said:
No problem; glad it was an easy fix!
Click to expand...
Click to collapse
Yup, me too.

[APP] Smart Screen ON

After the success of Smart Screen OFF, I decided to publish another app called Smart Screen ON available in LITE and PRO version too.
Smart screen ON
DESCRIPTION:
Smart screen ON is an innovative app which turns your proximity sensor into a power button. If you have a big phone with no physical button on the front(Galaxy Nexus for example, you can turn on or turn off the phone just tapping or waving your hand (finger) on proximity sensor.
FEATURES:
When you change the settings, remember saving and restarting service using built in app specific button.
There are two mode available, both mode can coexist:
+WAVE MODE:
Wave (move) your hand/finger on proximity sensor, even without touching it.
You can set the amount of waves you want to use to turn on/off screen and the time between each wave.
Do you want to wave your hand quickly or slowly?
+TAP AND SWIPE MODE:
1) Tap proximity sensor using your finger;
2) Wait for the first vibration;
3) Swipe (remove) quickly your finger, before it vibrates for the second time.
You can set the time before the first and the second vibration.
+DISABLE SENSOR
You can also disable sensor after an amount of time you can set in the app panel.
The app will disable the whole service and proximity sensor after X time of inactivity.
+STATISTICS
Statistics include:
A)Smart Screen ONs;
B)Smart Screen OFFs;
C)Total power button saves;
D)The power used by your proximity sensor (which is very very low).
+START ON BOOT
If you check this, the app will start on boot.
+HIDE ICON
If you hide the icon, the app could be instable and could be killed by Android in low memory conditions.
+ENABLE FOR TURNING SCREEN OFF
The app has been created to turn screen off, but I also give you the ability to turn screen off.
+DISABLE WHEN LANDSCAPE
The sensor will stop working when landscape.
+INCOMPATIBILITY
-HTC Desire HD is not compatible with "wave mode" because its proximity sensor doesn't work as it should.
If you want to suggest new features, please contact me on this thread, at [email protected] or use my site www.androidhd.it
Link to lite version is online
Will test this out!
EDIT: I believe there's a bug with Android 4.0.4 for apps that turn off the screen?
It turns back on after turning off for a while, happens in other apps that lock the screen too.
Great app!
I would like to use your app in combination with an app like tasker, llama or locale. Could you make a shortcut to enable or disable your app? Or a locale plugin? This way I could enable/disable your app when certain conditions are met. For example when I am at home it is active and when I am at work it is disabled. I have tried to kill your app automatically with llama, but your app restarts by itself.
Love this idea. Perfect for when I'm in class and want to glance at my phone. Bought the pro version, however it worked about 3 times then stopped. I see it was just updated so I have faith this will be looked at and become more stable. Thanks.
Sent from my Galaxy Nexus using XDA
I have updated both LITE and PRO versions. Fixed a couple of little bug (check the changelog). The update will be live within 1 hour or 2.
Friends, if you have any problem please contact me at [email protected] . If you only reply on the Store I can't help you.
If you know how to do it, record a logcat when you have a problem and send the .txt file to my email address.
App is working flawlessly on my Galaxy Nexus AOKP M5.
Note: between 1 on and 1 off you have to wait 2 seconds.
ock said:
Link to lite version is online
Will test this out!
EDIT: I believe there's a bug with Android 4.0.4 for apps that turn off the screen?
It turns back on after turning off for a while, happens in other apps that lock the screen too.
Click to expand...
Click to collapse
\
Cool app!
I confirm the bug tho, after screen off Widgetlocker turns the screen back on for a sec(Gnexus AOKP build 35).
Just updated. Tried it about 15 times. Only worked once. I have it on the tap/swipe option. AOKP B35. CDMA GNex.
BTW, I'm not complaining, just providing info. I like the app. I'll be very happy with it once I get it working.
Sent from my Galaxy Nexus using XDA
Can you guys contact me here [email protected] attaching a logcat file?
(Try filter log by app name)
Logcat sent
Sent from my Galaxy Nexus using XDA
sandfreak said:
Logcat sent
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
I didn't receive it (and it's not in spam folder)
Now it has been delivered
F me, just a sec. Forgot the l in Gmail.
Sent from my Galaxy Nexus using XDA
OK should be good to go now. Sorry bout that.
Sent from my Galaxy Nexus using XDA
DDeleted said:
Can you guys contact me here [email protected] attaching a logcat file?
(Try filter log by app name)
Click to expand...
Click to collapse
I dont know how to extract a logcat file :X
Yuvs12 said:
I dont know how to extract a logcat file :X
Click to expand...
Click to collapse
Just use any logcat app (I use rootzbox, catlog is free) start recording. Try to do whatever function you're trying to accomplish, stop recording, it will save a txt file on your SD, navigate to file with file explorer of your choice, share file
Sent from my Galaxy Nexus using XDA
Kk, thanx, just sent it.
I just discovered a bug (I'm not sure it's related to my app or to the ROM).
You have to completely disable the lockscreen to get it working.
I'm currently investigating this issue.
DDeleted said:
I just discovered a bug (I'm not sure it's related to my app or to the ROM).
You have to completely disable the lockscreen to get it working.
I'm currently investigating this issue.
Click to expand...
Click to collapse
Its the same for me running stock 4.0.4 if that helps.
There is a bug that affects Android 4.0.4.
I'm trying to find a workaround for 4.0.4 users.
Version 1.2 uploaded, check it out on the store.
It should work with 4.0.4 users without disabling the screen lock.
To workaround this, I had to kill timeout display timer (you have to turn off phone manually).
Works great now. Thanks.
Edit: I didn't quite understand at first. Its a bummer that the screen stays on indefinitely now, unless manually turned off.
Sent from my Galaxy Nexus using XDA
This is the only workaround I found.
For some strange reason what worked for <=4.0.3 doesn't work on 4.0.4 .

Turn off knock on?

Hi guys, does anyone know how to turn off knock on on the G3? Tried looking for it in gestures settings like in the G2 but can't seem to find it. The g3 keeps waking while in my pocket making it feels constantly warm. Anyone else experiencing this? I don't mind just using the button at the back to wake it. The placement for the button is quite comfortable actually.
I'm sorry to hear this is a problem on the g3, I have this problem on the double tap to wake code on my Nexus 5 and so I just turned it off. I know for the galaxy 2, sorry g2, voice dictation, they released firmware fix for this I think
rancur3p1c said:
I'm sorry to hear this is a problem on the g3, I have this problem on the double tap to wake code on my Nexus 5 and so I just turned it off. I know for the galaxy 2, sorry g2, voice dictation, they released firmware fix for this I think
Click to expand...
Click to collapse
Can you tell me how you did the wake code on the nexus 5?
And to the op, isn't there a setting in the screen gestures section of the phone to turn it off?
You can turn it off in the hidden system settings menu
Dial 3845#*855# to access it.
20degrees said:
Can you tell me how you did the wake code on the nexus 5?
And to the op, isn't there a setting in the screen gestures section of the phone to turn it off?
Click to expand...
Click to collapse
No I couldn't find it. I'm looking through the hidden menu but no luck either.
reva1ation said:
No I couldn't find it. I'm looking through the hidden menu but no luck either.
Click to expand...
Click to collapse
@reva1ation
Please post in the right section. Read the FORUM rules
Thanks. Your thread moved from General to Q&A section
Spewy1 said:
You can turn it off in the hidden system settings menu
Dial 3845#*855# to access it.
Click to expand...
Click to collapse
Sorry, could u let me know which setting exactly do I need to disable in that menu? Many thanks!
reva1ation said:
Sorry, could u let me know which setting exactly do I need to disable in that menu? Many thanks!
Click to expand...
Click to collapse
It is the very last setting in the list, just scroll all the way down to the bottom.
If you have the Korean model replace the 855 with 400
I turned this feature off as it will save battery life too as it needs to keep the screen driver awake happy using the back button.
Spewy1 said:
It is the very last setting in the list, just scroll all the way down to the bottom.
If you have the Korean model replace the 855 with 400
Click to expand...
Click to collapse
855 opens my hidden menu. But I still can figure out which option to choose after scrolling down to the bottom. The screen shot shows my menu. Could u let me know which option should I be disabling?
reva1ation said:
855 opens my hidden menu. But I still can figure out which option to choose after scrolling down to the bottom. The screen shot shows my menu. Could u let me know which option should I be disabling?
Click to expand...
Click to collapse
You need to scroll down there are more options below it's the very last one.
jutley said:
You need to scroll down there are more options below it's the very last one.
Click to expand...
Click to collapse
But that's my last setting... What's the title of the option?
Knock on off
20degrees said:
Can you tell me how you did the wake code on the nexus 5?
And to the op, isn't there a setting in the screen gestures section of the phone to turn it off?
Click to expand...
Click to collapse
reva1ation said:
No I couldn't find it. I'm looking through the hidden menu but no luck either.
Click to expand...
Click to collapse
we don't have that functionality by default, it's patched into custom kernels and eats 2-3% battery per hour (another reason I turn it off)
Just so you know, I had issues with Knock On unlocking my phone in my pocket so I turned it upside down and the issue is 100% gone !
I think it's due to the light sensor not being 100% in the dark then the taps on the lap unlocked the phone. When it's upside down the light sensor is kept in the dark
I just can't find that setting... Ive looked everywhere. My phone is rooted with towelroot. Is that the problem?
turt said:
Just so you know, I had issues with Knock On unlocking my phone in my pocket so I turned it upside down and the issue is 100% gone !
I think it's due to the light sensor not being 100% in the dark then the taps on the lap unlocked the phone. When it's upside down the light sensor is kept in the dark
Click to expand...
Click to collapse
Is it really the light sensor? I think the proximity sensor would make more sense in this case! Otherwise you wouldn't be able to use the knock on feature in the darkness...
Screen wakes in my pocket whichever way up I put it in and I don't want to have the screen face outwards. This is very annoying and didn't happen on my G2 - The screen is clearly very sensitive. I don't want to turn off knock on and I don't really like knock code.
Spewy1 said:
Screen wakes in my pocket whichever way up I put it in and I don't want to have the screen face outwards. This is very annoying and didn't happen on my G2 - The screen is clearly very sensitive. I don't want to turn off knock on and I don't really like knock code.
Click to expand...
Click to collapse
Same here. Upside up or Upside down makes no difference for me. Display from body away seems to be the only real solution...
Looks like a few of u are experiencing the same problem. I have been facing the screen away from me as a solution but it feels so awkward when I m so used to have the screen face in. And I can't find the hidden settings to turn knock on off. They really hid very well I guess.

Need help with which ROM to use. Input please~!

I plan to use my old note 2 as a carPC.
Will likely only be using it for media, GPS, and read my OBD2.
Needs to be compatible with the Tasker app (not sure if an issue or not) and the OTG-Y cable.
Need to be able to disable lock screen entirely, be able to have homescreen rotation, and on screen navigation.
Would appreciate any input!
TIA!
Alright, now I'm running LiquidSmooth 4.4.4
Has built-in option for on-screen navi. Working great.
Installed an app correctly named 'screen rotation' and does exactly what I need.
Enabled developer option so I could enable stay awake while charging.
Discovered I could disable the lock options entirely (sorry, company has had me on iPhone for awhile now).
Still trying to find something to allow double tap screen for sleep on/off. Recommendations please.
Going to test Tasker here in a moment.
Don't have an OTG-Y cable to test with this ROM. Can anyone confirm?
SouthSeaPirate said:
Alright, now I'm running LiquidSmooth 4.4.4
Has built-in option for on-screen navi. Working great.
Installed an app correctly named 'screen rotation' and does exactly what I need.
Enabled developer option so I could enable stay awake while charging.
Discovered I could disable the lock options entirely (sorry, company has had me on iPhone for awhile now).
Still trying to find something to allow double tap screen for sleep on/off. Recommendations please.
Going to test Tasker here in a moment.
Don't have an OTG-Y cable to test with this ROM. Can anyone confirm?
Click to expand...
Click to collapse
Check out the Xposed module named DoubleTapToSleep. It allows you to turn off the screen by double tapping on the status bar. It works pretty well. The original thread for it is below.
http://forum.xda-developers.com/xposed/modules/mod-doubletaptosleep-v1-0-t2667177
jsnzns said:
Check out the Xposed module named DoubleTapToSleep. It allows you to turn off the screen by double tapping on the status bar. It works pretty well. The original thread for it is below.
http://forum.xda-developers.com/xposed/modules/mod-doubletaptosleep-v1-0-t2667177
Click to expand...
Click to collapse
Thanks!
That looks like it would almost work. I still need to awake via tap as well.
All the buttons will be covered.
Only need it for night driving really. Quick and easiest way I can think of.
SouthSeaPirate said:
Thanks!
That looks like it would almost work. I still need to awake via tap as well.
All the buttons will be covered.
Only need it for night driving really. Quick and easiest way I can think of.
Click to expand...
Click to collapse
I haven't seen any apps that turn on the screen by tapping on it for a Samsung device. You could use an app that turns on the screen by tapping on the proximity sensor.
https://play.google.com/store/apps/details?id=net.maicas.android.wsleep&hl=en

How do I set my G4 to silent without having to enter my PIN first?

I'm looking to do something very simple - just set the phone to silent without having to login past security? In my previous android phones, I can just press the volume down arrow until it's silent, even when I'm on the lockscreen. But this doesn't seem possible w/ the G4. volume up/down doesn't do anything on the lockscreen....
Anyone have any idea?
Have you considered using NFC tags to change the volume/mode?
majesticpark said:
Have you considered using NFC tags to change the volume/mode?
Click to expand...
Click to collapse
Good idea, but any other simpler solution?
I'd love to be able to do this as well. It's the one thing I envy of the iPhone, that simple little hardware switch for silent.
Sea-Wolf said:
I'd love to be able to do this as well. It's the one thing I envy of the iPhone, that simple little hardware switch for silent.
Click to expand...
Click to collapse
It's not really and Android vs iPhone thing btw. The Oneplus X has a hardware button, and also my other android phones typically let me use the volume button to silence my phone even in the lockscreen...
ro_bro said:
Good idea, but any other simpler solution?
Click to expand...
Click to collapse
Use some app like tasker and create some event "set volume to 0 when ..."?
tqwzUX6fn39GZMEzSnDF said:
Use some app like tasker and create some event "set volume to 0 when ..."?
Click to expand...
Click to collapse
Actually before reading this, I decided to try it out. I have it set so that when I shake the phone, it turns to silent and gives vibration feedback. Works well, even when I'm on the lockscreen.
Thanks.

Categories

Resources