[App] Zevele's AutoLoudspeaker V1.6 [15/01/2011]

Search This thread

sfawzy

Member
Jan 6, 2008
7
0
i think when you hold your phone to talk its partually protal and partually landscape but it the car it is either portal or landscape so this wont make a problem. as in the car you always want the loudspeaker on unless you are using bluetooth car kit and in this case the app should disable it self when the bluetooth is connected to a car kit or a headset
 

glix

Member
Jan 5, 2010
19
0
installation failed (v 1.2)

Sounds like a great app, as I mostly switch to the speaker, this is just perfect.

Unfortunately the installation of the v1.2 cab failed on my HD2, Manila 2.5.1921 ROM 1.48.407.1 Radio 2.05.51.05

I also tried to install cab 1.0 - failed as well.

Any suggestion? thanks.
 

ToddeSwe

Senior Member
Dec 26, 2007
2,585
82
Alvesta
Start automatically on boot (add to startup list)

I for sure want to see:

Start automatically on boot (add to startup list)

That would be great, then you never have to bother if it's on or off :)

Thanks for this super idea!!
 

zevele

Inactive Recognized Developer
Mar 8, 2010
279
89
Unfortunately the installation of the v1.2 cab failed on my HD2, Manila 2.5.1921 ROM 1.48.407.1 Radio 2.05.51.05

I really don't know why it fails, all the cab does is to copy the exe and dlls to the target folder and creates a shortcut in the start menu... does it give any specific error when failing? Maybe somebody else here with more experience with those cabs cab shed some light on the issue?

I could give you a rar archive with those files and you could create the shortcut yourself...

Z.
 

glix

Member
Jan 5, 2010
19
0
I really don't know why it fails, all the cab does is to copy the exe and dlls to the target folder and creates a shortcut in the start menu... does it give any specific error when failing? Maybe somebody else here with more experience with those cabs cab shed some light on the issue?

I could give you a rar archive with those files and you could create the shortcut yourself...

Z.

Many thanks, Zevele, just re-tried everything (download, installing both on storage card or on device memory) - no success.

RAR would be great, unzip and the copy exactly to where?

Regards, Glix
 

zevele

Inactive Recognized Developer
Mar 8, 2010
279
89
RARzip would be great, unzip and the copy exactly to where?

Here's the zip file (see attachment).

You can extract it wherever you want. The installer use:

/Storage Card/Program Files/AutoLoudspeaker

or

/Program Files/AutoLoudspeaker

Let me know how it works for you...

Z.
 

Attachments

  • AutoLoudspeaker.zip
    15.2 KB · Views: 158
Last edited:

glix

Member
Jan 5, 2010
19
0
Here's the zip file (see attachment).

You can extract it wherever you want. The installer use:

/Storage Card/Program Files/AutoLoudspeaker

or

/Program Files/AutoLoudspeaker

Let me know how it works for you...


Z.



A great app, it works perfectly now!!
Many thanks, really appreciate it.

Will follow up any new development coming from you -- eg. more favorite contacts than the standard default of only 15?

Best to you, Glix
 

gpsiow

Member
Dec 28, 2007
28
0
I for sure want to see:

Start automatically on boot (add to startup list)

That would be great, then you never have to bother if it's on or off :)

Thanks for this super idea!!

I also auto start by adding the link to startup folder.
But one thing that annoying me is the message box.
if able to start the program without the message box, that would be great.

thanks.
 

ptit developer

Senior Member
Apr 21, 2010
281
4
Nice
I already post, but he XDA Forum have a problem, and some posts are deleted, so i post it again, because it is very important for me.

It is just a simple idea, but it can be very nice.
For exemple if i put your application in my quicks link on my home, i can't know if it is OFF or ON, we have a message box but after we forget.
So if it is possible for you, put an other logo when it is ON.

For example :
AutoLoudspeaker_ON : http://img84.imageshack.us/img84/4851/autoloudspeakeron.png
AutoLoudspeaker_OFF : http://img831.imageshack.us/img831/6827/autoloudspeakeroff.png

I hope you will like my idea and had it to your new release.
You can change image, it is just an example in png.

I think in the taskbar, it wont be a godd idea, beacuase we have already a lot thing and taskbar, and it is more complicated to add i ntaskbar than change the logo when it is OFF or ON.
 
Last edited:

zevele

Inactive Recognized Developer
Mar 8, 2010
279
89
I also auto start by adding the link to startup folder.
But one thing that annoying me is the message box.
if able to start the program without the message box, that would be great.
thanks.

In the next version I'll release there won't be any message when the application loads.

It is jsut a simple idea, but it can be very nice.
For exemple if i put your application in my quicks link on my home, i can't know if it is OFF or ON I think in the taskbar, it wont be a godd idea, beacuase we have already a lot thing and taskbar, and it is more complicated to add i ntaskbar than change the logo when it is OFF or ON.

Actually, it was pretty easy to add the icon to the notification bar, and it works pretty good on my device. I also use notifications instead of the message boxes.
Changing the icon of the link in the start menu is an interesting idea. I'll try searching about how to change the shortcut's icon...

Z.
 

totalcmdext

Inactive Recognized Developer
Feb 7, 2006
1,228
82
Nokia 8.3 5G
Is it possible to configure the sensitivite because i tried to change the phone from one ear to the other the speakphone is activate it
 
Last edited:

zevele

Inactive Recognized Developer
Mar 8, 2010
279
89
Is it possible to configure the sensitivite because if i tried to change the phone from one ear to the other the speakphone is activate it

That also annoyed me, so I added a delay before switching the speaker on, the proximity sensor has to be unblocked for more than a second before the loud speaker turn on.

Z.
 

at004

Senior Member
Nov 18, 2006
231
3
I also auto start by adding the link to startup folder.
But one thing that annoying me is the message box.
if able to start the program without the message box, that would be great.

thanks.
don't copy the whole app to the startup menu,but copy it as a short cut,then may be the message box won't appear after boot....try that.
 
Last edited:

totalcmdext

Inactive Recognized Developer
Feb 7, 2006
1,228
82
Nokia 8.3 5G
That also annoyed me, so I added a delay before switching the speaker on, the proximity sensor has to be unblocked for more than a second before the loud speaker turn on.

Z.

Is it possible to send me this beta version in order to test it?

Also good idea is to activate the speaker on, when the Phone in 90 angle position
 
Last edited:

zevele

Inactive Recognized Developer
Mar 8, 2010
279
89

altec1000

Senior Member
Jan 23, 2009
83
1
Not at the moment, it is half baked...



I'm trying to implement sfwazy's request, that is, if the phone is in certain angle (with some threshold) the speaker is off, otherwise the speaker is on...

Z.


That would be nice. If I make a call with the HD2 I still have to toggle loudspeaker on and off because it puts it on max volume. With this cab I only have to hold it on a certain angle wait till it rings and then get it close to my ear.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Zevele's AutoLoudspeaker v1.6
    attachment.php

    Hi, I've stumbbled upon sfawzy request of an application that will automatically turn on the loudspeaker when the phone is away from the ear, and turns it off when it is near the ear. I really liked the idea and this is the result.
    AutoLoudspeaker is fairly simple to use. When running the application a service starts. If the shortcut is pressed again, a notification message pops and the user can choose to close the service. As long as the service runs the loudspeaker will automatically switch on if the proximity sensor is unblocked and off if it is blocked (only during an active phone call).
    I wrote the application and tested it on my HTC HD2, so I can't say how it will operate on other devices...

    Main features:
    Switch the loudspeaker according to the proximity-sensor or g-sensor.
    Answer an incoming call by gesture (wave your hand in front of the proximity-sensor).

    Known issues
    • Non at the moment (I'm sure some will pop soon... ;))

    Future improvements
    • Fade in volume when turning on the speaker (Couldn't find a way to change the in-call volume - any suggestions are most welcome).
    • Recognize gestures to manually turn on/off the speaker. Currently the sampling frequency of proximity sensor is too slow. If I'll find a way to sample the sensor faster it might be feasible.
    • Change the shortcut's icon while AutoLoudspeaker is running (I didn't find a way to do this, if anyone has a clue please tip me...).
    • Shake phone to answer (let me know how do you feel about such a feature).

    System Requirements
    • .Net Compact Framework 3.5
    • Tested successfully on: HTC HD2 (Leo), HTC TP2 (Rhodium), HTC miniHD (Photon), HTC TD2 (Topaz), HTC Whitestone (Imagio).
    • Proximity sensor and/or g-sensor.
    ChangeLog
    • 15/01/11 (v1.6) (starting at post #177)
      • Add ability to automatically answer a call when the proximity sensor is blocked (altec1000's request). This feature can be set by selecting the "Block" gesture in the settings window. The gesture first waits for the sensor to be unblocked for a certain amount of time, after which it checks that the sensor is blocked for a second period of time - only if both periods were fulfilled AutoLoudspeaker will answer the call.
        Two registry keys were added:
        • BlockGestureOpenDelay - Sets the minimum period (in msec) the sensor has to be unblocked before checking the block status.
        • BlockGestureBlockDelay - Sets the minimum period (in msec) the sensor has to be blocked before answering the call.
      • Add command-line controls (to Start/Stop the service). Two commands are available:
        • quit - Stops the serivce.
        • update - Force AutoLoudspeaker to reread the settings from the registry.
      • Changed the notification behavior. Now pressing the notification immidiatly brings the Settings application.
      • I've included the proximity-sensor registry keys of Omnia2 reported by O2amksin. I don't own an Omnia2 device so I don't know if it did the trick...
      • Some minor code and gui changes.
    • 12/10/10 (v1.5) (starting at post #106)
      • Reverted to the polling method of v1.3 for the Proximity-Sensor (it just works better). This should also solve the exception on devices with no proximity sensor.
      • Fixed issue where AutoLoudspeaker failed to create a shortcut in a non-english localizations.
      • Fixed issue where the notification icon remained visible when the service was closed from the settings application.
      • Fixed an issue where the delay occurred also before turning the speaker off (instead of just before turning it on).
      • Added a short vibration before changing the loudspeaker state.
        The vibration length can be set via the registry value: HKCU\Software\AutoLoudspeaker\VibrationLength (default: 20ms).
        The vibration LED index can be set via the value: HKCU\Software\AutoLoudspeaker\VibrationLED (default: 1 - this is the one for the HD2).
      • If proximity sensor is not detected (it's registry keys are missing) the possibility to select the proximity method is disabled in the settings application.
      • Some performance improvement for the "managed service" code.
    • 02/10/10 (v1.4) (starting at post #106)
      • Fixed issue where AutoLoudspeaker remained active when missed call occurred.
      • Fixed issue where speaker was turned on when facing down - event if "Speaker on when facing down" was unchecked.
      • Fixed default angles for the g-sensor method.
      • Allow to override notification icon. To use a custom icon, put a new icon named "NotificationIcon.ico" under the installation folder.
      • Added a toggle to remove the notification altogether.
      • Changed method of reading the proximity-sensor values. Now using "RegistryState" instead of polling the registry key.
      • Split the settings dialog to a different executable.
      • Added the ability to start/stop the Service form the settings application (under the about tab).
      • Added some text to the g-sensor calibration screen.
    • 29/09/10 (v1.3) (starting at post #46)
      • Changed the icon.
      • Answer on gesture - slowly passing your hand over the proximity sensor, will answer the incoming call.
      • Replaced the message-boxes with notifications. In addition, notification on startup is iconic an quiet - so no more annoying message-boxes on startup.
      • Added a short delay before turning the speaker on, so if the phone is momentarily way from the ear it wont turn the speaker on.
      • Added the possibility to use the g-sensor instead of the proximity sensor. Now you can define two pairs of angles between which the speaker is off.
      • Added a configuration & about dialog. To open the dialog press the notification or run the application again and touch "settings".
        The dialog include:
        • Toggle load Autoloudspeaker on startup.
        • Answer on gesture.
        • Turn on speaker when facing down.
        • Set the delay before turning the speaker on.
        • Select the sensing method (proximity- or g-sensor).
        • Configuring the angles for the g-sensor method.
        • About tab.
    • 24/09/10 (v1.2) (starting at post #19)
      • Converted to "managed service".
      • Now application does not close when ActiveSync is connected.
      • Removed the applications main form.
      • If AutoLoudspeaker does not run, pressing the shortcut starts the service (and gives an appropriate message). If AutoLoudspeaker already runs a message box pops and the user can select to close the service or to keep it running.
    • 22/09/10 (v1.1)
      • Now works both with outgoing and incoming calls.
      • When proximity sensor is blocked and the phone face down, the speaker will turn on.
      • Some more minor changes (cleaning the code, some typos etc.)
    • 20/09/10 (v1.0) - Initial release

    Downloads

    Acknowledgments

    Any suggestions, remarks are welcome

    If you like my work - Buy me a cup of coffee...

    Z.
    2
    Version 1.6

    Hi,

    Here is another release (v1.6). I've been using this version for a couple of days and it seems pretty stable...
    I've included altec1000 idea for automatic answer when the proximity sensor is blocked. And I've included the registry keys reported by O2amksin for the Omnia2 (Please let me know if it works).

    Check the changelog on the first post for further information.

    Thanks,

    Z.
    1
    I have a request though. Would it be possible to build a version that runs invisibly and doesn't display a notification or notification icon? Even just a special command line switch to enable this mode would be great.

    You can just uncheck "Use notification" under AutoLoudspeaker settings. This will hide the notification and the notification icon.

    Z.
    1
    Gave me an error when I rebooted the device. Do I have to resize the jpg file? It's about 215 x 210 pixels.

    There are limitations, I don't remember what they are, but I'm pretty sure it has to be an icon (jpg is not good). I don't think the size is the problem. If you'll send me the image I could convert it for you...

    Z.
    1
    ...In the pop-up of your app , the Prox Sensor button is showing disabled . Could you explain why ?

    This has already been discussed (check around pages 13-14). The issue is that HD2 updates the registry with the proximity sensor state, whereas Omnia doesn't (or atleast use different registry keys which I'm not aware of). Therefore AutoLoudspeaker thinks there is no proximity sensor on the device...

    ...I tried calibrating the G-Sensor , but its too sensitive...
    You can always set the values manually - you don't have to use the calibration...

    Z.